diff options
author | ohauer <ohauer@FreeBSD.org> | 2016-06-13 01:57:38 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2016-06-13 01:57:38 +0800 |
commit | 8aaf111fdb086f5c3c1e224817c96bb4e35241e3 (patch) | |
tree | 64c377c98198e616354f77785c06963529da315f /mail | |
parent | 655f110f4193c747bfa057133a16ab4910a2bf44 (diff) | |
download | freebsd-ports-graphics-8aaf111fdb086f5c3c1e224817c96bb4e35241e3.tar.gz freebsd-ports-graphics-8aaf111fdb086f5c3c1e224817c96bb4e35241e3.tar.zst freebsd-ports-graphics-8aaf111fdb086f5c3c1e224817c96bb4e35241e3.zip |
- allow build with openssl / libressl from ports
- convert PLIST_SUB into SUB_LIST
- bump PORTREVISION
- small Makefile tweaks
PR: 210028
Submitted by: adamw@
Diffstat (limited to 'mail')
-rw-r--r-- | mail/spamd/Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/mail/spamd/Makefile b/mail/spamd/Makefile index 8227eecc3a8..8ffd128c723 100644 --- a/mail/spamd/Makefile +++ b/mail/spamd/Makefile @@ -3,7 +3,7 @@ PORTNAME= spamd PORTVERSION= 4.9.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= SF/freebsdspamd/spamd @@ -13,6 +13,7 @@ COMMENT= Traps spammers with a very slow smtp-login and return 4xx error LICENSE= BSD2CLAUSE USE_RC_SUBR?= obspamd obspamlogd +USE_OPENSSL= yes USERS= _spamd GROUPS= _spamd @@ -29,7 +30,7 @@ PLIST_FILES= %%ETCDIR%%/spamd.conf.sample \ man/man8/spamdb.8.gz \ man/man8/spamlogd.8.gz -PLIST_SUB= SPAMDUSER=${USERS} \ +SUB_LIST= SPAMDUSER=${USERS} \ SPAMDGROUP=${GROUPS} # If you are a CPANEL user the this option is for you! @@ -39,21 +40,21 @@ PLIST_SUB= SPAMDUSER=${USERS} \ # be adjusted. Man page and pid file will not be renamed! .if !defined(CPANEL) PLIST_FILES+= libexec/spamd -PLIST_SUB+= SPAMDBIN=spamd +SUB_LIST+= SPAMDBIN=spamd .else PLIST_FILES+= libexec/obspamd -PLIST_SUB+= SPAMDBIN=obspamd +SUB_LIST+= SPAMDBIN=obspamd .endif SUB_FILES= pkg-install \ pkg-message -SUB_LIST= PREFIX=${PREFIX} \ - ${PLIST_SUB} - OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> +.include <bsd.port.pre.mk> + +CFLAGS+= -I${OPENSSLINC} +LDFLAGS+= -L${OPENSSLLIB} do-install: .if !defined(CPANEL) @@ -69,10 +70,10 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/spamd-setup/spamd-setup.8 ${STAGEDIR}${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/spamdb/spamdb.8 ${STAGEDIR}${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/spamlogd/spamlogd.8 ${STAGEDIR}${PREFIX}/man/man8 - ${INSTALL} -d ${STAGEDIR}${ETCDIR} + @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/etc/spamd.conf ${STAGEDIR}${ETCDIR}/spamd.conf.sample @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}/ -.include <bsd.port.mk> +.include <bsd.port.post.mk> |