2013-03-15 23:03:42 +01:00
|
|
|
# Created by: Anton Karpov <toxa@toxahost.ru>
|
2005-04-03 18:04:21 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= simscan
|
2008-01-31 21:36:41 +01:00
|
|
|
PORTVERSION= 1.4.0
|
2010-04-06 14:01:56 +02:00
|
|
|
PORTREVISION= 6
|
2005-04-03 18:04:21 +02:00
|
|
|
CATEGORIES= mail security
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2005-04-03 18:04:21 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
|
|
|
|
2009-08-17 11:22:11 +02:00
|
|
|
MAINTAINER= lippe@FreeBSD.org
|
2005-04-03 18:04:21 +02:00
|
|
|
COMMENT= Fast Content/Anti-virus Scanner for qmail Written in C
|
|
|
|
|
2013-03-15 23:03:42 +01:00
|
|
|
USES= qmail:build
|
2005-04-03 18:04:21 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2011-07-10 19:45:53 +02:00
|
|
|
USERS= ${PORTNAME}
|
|
|
|
GROUPS= ${USERS}
|
|
|
|
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
WORKDIR?= ${QMAIL_PREFIX}/${PORTNAME}
|
|
|
|
QMAIL_QUEUE= ${QMAIL_PREFIX}/bin/qmail-queue
|
2007-08-30 18:12:16 +02:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message \
|
2011-07-10 19:45:53 +02:00
|
|
|
pkg-install
|
2007-08-30 18:12:16 +02:00
|
|
|
SUB_LIST= QMAIL_PREFIX=${QMAIL_PREFIX} \
|
2005-04-03 18:04:21 +02:00
|
|
|
SIMSCAN_DIR=${PORTNAME}
|
2011-07-10 19:45:53 +02:00
|
|
|
PLIST_SUB= QMAIL_PREFIX=${QMAIL_PREFIX} \
|
|
|
|
SIMSCAN_DIR=${PORTNAME}
|
2005-04-03 18:04:21 +02:00
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
OPTIONS_DEFINE= CLAMAV RIPMIME SPAMD USER DOMAIN ATTACH DROPMSG PASSTHRU HEADERS DSPAM
|
|
|
|
OPTIONS_DEFAULT= CLAMAV RIPMIME
|
|
|
|
CLAMAV_DESC= Support for ClamAV Virus Scanning
|
|
|
|
RIPMIME_DESC= Ripmime Processing (if Clamav ScanMail disabled)
|
|
|
|
SPAMD_DESC= Support for SpamAssassin Spam Filtering
|
|
|
|
USER_DESC= Turn On Per User SpamAssassin (required SPAMD)
|
|
|
|
DOMAIN_DESC= Turn On Per Domain Based Checking
|
|
|
|
ATTACH_DESC= Turn On Attachment Scanning (required CLAMAV)
|
|
|
|
DROPMSG_DESC= Drop Message in Case of Virus Found
|
|
|
|
PASSTHRU_DESC= Pass Spam Thru, Do Not Reject (required SPAMD)
|
|
|
|
HEADERS_DESC= Add a Received Line With Versions of Scanners
|
|
|
|
DSPAM_DESC= Turn on DSPAM scanning
|
2005-04-03 18:04:21 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ARGS=--enable-clamavdb-path=/var/db/clamav \
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
--enable-qmaildir=${QMAIL_PREFIX} \
|
2005-04-03 18:04:21 +02:00
|
|
|
--enable-spamc-user=n \
|
2005-08-09 15:58:39 +02:00
|
|
|
--enable-workdir=${WORKDIR} \
|
|
|
|
--enable-user=nobody
|
2005-04-03 18:04:21 +02:00
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MCLAMAV}
|
2005-07-06 21:36:24 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-clamav=n
|
2005-04-03 18:04:21 +02:00
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= clamdscan:${PORTSDIR}/security/clamav
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MRIPMIME}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-ripmime
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ripmime:${PORTSDIR}/mail/ripmime
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MSPAMD}
|
2005-04-03 18:04:21 +02:00
|
|
|
BUILD_DEPENDS+= spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
|
|
|
CONFIGURE_ARGS+=--enable-spam=y
|
|
|
|
CONFIGURE_ARGS+=--enable-spamassassin-path=${LOCALBASE}/bin/spamassassin
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MUSER}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-spamc-user=y
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOMAIN}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-per-domain=y
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MATTACH}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-attach=y
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDROPMSG}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-dropmsg=y
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MPASSTHRU}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-spam-passthru=y
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MHEADERS}
|
2005-04-03 18:04:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-received=y
|
|
|
|
CONFIGURE_ARGS+=--enable-sigtool-path=${LOCALBASE}/bin/sigtool
|
|
|
|
.endif
|
|
|
|
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDSPAM}
|
2009-11-21 21:18:14 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-dspam=y
|
|
|
|
BUILD_DEPENDS+= dspam:${PORTSDIR}/mail/dspam
|
|
|
|
.endif
|
|
|
|
|
2005-04-03 18:04:21 +02:00
|
|
|
.if defined(SPAM_HITS)
|
|
|
|
CONFIGURE_ARGS+=--enable-spam-hits=${SPAM_HITS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(QUARANTINE_DIR)
|
|
|
|
CONFIGURE_ARGS+=--enable-quarantinedir=${QUARANTINE_DIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(SPAMC_ARGS)
|
|
|
|
CONFIGURE_ARGS+=--enable-spamc-args=${SPAMC_ARGS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(QMAIL_QUEUE)
|
|
|
|
CONFIGURE_ARGS+=--enable-qmail-queue=${QMAIL_QUEUE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS ChangeLog README TODO
|
|
|
|
|
|
|
|
if ! ${TEST} -f ${QMAIL_QUEUE}; then \
|
|
|
|
${ECHO_MSG} "Unable to found qmail-queue binary trying '${QMAIL_QUEUE}'."; \
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
${ECHO_MSG} "Please set QMAIL_PREFIX to your qmail installation directory !"; \
|
2005-04-03 18:04:21 +02:00
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2007-08-30 18:12:16 +02:00
|
|
|
post-patch:
|
2007-09-10 14:58:04 +02:00
|
|
|
@${REINPLACE_CMD} -E 's,($f/daily.cvd"),\1 || test -d "$$f/daily.inc",' \
|
2007-08-30 18:12:16 +02:00
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2005-04-03 18:04:21 +02:00
|
|
|
pre-configure:
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~="
|
|
|
|
@${ECHO_MSG} "You may also use the following build options:"
|
|
|
|
@${ECHO_MSG} ""
|
2007-08-30 18:12:16 +02:00
|
|
|
@${ECHO_MSG} "QMAIL_PREFIX Base qmail directory. Default is ${QMAIL_PREFIX}"
|
|
|
|
@${ECHO_MSG} "WORKDIR Directory to unpack emails. Default is ${QMAIL_PREFIX}/${PORTNAME}"
|
|
|
|
@${ECHO_MSG} "QMAIL_QUEUE Define full path and name of the qmail-queue program"
|
|
|
|
@${ECHO_MSG} " Incoming mail is passed to this program after being"
|
|
|
|
@${ECHO_MSG} " scanned by SimScan. Default is ${QMAIL_PREFIX}/bin/qmail-queue"
|
|
|
|
@${ECHO_MSG} "SPAMC_ARGS Define the arguments to pass to spamc."
|
|
|
|
@${ECHO_MSG} " Be sure to place quotes around the options you define"
|
|
|
|
@${ECHO_MSG} "SPAM_HITS Reject spam only above this hit level"
|
|
|
|
@${ECHO_MSG} " Default is 10.0. Useful without PASSTHRU option"
|
|
|
|
@${ECHO_MSG} "QUARANTINE_DIR Directory to keep spam and/or infected emails"
|
|
|
|
@${ECHO_MSG} " Default is disabled"
|
2005-04-03 18:04:21 +02:00
|
|
|
@${ECHO_MSG} "=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~="
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2005-08-09 15:58:39 +02:00
|
|
|
pre-install:
|
|
|
|
@${REINPLACE_CMD} -e 's|nobody|simscan|g' ${WRKSRC}/Makefile
|
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2005-04-03 18:04:21 +02:00
|
|
|
post-install:
|
2005-08-09 15:58:39 +02:00
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2013-06-04 17:47:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-04-03 18:04:21 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|