Bug 83590 - New Port: qSheff
Summary: New Port: qSheff
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Renato Botelho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-17 08:00 UTC by Ozkan KIRIK
Modified: 2005-07-20 14:47 UTC (History)
1 user (show)

See Also:


Attachments
qsheff_port.sh (2.75 KB, text/plain)
2005-07-17 08:00 UTC, Ozkan KIRIK
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan KIRIK 2005-07-17 08:00:27 UTC
	New Port: qSheff

How-To-Repeat: 	Adding new port
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2005-07-18 17:13:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->garga

I'll take it.
Comment 2 Renato Botelho freebsd_committer freebsd_triage 2005-07-18 20:09:53 UTC
Since I'm here, i propose you the following version of the port. Do you
agree?

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	./qsheff
#	./qsheff/Makefile
#	./qsheff/distinfo
#	./qsheff/pkg-descr
#	./qsheff/pkg-plist
#
echo c - ./qsheff
mkdir -p ./qsheff > /dev/null 2>&1
echo x - ./qsheff/Makefile
sed 's/^X//' >./qsheff/Makefile << 'END-of-./qsheff/Makefile'
X# New ports collection makefile for:   qsheff
X# Date created:                 14 Jul 2005
X# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	qsheff
XPORTVERSION=	1.0.r1
XCATEGORIES=	mail
XMASTER_SITES=	http://www.enderunix.org/qsheff/
XDISTNAME=	${PORTNAME}-1.0-r1
X
XMAINTAINER=	ozkan@enderunix.org
XCOMMENT=	A qmail-queue replacement to filter mail traffic
X
XRUN_DEPENDS=	${QMAIL_QUEUE}:${PORTSDIR}/mail/qmail \
X		${LOCALBASE}/bin/ripmime:${PORTSDIR}/mail/ripmime
X
XUSE_REINPLACE=	YES
XGNU_CONFIGURE=	YES
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XPORTDOCS=	spamass-qsheff.en.html README COPYING AUTHORS ChangeLog \
X		INSTALL UPGRADE THANKS TODO
X
XOPTIONS=	CLAMAV "Integrate with Clam AntiVirus" on
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/qmail/bin/qmail-queue)
XQMAIL_DIR?=	${LOCALBASE}/qmail
X.else
XQMAIL_DIR?=	/var/qmail
X.endif
XQMAIL_QUEUE=	${QMAIL_DIR}/bin/qmail-queue
X
X.if !defined(WITHOUT_CLAMAV)
XRUN_DEPENDS+=	${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
X.endif
X.if !defined(WITHOUT_FPROT) & defined(WITHOUT_CLAMAV)
XRUN_DEPENDS+=	${LOCALBASE}/bin/f-prot:${PORTSDIR}/security/f-prot
X.endif
X
XCONFIGURE_ARGS+=	--with-qmaildir=${QMAIL_DIR}
X
Xpost-patch:
X.if defined(NOPORTDOCS)
X	@${REINPLACE_CMD} -e 's|\(install-data-am: \)install-qsheffdocDATA|\1|g' \
X			  -e 's| contribute$$||g' \
X		${WRKSRC}/Makefile.in
X.endif
X
Xpost-build:
X.if defined(WITHOUT_CLAMAV)
X	@${REINPLACE_CMD} -e 's|enable_virus_prog = 1|enable_virus_prog = 0|g' ${WRKSRC}/etc/qsheff.conf-default
X.endif
X
X.include <bsd.port.post.mk>
END-of-./qsheff/Makefile
echo x - ./qsheff/distinfo
sed 's/^X//' >./qsheff/distinfo << 'END-of-./qsheff/distinfo'
XMD5 (qsheff-1.0-r1.tar.gz) = fa9e21cbf2a9014beb05d8a7e55a46d8
XSIZE (qsheff-1.0-r1.tar.gz) = 105460
END-of-./qsheff/distinfo
echo x - ./qsheff/pkg-descr
sed 's/^X//' >./qsheff/pkg-descr << 'END-of-./qsheff/pkg-descr'
XA qmail-queue replacement to filter mail traffic and more.
XIt supports:
X	* Antivirus executing
X	* body filtering
X	* subject filtering
X	* attachment blocking
X	* quarantine
X	* white/black list
X	* single line logging for qmail and many features.
X
XProject Page:
XWWW: http://www.enderunix.org/qsheff
X
XAuthor: 
X
XBaris SIMSEK
Xsimsek@enderunix.org
XEnderUNIX SDT @ Turkey
Xhttp://www.enderunix.org/simsek/
END-of-./qsheff/pkg-descr
echo x - ./qsheff/pkg-plist
sed 's/^X//' >./qsheff/pkg-plist << 'END-of-./qsheff/pkg-plist'
X@comment $FreeBSD$
Xbin/qsheff
X@unexec if cmp -s %D/etc/qsheff/qsheff.attach %D/etc/qsheff/qsheff.attach-default; then rm -f %D/etc/qsheff/qsheff.attach; fi
Xetc/qsheff/qsheff.attach-default
X@exec [ -f %B/qsheff.attach ] || cp %B/%f %B/qsheff.attach
X@unexec if cmp -s %D/etc/qsheff/qsheff.conf %D/etc/qsheff/qsheff.conf-default; then rm -f %D/etc/qsheff/qsheff.conf; fi
Xetc/qsheff/qsheff.conf-default
X@unexec if cmp -s %D/etc/qsheff/qsheff.rules %D/etc/qsheff/qsheff.rules-default; then rm -f %D/etc/qsheff/qsheff.rules; fi
Xetc/qsheff/qsheff.rules-default
X@exec [ -f %B/qsheff.rules ] || cp %B/%f %B/qsheff.attach
X@unexec if cmp -s %D/etc/qsheff/qsheff.wblist %D/etc/qsheff/qsheff.wblist-default; then rm -f %D/etc/qsheff/qsheff.wblist; fi
Xetc/qsheff/qsheff.wblist-default
X@exec [ -f %B/qsheff.wblist ] || cp %B/%f %B/qsheff.attach
X%%DATADIR%%/developer.notes
X%%DATADIR%%/eicar.com.txt
X%%DATADIR%%/sample-OK.msg
X%%DATADIR%%/sample-SPAM.msg
X%%DATADIR%%/sample-VIRUS.msg
X%%DATADIR%%/uninstall.sh
X@unexec rmdir %D/etc/qsheff 2>/dev/null || true
X@dirrm %%DATADIR%%
END-of-./qsheff/pkg-plist
exit

Thanks
-- 
Renato Botelho <garga at FreeBSD dot org>
               <freebsd at galle dot com dot br>
GnuPG Key: http://people.freebsd.org/~garga/pubkey.asc

You need no longer worry about the future.  This time tomorrow you'll
be dead.
Comment 3 Renato Botelho freebsd_committer freebsd_triage 2005-07-18 20:10:58 UTC
State Changed
From-To: open->feedback

Ask submitter's approval to new version
Comment 4 Ozkan KIRIK 2005-07-20 09:14:42 UTC
qmail-queue replacing problem fixed.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#    qsheff
#    qsheff/Makefile
#    qsheff/distinfo
#    qsheff/pkg-descr
#    qsheff/pkg-plist
#
echo c - qsheff
mkdir -p qsheff > /dev/null 2>&1
echo x - qsheff/Makefile
sed 's/^X//' >qsheff/Makefile << 'END-of-qsheff/Makefile'
X# New ports collection makefile for:   qsheff
X# Date created:                 14 Jul 2005
X# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=    qsheff
XPORTVERSION=    1.0.r1
XCATEGORIES=    mail
XMASTER_SITES=    http://www.enderunix.org/qsheff/
XDISTNAME=    ${PORTNAME}-1.0-r1
X
XMAINTAINER=    ozkan@enderunix.org
XCOMMENT=    A qmail-queue replacement to filter mail traffic
X
XRUN_DEPENDS=    ${QMAIL_QUEUE}:${PORTSDIR}/mail/qmail \
X        ${LOCALBASE}/bin/ripmime:${PORTSDIR}/mail/ripmime
X
XUSE_REINPLACE=    YES
XGNU_CONFIGURE=    YES
XCONFIGURE_TARGET=    --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XPORTDOCS=    spamass-qsheff.en.html README COPYING AUTHORS ChangeLog \
X        INSTALL UPGRADE THANKS TODO
X
XOPTIONS=    CLAMAV "Integrate with Clam AntiVirus" on
X
X.include <bsd.port.pre.mk>
X
X.if exists(${LOCALBASE}/qmail/bin/qmail-queue)
XQMAIL_DIR?=    ${LOCALBASE}/qmail
X.else
XQMAIL_DIR?=    /var/qmail
X.endif
XQMAIL_QUEUE=    ${QMAIL_DIR}/bin/qmail-queue
X
X.if !defined(WITHOUT_CLAMAV)
XRUN_DEPENDS+=    ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
X.endif
X
XCONFIGURE_ARGS+=    --with-qmaildir=${QMAIL_DIR}
X
Xpost-patch:
X.if defined(NOPORTDOCS)
X    @${REINPLACE_CMD} -e 's|\(install-data-am: 
\)install-qsheffdocDATA|\1|g' \
X              -e 's| contribute$$||g' \
X        ${WRKSRC}/Makefile.in
X.endif
X
Xpost-build:
X.if defined(WITHOUT_CLAMAV)
X    @${REINPLACE_CMD} -e 's|enable_virus_prog = 1|enable_virus_prog = 
0|g' ${WRKSRC}/etc/qsheff.conf-default
X.endif
X
X.include <bsd.port.post.mk>
END-of-qsheff/Makefile
echo x - qsheff/distinfo
sed 's/^X//' >qsheff/distinfo << 'END-of-qsheff/distinfo'
XMD5 (qsheff-1.0-r1.tar.gz) = fa9e21cbf2a9014beb05d8a7e55a46d8
XSIZE (qsheff-1.0-r1.tar.gz) = 105460
END-of-qsheff/distinfo
echo x - qsheff/pkg-descr
sed 's/^X//' >qsheff/pkg-descr << 'END-of-qsheff/pkg-descr'
XA qmail-queue replacement to filter mail traffic and more.
XIt supports:
X    * Antivirus executing
X    * body filtering
X    * subject filtering
X    * attachment blocking
X    * quarantine
X    * white/black list
X    * single line logging for qmail and many features.
X
XProject Page:
XWWW: http://www.enderunix.org/qsheff
X
XAuthor:
X
XBaris SIMSEK
Xsimsek@enderunix.org
XEnderUNIX SDT @ Turkey
Xhttp://www.enderunix.org/simsek/
END-of-qsheff/pkg-descr
echo x - qsheff/pkg-plist
sed 's/^X//' >qsheff/pkg-plist << 'END-of-qsheff/pkg-plist'
X@comment $FreeBSD$
Xbin/qsheff
X@unexec if cmp -s %D/etc/qsheff/qsheff.attach 
%D/etc/qsheff/qsheff.attach-default; then rm -f 
%D/etc/qsheff/qsheff.attach; fi
Xetc/qsheff/qsheff.attach-default
X@exec [ -f %B/qsheff.attach ] || cp %B/%f %B/qsheff.attach
X@unexec if cmp -s %D/etc/qsheff/qsheff.conf 
%D/etc/qsheff/qsheff.conf-default; then rm -f %D/etc/qsheff/qsheff.conf; fi
Xetc/qsheff/qsheff.conf-default
X@unexec if cmp -s %D/etc/qsheff/qsheff.rules 
%D/etc/qsheff/qsheff.rules-default; then rm -f 
%D/etc/qsheff/qsheff.rules; fi
Xetc/qsheff/qsheff.rules-default
X@exec [ -f %B/qsheff.rules ] || cp %B/%f %B/qsheff.attach
X@unexec if cmp -s %D/etc/qsheff/qsheff.wblist 
%D/etc/qsheff/qsheff.wblist-default; then rm -f 
%D/etc/qsheff/qsheff.wblist; fi
Xetc/qsheff/qsheff.wblist-default
X@exec [ -f %B/qsheff.wblist ] || cp %B/%f %B/qsheff.attach
X%%DATADIR%%/developer.notes
X%%DATADIR%%/eicar.com.txt
X%%DATADIR%%/sample-OK.msg
X%%DATADIR%%/sample-SPAM.msg
X%%DATADIR%%/sample-VIRUS.msg
X%%DATADIR%%/uninstall.sh
X@unexec if [ -h /var/qmail/bin/qmail-queue ]; then rm 
/var/qmail/bin/qmail-queue; fi
X@unexec if [ -x /var/qmail/bin/qmail-queue.orig ]; then mv 
/var/qmail/bin/qmail-queue.orig /var/qmail/bin/qmail-queue; chmod 4711 
/var/qmail/bin/qmail-queue; chown qmailq /var/qmail/bin/qmail-queue; fi
X@unexec rmdir %D/etc/qsheff 2>/dev/null || true
X@dirrm %%DATADIR%%
X@unexec echo "Quarantina directory (/var/spool/qsheffq) not removed. 
You can remove it manually."
END-of-qsheff/pkg-plist
exit



Ozkan KIRIK
EnderUNIX SDT @ Turkey
Software Developer
http://www.enderunix.org/
Comment 5 Renato Botelho freebsd_committer freebsd_triage 2005-07-20 14:47:14 UTC
State Changed
From-To: feedback->closed

New port added, thanks!