Index: head/news/sabnzbdplus/Makefile =================================================================== --- head/news/sabnzbdplus/Makefile (revision 439469) +++ head/news/sabnzbdplus/Makefile (revision 439470) @@ -1,78 +1,77 @@ # $FreeBSD$ PORTNAME= sabnzbdplus PORTVERSION= 1.2.3 CATEGORIES= news MAINTAINER= joshruehlig@gmail.com COMMENT= Web-interface based binary newsgrabber in python, with nzb support LICENSE= BSD2CLAUSE BSD3CLAUSE GPLv2+ ISCL MIT PSFL LICENSE_COMB= multi RUN_DEPENDS= cheetah:devel/py-cheetah \ ${PYTHON_SITELIBDIR}/pythonutils/configobj.py:devel/py-utils \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 USE_GITHUB= yes GH_ACCOUNT= sabnzbd GH_PROJECT= sabnzbd GH_TAGNAME= a894ca5 USES= python:2.7 shebangfix SHEBANG_FILES= SABnzbd.py tools/msgfmt.py NO_ARCH= yes SUB_LIST= PYTHON_CMD=${PYTHON_CMD} SUB_FILES= pkg-message USE_RC_SUBR= sabnzbd PORTDOCS= ABOUT.txt \ COPYRIGHT.txt \ INSTALL.txt \ ISSUES.txt \ README.mkd USERS= _sabnzbd GROUPS= _sabnzbd OPTIONS_DEFINE= PAR2CMDLINE UNRAR 7ZIP FEEDPARSER YENC SSL DOCS OPTIONS_DEFAULT= PAR2CMDLINE UNRAR 7ZIP FEEDPARSER YENC SSL PAR2CMDLINE_DESC= Required for postprocessing of par files -UNRAR_DESC= Often required for unpacking many downloads 7ZIP_DESC= Needed for unpacking 7-Zip posts FEEDPARSER_DESC= rss-feed support YENC_DESC= yenc support PAR2CMDLINE_RUN_DEPENDS= par2repair:archivers/par2cmdline-tbb FEEDPARSER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>=0:textproc/py-feedparser YENC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yenc>=0:news/py-yenc SSL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography UNRAR_RUN_DEPENDS= unrar:archivers/unrar 7ZIP_RUN_DEPENDS= 7za:archivers/p7zip post-patch: @${REINPLACE_CMD} -e "s:%%DATADIR%%:'${DATADIR}':g" \ ${WRKSRC}/SABnzbd.py # Generate locale files do-build: cd ${WRKSRC} && ${PYTHON_CMD} tools/make_mo.py do-install: ${INSTALL_SCRIPT} ${WRKSRC}/SABnzbd.py ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd cd ${WRKSRC}/sabnzbd && ${COPYTREE_SHARE} \* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sabnzbd @${MKDIR} ${STAGEDIR}${DATADIR} .for i in cherrypy gntp interfaces locale po tools util @${MKDIR} ${STAGEDIR}${DATADIR}/${i} cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/${i} .endfor post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/security/amavisd-new/Makefile =================================================================== --- head/security/amavisd-new/Makefile (revision 439469) +++ head/security/amavisd-new/Makefile (revision 439470) @@ -1,269 +1,268 @@ # $FreeBSD$ PORTNAME= amavisd-new PORTVERSION= 2.11.0 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ \ http://mirrors.catpipe.net/amavisd-new/ \ http://mirror.mainloop.se/amavisd/ MAINTAINER= flo@FreeBSD.org COMMENT= Mail scanner interface between mailer and content checkers LICENSE= GPLv2 RUN_DEPENDS= p5-Unix-Syslog>=0:sysutils/p5-Unix-Syslog \ p5-MIME-Tools>=0:mail/p5-MIME-Tools \ p5-Convert-TNEF>=0:converters/p5-Convert-TNEF \ p5-Convert-UUlib>=1.08,1:converters/p5-Convert-UUlib \ p5-Archive-Zip>=1.14:archivers/p5-Archive-Zip \ p5-Net-Server>=2.0:net/p5-Net-Server \ p5-Mail-DKIM>=0.33:mail/p5-Mail-DKIM \ p5-Net-LibIDN>=0:dns/p5-Net-LibIDN USES= perl5 shebangfix tar:xz USE_PERL5= run SHEBANG_FILES= amavisd-agent amavisd-nanny amavisd-release p0f-analyzer.pl \ amavisd-snmp-subagent amavisd NO_BUILD= yes DOCS= AAAREADME.first AMAVIS-MIB.txt INSTALL LDAP.schema LICENSE \ RELEASE_NOTES README_FILES/README.* README_FILES/screen.css \ README_FILES/amavisd-new-docs.html AMAVISUSER?= vscan AMAVISGROUP?= vscan USERS= ${AMAVISUSER} GROUPS= ${AMAVISGROUP} AMAVISDIR?= /var/amavis AMAVISQUARANTINE?= /var/virusmails DAEMON?= /usr/sbin/daemon -p OPTIONS_DEFINE= IPV6 BDB SNMP SQLITE MYSQL PGSQL LDAP SASL SPAMASSASSIN P0F ALTERMIME \ FILE RAR UNRAR ARJ UNARJ LHA ARC NOMARCH CAB RPM ZOO UNZOO LZOP FREEZE \ P7ZIP MSWORD TNEF DOCS OPTIONS_DEFAULT= BDB SPAMASSASSIN FILE UNRAR ARJ LHA ARC CAB RPM ZOO LZOP \ FREEZE P7ZIP MSWORD BDB_DESC= Use BerkeleyDB for nanny/cache/snmp SNMP_DESC= Install amavisd snmp subagent SQLITE_DESC= Use SQLite for lookups MYSQL_DESC= Use MySQL for lookups/logging/quarantine PGSQL_DESC= Use PgSQL for lookups/logging/quarantine LDAP_DESC= Use LDAP for lookups SASL_DESC= Use SASL authentication SPAMASSASSIN_DESC= Use mail/spamassassin P0F_DESC= Passive operating system fingerprinting ALTERMIME_DESC= Use AlterMime for defanging/disclaimers FILE_DESC= Use newer file(1) utility from ports RAR_DESC= RAR support with archivers/rar -UNRAR_DESC= RAR support with archivers/unrar ARJ_DESC= ARJ support with archivers/arj UNARJ_DESC= ARJ support with archivers/unarj LHA_DESC= LHA support with archivers/lha ARC_DESC= ARC support with archivers/arc NOMARCH_DESC= ARC support with archivers/nomarch CAB_DESC= CAB support with archivers/cabextract RPM_DESC= RPM support with archivers/rpm2cpio ZOO_DESC= ZOO support with archivers/zoo UNZOO_DESC= ZOO support with archivers/unzoo LZOP_DESC= LZOP support with archivers/lzop FREEZE_DESC= FREEZE support with archivers/freeze P7ZIP_DESC= P7ZIP support with archivers/p7zip MSWORD_DESC= Ms Word support with textproc/ripole TNEF_DESC= Add external tnef decoder converters/tnef SUB_FILES= pkg-deinstall pkg-message SUB_LIST+= AMAVISUSER=${AMAVISUSER} \ AMAVISGROUP=${AMAVISGROUP} \ AMAVISDIR=${AMAVISDIR} \ AMAVISQUARANTINE=${AMAVISQUARANTINE} \ DAEMON="${DAEMON}" \ PERL=${PERL} PLIST_SUB+= AMAVISUSER=${AMAVISUSER} \ AMAVISGROUP=${AMAVISGROUP} \ AMAVISDIR=${AMAVISDIR} \ AMAVISQUARANTINE=${AMAVISQUARANTINE} \ AMAVIS_NOP0F=${AMAVIS_NOP0F} .include USE_RC_SUBR+= amavisd .if ${PORT_OPTIONS:MIPV6} RUN_DEPENDS+= p5-IO-Socket-INET6>=0:net/p5-IO-Socket-INET6 .endif .if ${PORT_OPTIONS:MSNMP} && ${PORT_OPTIONS:MBDB} USE_RC_SUBR+= amavisd-snmp RUN_DEPENDS+= p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP .endif .if ${PORT_OPTIONS:MBDB} RUN_DEPENDS+= p5-BerkeleyDB>=0:databases/p5-BerkeleyDB .endif .if ${PORT_OPTIONS:MSQLITE} RUN_DEPENDS+= p5-DBD-SQLite>=0:databases/p5-DBD-SQLite .endif .if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= p5-DBD-mysql>=0:databases/p5-DBD-mysql .endif .if ${PORT_OPTIONS:MPGSQL} RUN_DEPENDS+= p5-DBD-Pg>=0:databases/p5-DBD-Pg .endif .if ${PORT_OPTIONS:MLDAP} RUN_DEPENDS+= p5-perl-ldap>=0:net/p5-perl-ldap .endif .if ${PORT_OPTIONS:MSASL} RUN_DEPENDS+= p5-Authen-SASL>=0:security/p5-Authen-SASL .endif .if ${PORT_OPTIONS:MSPAMASSASSIN} RUN_DEPENDS+= spamassassin>=0:mail/spamassassin .endif .if ${PORT_OPTIONS:MP0F} RUN_DEPENDS+= ${LOCALBASE}/bin/p0f:net-mgmt/p0f USE_RC_SUBR+= amavis-p0fanalyzer .else AMAVIS_NOP0F= "@comment " .endif .if ${PORT_OPTIONS:MALTERMIME} RUN_DEPENDS+= ${LOCALBASE}/bin/altermime:mail/altermime .endif .if ${PORT_OPTIONS:MFILE} # security fix, file >= 4.21 needed RUN_DEPENDS+= file>=4.21:sysutils/file .endif # archviers/rar is a 32-bit binary port, we don't want the install to fail # at that port, therefore we will block instantly here if the platform does # not suit rar. .if ${PORT_OPTIONS:MRAR} # support for archivers/rar is broken on ia64 .if ${ARCH} == "i386" || ${ARCH} == "amd64" RUN_DEPENDS+= ${LOCALBASE}/bin/rar:archivers/rar .else IGNORE= archviers/rar is a 32-bit binary port and is not compatible with ${ARCH} .endif .endif .if ${PORT_OPTIONS:MUNRAR} RUN_DEPENDS+= ${LOCALBASE}/bin/unrar:archivers/unrar .endif .if ${PORT_OPTIONS:MARJ} RUN_DEPENDS+= ${LOCALBASE}/bin/arj:archivers/arj .endif .if ${PORT_OPTIONS:MUNARJ} RUN_DEPENDS+= ${LOCALBASE}/bin/unarj:archivers/unarj .endif .if ${PORT_OPTIONS:MLHA} RUN_DEPENDS+= ${LOCALBASE}/bin/lha:archivers/lha .endif .if ${PORT_OPTIONS:MARC} RUN_DEPENDS+= ${LOCALBASE}/bin/arc:archivers/arc .endif .if ${PORT_OPTIONS:MNOMARCH} RUN_DEPENDS+= ${LOCALBASE}/bin/nomarch:archivers/nomarch .endif .if ${PORT_OPTIONS:MCAB} RUN_DEPENDS+= ${LOCALBASE}/bin/cabextract:archivers/cabextract .endif .if ${PORT_OPTIONS:MRPM} RUN_DEPENDS+= ${LOCALBASE}/bin/rpm2cpio.pl:archivers/rpm2cpio .endif .if ${PORT_OPTIONS:MZOO} # DOS condition in 2.10.1_2 RUN_DEPENDS+= zoo>=2.10.1_2:archivers/zoo .endif .if ${PORT_OPTIONS:MUNZOO} RUN_DEPENDS+= unzoo>=4.4_1:archivers/unzoo .endif .if ${PORT_OPTIONS:MLZOP} RUN_DEPENDS+= ${LOCALBASE}/bin/lzop:archivers/lzop .endif .if ${PORT_OPTIONS:MFREEZE} RUN_DEPENDS+= ${LOCALBASE}/bin/unfreeze:archivers/freeze .endif .if ${PORT_OPTIONS:MP7ZIP} RUN_DEPENDS+= ${LOCALBASE}/bin/7zr:archivers/p7zip .endif .if ${PORT_OPTIONS:MMSWORD} RUN_DEPENDS+= ${LOCALBASE}/bin/ripole:textproc/ripole .endif .if ${PORT_OPTIONS:MTNEF} RUN_DEPENDS+= ${LOCALBASE}/bin/tnef:converters/tnef .endif .include post-patch: @${REINPLACE_CMD} -e "s|$daemon_user = \'vscan\';|$daemon_user = \'${AMAVISUSER}\';|" \ -e "s|$daemon_group = \'vscan\';|$daemon_group = \'${AMAVISGROUP}\';|" \ -e "s|/var/amavis|${AMAVISDIR}|" \ -e "s|/var/lib/amavis|${AMAVISDIR}|" \ -e "s|/var/virusmails|${AMAVISQUARANTINE}|" \ -e 's|$$localhost_name = .localhost.;|$$localhost_name = $$myhostname;|' \ -e 's|/var/run/clamav/clamd|/var/run/clamav/clamd|g' \ ${WRKSRC}/amavisd.conf @${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|" ${WRKSRC}/amavisd-agent @${REINPLACE_CMD} "s|/var/amavis/db|${AMAVISDIR}/db|" ${WRKSRC}/amavisd-nanny @${REINPLACE_CMD} -e "s|/var/amavis/db|${AMAVISDIR}/db|" \ ${WRKSRC}/amavisd-snmp-subagent @${REINPLACE_CMD} "s|/var/amavis/amavisd.sock|${AMAVISDIR}/amavisd.sock|" \ ${WRKSRC}/amavisd-release @${REINPLACE_CMD} -e "s|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|" \ -e "s|/var/amavis|${AMAVISDIR}|g" \ -e 's|$$localhost_name = .localhost.;|$$localhost_name = $$myhostname;|' \ ${WRKSRC}/amavisd do-install: .for i in amavisd amavisd-agent amavisd-nanny amavisd-release amavisd-snmp-subagent ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/sbin .endfor ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf ${STAGEDIR}${PREFIX}/etc/amavisd.conf.sample ${INSTALL_SCRIPT} ${WRKSRC}/amavisd.conf-default ${STAGEDIR}${PREFIX}/etc/amavisd.conf-default ${INSTALL_SCRIPT} ${WRKSRC}/amavisd-custom.conf ${STAGEDIR}${PREFIX}/etc/amavisd-custom.conf.sample ${LN} -s ${PREFIX}/sbin/amavisd-release ${STAGEDIR}${PREFIX}/sbin/amavisd-requeue ${MKDIR} ${STAGEDIR}${AMAVISDIR}/var ${MKDIR} ${STAGEDIR}${AMAVISDIR}/tmp ${MKDIR} ${STAGEDIR}${AMAVISDIR}/db ${MKDIR} ${STAGEDIR}${AMAVISQUARANTINE} do-install-P0F-on: ${INSTALL_SCRIPT} ${WRKSRC}/p0f-analyzer.pl ${STAGEDIR}${PREFIX}/sbin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR}/images .for i in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor @${CP} -pr ${WRKSRC}/README_FILES/images/ ${STAGEDIR}${DOCSDIR}/images .include Index: head/security/clamav/Makefile =================================================================== --- head/security/clamav/Makefile (revision 439469) +++ head/security/clamav/Makefile (revision 439470) @@ -1,217 +1,216 @@ # Created by: markun@onohara.to # $FreeBSD$ PORTNAME= clamav PORTVERSION= 0.99.2 PORTREVISION= 3 CATEGORIES= security MASTER_SITES= http://www.clamav.net/downloads/production/ MAINTAINER= garga@FreeBSD.org COMMENT= Command line virus scanner written entirely in C LICENSE= GPLv2 LIB_DEPENDS= libltdl.so:devel/libltdl \ libcurl.so:ftp/curl OPTIONS_DEFINE= ARC ARJ LHA UNZOO UNRAR LLVM TESTS MILTER LDAP ICONV STDERR \ EXPERIMENTAL DOCS IPV6 DMG_XAR JSON PCRE ARC_DESC= Enable arch archives support ARJ_DESC= Enable arj archives support LHA_DESC= Enable lha archives support UNZOO_DESC= Enable zoo archives support -UNRAR_DESC= Enable rar archives support LLVM_DESC= Enable JIT Bytecode compiler (req. LLVM) TESTS_DESC= Run compile-time tests (req. python) MILTER_DESC= Compile the milter interface STDERR_DESC= Print logs to stderr instead of stdout EXPERIMENTAL_DESC= Build experimental code DMG_XAR_DESC= Enable DMG and XAR archives support OPTIONS_DEFAULT= ARC ARJ LHA UNZOO UNRAR DMG_XAR \ JSON PCRE ARC_RUN_DEPENDS= arc:archivers/arc ARJ_RUN_DEPENDS= arj:archivers/arj LHA_RUN_DEPENDS= lha:archivers/lha UNZOO_RUN_DEPENDS= unzoo:archivers/unzoo JSON_LIB_DEPENDS= libjson-c.so:devel/json-c PCRE_LIB_DEPENDS= libpcre.so:devel/pcre UNRAR_CONFIGURE_ENABLE= unrar MILTER_CONFIGURE_ENABLE=milter TESTS_CONFIGURE_ENABLE= check JSON_CONFIGURE_WITH= libjson PCRE_CONFIGURE_WITH= pcre TESTS_BUILD_DEPENDS= ${LOCALBASE}/include/check.h:devel/check ICONV_CONFIGURE_ON= --with-iconv ICONV_CONFIGURE_OFF= --without-iconv ICONV_USES= iconv LLVM_USES= compiler:c++11-lib EXPERIMENTAL_CONFIGURE_ENABLE= experimental IPV6_CONFIGURE_ENABLE= ipv6 DMG_XAR_CONFIGURE_ENABLE= xml DMG_XAR_USE= GNOME=libxml2 GNU_CONFIGURE= yes USE_LDCONFIG= yes USES= cpe gmake libtool ncurses pathfix INSTALL_TARGET= install-strip USE_RC_SUBR= clamav-clamd clamav-freshclam PORTDOCS= * DBDIR= /var/db/clamav LOGDIR= /var/log/clamav RUNDIR= /var/run/clamav PLIST_SUB+= DBDIR=${DBDIR} \ LOGDIR=${LOGDIR} \ RUNDIR=${RUNDIR} \ CLAMAVUSER=${CLAMAVUSER} \ CLAMAVGROUP=${CLAMAVGROUP} PY_NO_THREAD= ${WRKDIR}/.python-has-no-threads OPTIONS_SUB= yes CONFIGURE_ARGS= --libdir=${PREFIX}/lib \ --with-dbdir=${DBDIR} \ --with-zlib=/usr \ --disable-clamuko \ --disable-clamav \ --enable-bigstack \ --enable-readdir_r \ --enable-gethostbyname_r \ --disable-dependency-tracking \ --disable-zlib-vcheck \ --enable-clamdtop CPPFLAGS+= -I${LOCALBASE}/include # This port has a problem with -pthread, # force to use -lthr until it's not fixed. LDFLAGS+= -lthr -L${LOCALBASE}/lib CONFLICTS?= clamav-milter-[0-9]* CLAMAVUSER?= clamav CLAMAVGROUP?= clamav CLAMAV_CLAMD_SOCKET?= ${RUNDIR}/clamd.sock CLAMAV_MILTER_SOCKET?= ${RUNDIR}/clmilter.sock SUB_FILES= pkg-deinstall SUB_LIST+= DBDIR=${DBDIR} \ LOGDIR=${LOGDIR} \ RUNDIR=${RUNDIR} \ CHMOD=${CHMOD} \ CHOWN=${CHOWN} \ CLAMAVUSER=${CLAMAVUSER} \ CLAMAVGROUP=${CLAMAVGROUP} \ CLAMAV_CLAMD_SOCKET=${CLAMAV_CLAMD_SOCKET} \ CLAMAV_MILTER_SOCKET=${CLAMAV_MILTER_SOCKET} SED_CONF= -E -e 's|^\#?(Example)$$|\#\1|' \ -e 's|^\#?((Update)?LogFile) .*/([a-z]+\.log)$$|\1 ${LOGDIR}/\3|' \ -e 's|^\#?(PidFile) .*/([a-z\-]+\.pid)$$|\1 ${RUNDIR}/\2|' \ -e 's|^\#?(LocalSocket) .*$$|\1 ${CLAMAV_CLAMD_SOCKET}|' \ -e 's|^\#?(User) .*$$|\1 ${CLAMAVUSER}|' \ -e 's|^\#?(AllowSupplementaryGroups).*$$|\1 yes|' \ -e 's|^\#?(ScanMail).*$$|\1 yes|' \ -e 's|^\#?(DatabaseDirectory) .*$$|\1 ${DBDIR}|' \ -e 's|^\#?(DatabaseOwner) .*$$|\1 ${CLAMAVUSER}|' \ -e 's|^\#?(FixStaleSocket).*$$|\1 yes|' \ -e 's|^\#?(NotifyClamd) .*$$|\1 ${PREFIX}/etc/clamd.conf|' \ -e 's|^\#?(MilterSocket) */tmp.*$$|\1 ${CLAMAV_MILTER_SOCKET}|' \ -e 's|^\#?(ClamdSocket).*$$|\1 unix:${CLAMAV_CLAMD_SOCKET}|' PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \ CLAMAVGROUP=${CLAMAVGROUP} .include .if ${CLAMAVUSER} == "clamav" USERS= clamav .endif .if ${CLAMAVGROUP} == "clamav" GROUPS= clamav mail .endif .if ${PORT_OPTIONS:MLLVM} && ( ${ARCH} == "i386" || ${ARCH} == "amd64" ) CONFIGURE_ARGS+=--enable-llvm --with-system-llvm=${LOCALBASE}/llvm${LLVMVER} BUILD_DEPENDS+= llvm${LLVMVER}>=0:devel/llvm${LLVMVER} # Beware: ClamAV doesn't support LLVM 3.7 or higher yet LLVMVER= 36 . if ${PORT_OPTIONS:MTESTS} USES+= python:build . endif .else CONFIGURE_ARGS+=--disable-llvm .endif .if ${PORT_OPTIONS:MMILTER} USE_RC_SUBR+= clamav-milter . if ${PORT_OPTIONS:MLDAP} && exists(${LOCALBASE}/lib/libldap.so) USE_OPENLDAP= yes LDFLAGS+= -lldap . endif . if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a) BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:mail/libmilter CONFIGURE_ARGS+=--with-sendmail=${LOCALBASE}/sbin/sendmail LDFLAGS+= -L${LOCALBASE}/lib . else CONFIGURE_ARGS+=--with-sendmail=/usr/sbin/sendmail . endif .endif .if ${PORT_OPTIONS:MSTDERR} EXTRA_PATCHES+= ${FILESDIR}/extra-patch-shared_output.c .endif .include .if ${ARCH} == "i386" CFLAGS+= -march=i486 .endif post-patch: @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|-lthr|g' \ -e 's|LC_REVISION=22|LC_REVISION=24|' \ ${WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} ${SED_CONF} \ ${WRKSRC}/etc/clamd.conf.sample \ ${WRKSRC}/etc/freshclam.conf.sample \ ${WRKSRC}/etc/clamav-milter.conf.sample @${REINPLACE_CMD} -e 's|0x100000000|0x100000000ULL|g' \ ${WRKSRC}/libclamunrar/unrar.c .if ${PORT_OPTIONS:MLLVM} && ${PORT_OPTIONS:MTESTS} pre-configure: @if ! ${PYTHON_CMD} -c "import thread" >/dev/null 2>&1; then \ ${ECHO_MSG} ""; \ ${ECHO_MSG} "==========================================================================="; \ ${ECHO_MSG} "= Unit tests REQUIRES python built with thread support, and yours is not. ="; \ ${ECHO_MSG} "= It will not be called during this build ="; \ ${ECHO_MSG} "==========================================================================="; \ ${ECHO_MSG} ""; \ ${TOUCH} ${PY_NO_THREAD}; \ fi .endif .if ${PORT_OPTIONS:MTESTS} post-build: @if [ ! -f "${PY_NO_THREAD}" ]; then \ ${MAKE_CMD} -C ${WRKSRC} check; \ fi .endif post-install: ${INSTALL_DATA} ${WRKSRC}/clamav-config.h ${STAGEDIR}${PREFIX}/include @${MKDIR} ${STAGEDIR}${DOCSDIR}/html \ ${STAGEDIR}${DBDIR} \ ${STAGEDIR}${LOGDIR} \ ${STAGEDIR}${RUNDIR} ${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}/html .include Index: head/security/maia/Makefile =================================================================== --- head/security/maia/Makefile (revision 439469) +++ head/security/maia/Makefile (revision 439470) @@ -1,360 +1,359 @@ # Created by: Janky Jay # $FreeBSD$ PORTNAME= maia DISTVERSION= 1.0.4 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.purplehat.org/downloads/maia/ MAINTAINER= ek@purplehat.org COMMENT= Web-based management system based on amavisd-new and SpamAssassin RUN_DEPENDS= p5-Unix-Syslog>=0.94:sysutils/p5-Unix-Syslog \ p5-MIME-Tools>=4.116:mail/p5-MIME-Tools \ p5-Convert-TNEF>=0.08:converters/p5-Convert-TNEF \ p5-Convert-UUlib>=1.08,1:converters/p5-Convert-UUlib \ p5-Net-CIDR-Lite>=0.18:net/p5-Net-CIDR-Lite \ p5-forks>=0.34:devel/p5-forks \ p5-Archive-Zip>=0.10:archivers/p5-Archive-Zip \ p5-IO-stringy>=1.203:devel/p5-IO-stringy \ p5-IO-Socket-INET6>=1.27:net/p5-IO-Socket-INET6 \ p5-Text-CSV>=1.02:textproc/p5-Text-CSV \ p5-Data-UUID>=1.148:devel/p5-Data-UUID \ p5-Template-Toolkit>=2.13:www/p5-Template-Toolkit \ p5-Net-Server>=0.93:net/p5-Net-Server WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} USES= perl5 shebangfix USE_PERL5= run NO_BUILD= yes DOCS= LICENSE.txt README.md maiad.conf.dist maia-mysql.sql maia-pgsql.sql maia.conf.dist USERS= vscan GROUPS= vscan MAIAHOME= /var/maiad MAIAQUARANTINE?= /var/maiad/virusmails PEAR_DIR?= ${LOCALBASE}/share/pear PLIST_SUB+= USERS="${USERS}" GROUPS="${GROUPS}" WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" OPTIONS_DEFINE= APACHE LIGHTTPD WEBHOST MYSQL MYSQLSERVER PGSQL PGSQLSERVER DOVECOT DOVECOT2 \ POSTFIX PFA FUZZYOCR CLAMAV SPAMASSASSIN BDB ALTERMIME CRYPT \ IPCOUNTRY DOMAINKEYS SPF DKIM FILE RAR ARJ UNARJ LHA ARC NOMARCH CAB \ RPM ZOO UNZOO LZOP FREEZE P7ZIP TNEF DOCS OPTIONS_DEFAULT= MYSQL CLAMAV SPAMASSASSIN BDB IPCOUNTRY \ DOMAINKEYS SPF DKIM FILE UNRAR ARJ LHA ARC CAB RPM ZOO FREEZE P7ZIP APACHE_DESC= Use Apache web server LIGHTTPD_DESC= Use LighTTPD web server WEBHOST_DESC= PHP, PEAR, etc... for Maia web interface MYSQL_DESC= Use MySQL datebase MYSQLSERVER_DESC= Install MySQL Server PGSQL_DESC= Use PgSQL database PGSQLSERVER_DESC= Install PGSQL Server DOVECOT_DESC= Use Dovecot 1.x IMAP/POP3 DOVECOT2_DESC= Use Dovecot 2.x IMAP/POP3 POSTFIX_DESC= Use Postfix MTA PFA_DESC= Use Postfixadmin FUZZYOCR_DESC= Use FuzzyOcr CLAMAV_DESC= Use ClamAV anti-virus SPAMASSASSIN_DESC= Use SpamAssassin BDB_DESC= Use BerkeleyDB ALTERMIME_DESC= Use AlterMime CRYPT_DESC= Encryption support IPCOUNTRY_DESC= SpamAssassin IP Country plugin DOMAINKEYS_DESC= SpamAssassin DomainKey plugin SPF_DESC= SpamAssassin SPF plugin DKIM_DESC= SpamAssassin DKIM plugin FILE_DESC= Use newer file(1) utility from ports RAR_DESC= RAR support with archivers/rar -UNRAR_DESC= RAR support with archivers/unrar ARJ_DESC= ARJ support with archivers/arj UNARJ_DESC= ARJ support with archivers/unarj LHA_DESC= LHA support with archivers/lha ARC_DESC= ARC support with archivers/arc NOMARCH_DESC= ARC support with archivers/nomarch CAB_DESC= CAB support with archivers/cabextract RPM_DESC= RPM support with archivers/rpm2cpio ZOO_DESC= ZOO support with archivers/zoo UNZOO_DESC= ZOO support with archivers/unzoo LZOP_DESC= LZOP support with archivers/lzop FREEZE_DESC= FREEZE support with archivers/freeze P7ZIP_DESC= P7ZIP support with archivers/p7zip TNEF_DESC= Add external tnef decoder SUB_FILES= maiad pkg-message SHEBANG_FILES= maiad SUB_LIST+= USERS=${USERS} \ GROUPS=${GROUPS} \ MAIAHOME=${MAIAHOME} \ MAIAQUARANTINE=${MAIAQUARANTINE} \ ETCDIR=${ETCDIR} USE_RC_SUBR+= maiad .include # Code is a bit fiddly here; we can't use USE variables after pre.mk so we have # to duplicate some WITH_ parts like WEBHOST that use pre.mk vars as well as # setting USE_ variables. C'est la vie. .if ${PORT_OPTIONS:MAPACHE} USE_APACHE_RUN= 22+ .endif .if ${PORT_OPTIONS:MWEBHOST} USE_PHP= bcmath ctype dom gettext hash iconv imap json mbstring \ mcrypt pdo pdo_sqlite posix session simplexml sockets \ sqlite3 tokenizer xml wddx xmlreader xmlwriter xmlrpc RUN_DEPENDS+= ${PEAR_DIR}/Mail/mime.php:mail/pear-Mail_Mime \ ${PEAR_DIR}/Mail/mimeDecode.php:mail/pear-Mail_mimeDecode \ ${PEAR_DIR}/DB.php:databases/pear-DB \ ${PEAR_DIR}/Pager/Pager.php:devel/pear-Pager \ ${PEAR_DIR}/Net/Socket.php:net/pear-Net_Socket \ ${PEAR_DIR}/Net/SMTP.php:net/pear-Net_SMTP \ ${PEAR_DIR}/Log.php:sysutils/pear-Log \ ${PEAR_DIR}/HTMLPurifier.php:devel/pear-htmlpurifier \ ${PEAR_DIR}/Net/IMAP.php:mail/pear-Net_IMAP \ ${PEAR_DIR}/Net/POP3.php:net/pear-Net_POP3 \ ${PEAR_DIR}/Auth/SASL.php:security/pear-Auth_SASL \ ${PEAR_DIR}/Image/Color.php:graphics/pear-Image_Color \ ${PEAR_DIR}/Image/Canvas.php:graphics/pear-Image_Canvas \ ${PEAR_DIR}/Image/Graph.php:graphics/pear-Image_Graph \ ${PEAR_DIR}/Numbers/Roman.php:textproc/pear-Numbers_Roman \ ${PEAR_DIR}/Numbers/Words.php:textproc/pear-Numbers_Words \ ${PEAR_DIR}/MDB2.php:databases/pear-MDB2 \ ${PEAR_DIR}/MDB2/Driver/mysql.php:databases/pear-MDB2_Driver_mysql \ ${LOCALBASE}/share/smarty/Smarty.class.php:www/smarty2 \ ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/scrypt.so:security/pecl-scrypt PLIST_SUB+= WEBHOST="" .else PLIST_SUB+= WEBHOST="@comment " .endif .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes .endif .if ${PORT_OPTIONS:MMYSQL} && ${PORT_OPTIONS:MWEBHOST} USE_PHP+= mysql mysqli .endif .if ${PORT_OPTIONS:MPGSQL} USES+= pgsql .endif .if ${PORT_OPTIONS:MPGSQL} && ${PORT_OPTIONS:MWEBHOST} USE_PHP+= pgsql .endif .if ${PORT_OPTIONS:MLIGHTTPD} RUN_DEPENDS+= lighttpd:www/lighttpd .endif .if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= p5-DBD-mysql>=0:databases/p5-DBD-mysql .endif .if ${PORT_OPTIONS:MMYSQLSERVER} USE_MYSQL= server .endif .if ${PORT_OPTIONS:MPGSQL} RUN_DEPENDS+= p5-DBD-Pg>=0:databases/p5-DBD-Pg .endif .if ${PORT_OPTIONS:MPGSQLSERVER} USES:= ${USES:Npgsql} pgsql WANT_PGSQL= server .endif .if ${PORT_OPTIONS:MDOVECOT} && ${PORT_OPTIONS:MDOVECOT2} BROKEN= please run 'make config' again and choose only one version of Dovecot (versions 1.x and 2.x cannot coexist) .endif .if ${PORT_OPTIONS:MDOVECOT} RUN_DEPENDS+= dovecot:mail/dovecot .endif .if ${PORT_OPTIONS:MDOVECOT2} RUN_DEPENDS+= dovecot:mail/dovecot2 .endif .if ${PORT_OPTIONS:MPOSTFIX} RUN_DEPENDS+= postfix:mail/postfix .endif .if ${PORT_OPTIONS:MPFA} RUN_DEPENDS+= ${LOCALBASE}/www/postfixadmin/config.inc.php:mail/postfixadmin .endif .if ${PORT_OPTIONS:MFUZZYOCR} RUN_DEPENDS+= p5-FuzzyOcr-devel>=0:mail/p5-FuzzyOcr-devel .endif .if ${PORT_OPTIONS:MCLAMAV} RUN_DEPENDS+= clamd:security/clamav .endif .if ${PORT_OPTIONS:MSPAMASSASSIN} RUN_DEPENDS+= spamassassin>=0:mail/spamassassin .endif .if ${PORT_OPTIONS:MBDB} RUN_DEPENDS+= p5-BerkeleyDB>=0:databases/p5-BerkeleyDB .endif .if ${PORT_OPTIONS:MALTERMIME} RUN_DEPENDS+= altermime:mail/altermime .endif .if ${PORT_OPTIONS:MCRYPT} RUN_DEPENDS+= p5-Crypt-Blowfish>=0:security/p5-Crypt-Blowfish \ p5-Crypt-OpenSSL-RSA>=0:security/p5-Crypt-OpenSSL-RSA \ p5-Crypt-CBC>=0:security/p5-Crypt-CBC .endif .if ${PORT_OPTIONS:MIPCOUNTRY} RUN_DEPENDS+= p5-IP-Country>=0:net/p5-IP-Country .endif .if ${PORT_OPTIONS:MDOMAINKEYS} RUN_DEPENDS+= p5-Mail-DomainKeys>=0:mail/p5-Mail-DomainKeys .endif .if ${PORT_OPTIONS:MSPF} RUN_DEPENDS+= p5-Mail-SPF>=0:mail/p5-Mail-SPF .endif .if ${PORT_OPTIONS:MDKIM} RUN_DEPENDS+= p5-Mail-DKIM>=0:mail/p5-Mail-DKIM .endif .if ${PORT_OPTIONS:MFILE} # security fix, file > 4.21 needed RUN_DEPENDS+= file>=4.21:sysutils/file .endif # archviers/rar is a 32-bit binary port, we don't want the install to fail # at that port, therefore we will block instantly here if the platform does # not suit rar. .if ${PORT_OPTIONS:MRAR} IA32_BINARY_PORT= yes RUN_DEPENDS+= rar:archivers/rar .endif .if ${PORT_OPTIONS:MUNRAR} RUN_DEPENDS+= unrar:archivers/unrar .endif .if ${PORT_OPTIONS:MARJ} RUN_DEPENDS+= arj:archivers/arj .endif .if ${PORT_OPTIONS:MUNARJ} RUN_DEPENDS+= unarj:archivers/unarj .endif .if ${PORT_OPTIONS:MLHA} RUN_DEPENDS+= lha:archivers/lha .endif .if ${PORT_OPTIONS:MARC} RUN_DEPENDS+= arc:archivers/arc .endif .if ${PORT_OPTIONS:MNOMARCH} RUN_DEPENDS+= nomarch:archivers/nomarch .endif .if ${PORT_OPTIONS:MCAB} RUN_DEPENDS+= cabextract:archivers/cabextract .endif .if ${PORT_OPTIONS:MRPM} RUN_DEPENDS+= rpm2cpio.pl:archivers/rpm2cpio .endif .if ${PORT_OPTIONS:MZOO} # DOS condition in 2.10.1_2 RUN_DEPENDS+= zoo>=2.10.1_2:archivers/zoo .endif .if ${PORT_OPTIONS:MUNZOO} RUN_DEPENDS+= unzoo>=4.4_1:archivers/unzoo .endif .if ${PORT_OPTIONS:MLZOP} RUN_DEPENDS+= lzop:archivers/lzop .endif .if ${PORT_OPTIONS:MFREEZE} RUN_DEPENDS+= unfreeze:archivers/freeze .endif .if ${PORT_OPTIONS:MP7ZIP} RUN_DEPENDS+= 7zr:archivers/p7zip .endif .if ${PORT_OPTIONS:MTNEF} RUN_DEPENDS+= tnef:converters/tnef .endif .include post-patch: .for m in scripts/configtest.pl scripts/expire-quarantine-cache.pl \ scripts/load-sa-rules.pl scripts/maiadbtool.pl \ scripts/process-quarantine.pl scripts/resend.pl scripts/send-quarantine-digests.pl \ scripts/send-quarantine-reminders.pl scripts/stats-snapshot.pl @${REINPLACE_CMD} -e "s|/etc/maia/maia.conf|${ETCDIR}/maia.conf|" \ ${WRKSRC}/${m} .endfor .for i in digest.tpl newuser.tpl reminder.tpl ${MV} ${WRKSRC}/templates/${i} ${WRKSRC}/templates/${i}.dist .endfor @${REINPLACE_CMD} -e "s|daemon_user = 'maia'|daemon_user = '${USERS}'|" \ -e "s|daemon_group = 'maia'|daemon_group = '${GROUPS}'|" \ -e "s|/var/lib/maia|${MAIAHOME}|" \ -e "s|'unrar'|'unrar v -c- -p- --'|" \ -e "s|DO_SYSLOG = 0|DO_SYSLOG = 1|" ${WRKSRC}/maiad.conf.dist @${REINPLACE_CMD} -e "s|/etc/maia.conf|${ETCDIR}/maia.conf|" \ -e "s|username = 'maia'|username = '${USERS}'|" \ -e "s|/var/lib/maia|${DATADIR}|" \ -e "s|/usr/bin/sa-learn|${PREFIX}/bin/sa-learn|" \ -e "s|local_cf_dir = undef|local_cf_dir = '${PREFIX}/etc/mail/spamassassin'|" \ -e "s|system_rules_dir = undef|system_rules_dir = '/var/db/spamassassin'|" \ -e "s|user_rules_dir = undef|user_rules_dir = '${MAIAHOME}/.spamassassin'|" \ -e "s|template_dir = '/etc/maia/templates/'|template_dir = '${ETCDIR}/templates/'|" \ ${WRKSRC}/maia.conf.dist @${REINPLACE_CMD} -e "s|/etc/maia/maiad.conf|${ETCDIR}/maiad.conf|" \ -e "s|/var/lib/maia|${DATADIR}|" \ -e "s@'zoo'\]@['zoo','unzoo'] ]@" ${WRKSRC}/maiad @${FIND} -E ${WRKSRC} -iregex '.*(bak|~)$$' -delete do-install: ${MKDIR} ${STAGEDIR}${WWWDIR} @cd ${WRKSRC}/php && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} ${LN} -s ${PREFIX}/share/smarty ${STAGEDIR}${WWWDIR}/libs/Smarty ${MKDIR} -p ${STAGEDIR}${DATADIR} @cd ${WRKSRC}/scripts && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/scripts ${MKDIR} -p ${STAGEDIR}${ETCDIR}/templates .for i in digest.tpl newuser.tpl reminder.tpl ${INSTALL} -m 644 ${WRKSRC}/templates/${i}.dist ${STAGEDIR}${ETCDIR}/templates .endfor ${INSTALL_SCRIPT} ${WRKSRC}/maiad ${STAGEDIR}${PREFIX}/sbin ${INSTALL} -m 640 ${WRKSRC}/maiad.conf.dist ${STAGEDIR}${ETCDIR}/maiad.conf.dist ${INSTALL} -m 640 ${WRKSRC}/maia.conf.dist ${STAGEDIR}${ETCDIR}/maia.conf.dist do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .include