diff options
author | sem <sem@FreeBSD.org> | 2005-05-08 17:40:39 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-05-08 17:40:39 +0800 |
commit | 21589c850fcbcc77ec0d7e3eafc0f402e50d5f1b (patch) | |
tree | 0d068078da1da0143a3292cdf5a7c40dcf2a0966 /mail/p5-Mail-SpamAssassin | |
parent | 5f083f741f86f3b956ca61ba3b971244cd93df95 (diff) | |
download | freebsd-ports-gnome-21589c850fcbcc77ec0d7e3eafc0f402e50d5f1b.tar.gz freebsd-ports-gnome-21589c850fcbcc77ec0d7e3eafc0f402e50d5f1b.tar.zst freebsd-ports-gnome-21589c850fcbcc77ec0d7e3eafc0f402e50d5f1b.zip |
- Implement OPTIONS
- Install spamassasin tools (*)
- Make mkdir silent in pkg-install script
- PORTREVISION bump
Requested by: Jonathan Noack <noackjr@alumni.rice.edu> (perl@) (*)
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-rw-r--r-- | mail/p5-Mail-SpamAssassin/Makefile | 37 | ||||
-rw-r--r-- | mail/p5-Mail-SpamAssassin/pkg-install | 2 | ||||
-rw-r--r-- | mail/p5-Mail-SpamAssassin/pkg-plist | 12 |
3 files changed, 35 insertions, 16 deletions
diff --git a/mail/p5-Mail-SpamAssassin/Makefile b/mail/p5-Mail-SpamAssassin/Makefile index e6c39a104edb..8bc751508ec5 100644 --- a/mail/p5-Mail-SpamAssassin/Makefile +++ b/mail/p5-Mail-SpamAssassin/Makefile @@ -7,6 +7,7 @@ PORTNAME= Mail-SpamAssassin PORTVERSION= 3.0.3 +PORTREVISION= 1 CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} MASTER_SITE_SUBDIR= spamassassin/:apache Mail/:cpan @@ -27,11 +28,20 @@ CONFIGURE_ARGS= SYSCONFDIR="${PREFIX}/etc" \ CONTACT_ADDRESS="the administrator of that system" \ BUILD_SPAMC=yes RUN_NET_TESTS=yes +OPTIONS= SSL "Build with SSL support" on \ + MYSQL "Add MySQL support" off \ + PGSQL "Add PostreSQL support" off \ + SPF_QUERY "Add SPF query support" off \ + TOOLS "Install SpamAssassin tools" off + +.include <bsd.port.pre.mk> + .if defined(WITH_SPF_QUERY) RUN_DEPENDS+= spfd:${PORTSDIR}/mail/p5-Mail-SPF-Query .endif .if !defined(WITHOUT_OPENSSL) +.include "${PORTSDIR}/Mk/bsd.openssl.mk" USE_OPENSSL= yes CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} @@ -50,6 +60,12 @@ RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-P USE_SQLDB= yes .endif +.if defined(WITH_TOOLS) +RUN_DEPENDS+= ${SITE_PERL}/Parse/Syslog.pm:${PORTSDIR}/textproc/p5-Parse-Syslog \ + ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \ + ${SITE_PERL}/Net/CIDR/Lite.pm:${PORTSDIR}/net/p5-Net-CIDR-Lite +.endif + MAN3= Mail::SpamAssassin.3 \ Mail::SpamAssassin::ArchiveIterator.3 \ Mail::SpamAssassin::AutoWhitelist.3 \ @@ -93,19 +109,6 @@ SED_SCRIPT+= -e 's|%%SQL_FLAG%%|-Q|g' SED_SCRIPT+= -e 's|%%SQL_FLAG%%||g' .endif -pre-patch: - @${ECHO_MSG} "" - @${ECHO_MSG} "================================================================" - @${ECHO_MSG} "You can use folowed options to install SpamAssassin with" - @${ECHO_MSG} " an addition features:" - @${ECHO_MSG} "" - @${ECHO_MSG} "WITHOUT_SSL=yes - disable SSL," - @${ECHO_MSG} "WITH_MYSQL=yes - add MySQL support," - @${ECHO_MSG} "WITH_PGSQL=yes - add PostgreSQL support," - @${ECHO_MSG} "WITH_SPF_QUERY=yes - add SPF query support." - @${ECHO_MSG} "================================================================" - @${ECHO_MSG} "" - post-patch: @${FIND} ${WRKSRC} -name \*.orig -delete @${SED} -e 's#B_CONFDIR)/local.cf#B_CONFDIR)/local.cf.sample#g' \ @@ -126,6 +129,12 @@ post-install: @[ -f ${PREFIX}/etc/mail/spamassassin/init.pre ] || \ ${CP} ${PREFIX}/etc/mail/spamassassin/init.pre.sample \ ${PREFIX}/etc/mail/spamassassin/init.pre +.if defined(WITH_TOOLS) + @${MKDIR} ${DATADIR}/tools + @for f in ${WRKSRC}/tools/*; do \ + ${INSTALL} $${f} ${DATADIR}/tools; \ + done +.endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${DOCSDIR}/sql ${DOCSDIR}/contrib ${DOCSDIR}/ldap @${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR} @@ -136,8 +145,6 @@ post-install: .endif @${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE} -.include <bsd.port.pre.mk> - .if ${PERL_LEVEL} < 500600 IGNORE= Needs perl 5.6.1 or higher, install lang/perl5.8 and try again .endif diff --git a/mail/p5-Mail-SpamAssassin/pkg-install b/mail/p5-Mail-SpamAssassin/pkg-install index 8b7f438d6749..fdb1fde81aef 100644 --- a/mail/p5-Mail-SpamAssassin/pkg-install +++ b/mail/p5-Mail-SpamAssassin/pkg-install @@ -33,6 +33,6 @@ if ! pw usershow "${USER}" 2>/dev/null 1>&2; then fi # Create pid directory -mkdir /var/run/spamd && chown ${USER}:${GROUP} /var/run/spamd +mkdir /var/run/spamd 2> /dev/null && chown ${USER}:${GROUP} /var/run/spamd exit 0 diff --git a/mail/p5-Mail-SpamAssassin/pkg-plist b/mail/p5-Mail-SpamAssassin/pkg-plist index 0b244f395a5d..280aede20d86 100644 --- a/mail/p5-Mail-SpamAssassin/pkg-plist +++ b/mail/p5-Mail-SpamAssassin/pkg-plist @@ -79,6 +79,18 @@ etc/rc.d/sa-spamd.sh %%DATADIR%%/languages %%DATADIR%%/triplets.txt %%DATADIR%%/user_prefs.template +%%DATADIR%%/tools/README.speedtest +%%DATADIR%%/tools/bayes_dump_to_trusted_networks +%%DATADIR%%/tools/check_whitelist +%%DATADIR%%/tools/convert_awl_dbm_to_sql +%%DATADIR%%/tools/desc_length.pl +%%DATADIR%%/tools/mboxsplit +%%DATADIR%%/tools/sa-stats.pl +%%DATADIR%%/tools/speedtest +%%DATADIR%%/tools/split_corpora +%%DATADIR%%/tools/test_extract +%%DATADIR%%/tools/triplets.pl +@dirrm %%DATADIR%%/tools @dirrm %%DATADIR%% @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail/SpamAssassin @unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Mail 2>/dev/null || true |