aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2014-04-21 16:01:00 +0000
committerThierry Thomas <thierry@FreeBSD.org>2014-04-21 16:01:00 +0000
commit1a8b49e262c2fcd1e7056314b4e383ae8c13d972 (patch)
tree8caa17307117bb4d1e07cc5adc543809a459ad19 /mail
parent1b1f758c54b0058080be1879bf2413cc4029ee63 (diff)
downloadports-1a8b49e262c2fcd1e7056314b4e383ae8c13d972.tar.gz
ports-1a8b49e262c2fcd1e7056314b4e383ae8c13d972.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/spambnc/Makefile40
1 files changed, 23 insertions, 17 deletions
diff --git a/mail/spambnc/Makefile b/mail/spambnc/Makefile
index 2228d62e9380..c4aec47cb6ea 100644
--- a/mail/spambnc/Makefile
+++ b/mail/spambnc/Makefile
@@ -13,11 +13,15 @@ EXTRACT_ONLY= sb.tar.gz
MAINTAINER= thierry@FreeBSD.org
COMMENT= Set of procmail recipes which handle known/suspected spam
+LICENSE= GPLv2
+
RUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail
IGNOREFILES= quickstart.shtml
-NO_WRKSUBDIR= yes
+EXTRACT_DIR= ${WRKDIRPREFIX}${.CURDIR}/worktmp/${DISTNAME}
+EXTRACT_BEFORE_ARGS= -C ${EXTRACT_DIR} -xf
NO_BUILD= yes
+NO_ARCH= yes
PLIST= ${WRKDIR}/.pkg-plist
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
@@ -29,28 +33,30 @@ IGNOREFILES+= upgrading.shtml
PORTDOCS= documentation.html upgrading.html loglevels.txt
.endif
-NO_STAGE= yes
+pre-extract:
+ ${MKDIR} ${EXTRACT_DIR}
+
+post-extract:
+ ${MV} ${EXTRACT_DIR} ${WRKDIR}
+ ${RM} -rf ${WRKDIRPREFIX}${.CURDIR}/worktmp
+
pre-install:
- @(cd ${WRKSRC} && ${FIND} -s . -type f | ${GREP} -v "^\.\/\." | \
+ (cd ${WRKSRC} && ${FIND} -s . -type f | ${GREP} -v "^\.\/\." | \
${GREP} -v docs | ${SED} -e 's,.,%%DATADIR%%,1' > ${PLIST})
- @(cd ${WRKSRC} && ${FIND} -s . -type d | ${GREP} -v docs | ${SORT} -r | \
+ (cd ${WRKSRC} && ${FIND} -s . -type d | ${GREP} -v docs | ${SORT} -r | \
${SED} -e 's,.,@dirrm %%DATADIR%%,' >> ${PLIST})
do-install:
- ${MKDIR} ${DATADIR}
- cd ${WRKSRC} && ${CP} -Rv * ${DATADIR}
- @${RM} -rf ${DATADIR}/docs
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
+ ${RM} -rf ${STAGEDIR}${DATADIR}/docs
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickstart.shtml \
- ${DOCSDIR}/documentation.html
- @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/upgrading.shtml \
- ${DOCSDIR}/upgrading.html
- @${INSTALL_DATA} ${WRKSRC}/docs/loglevels.txt ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/quickstart.shtml \
+ ${STAGEDIR}${DOCSDIR}/documentation.html
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/upgrading.shtml \
+ ${STAGEDIR}${DOCSDIR}/upgrading.html
+ ${INSTALL_DATA} ${WRKSRC}/docs/loglevels.txt ${STAGEDIR}${DOCSDIR}
.endif
-post-install:
- @${CAT} ${PKGMESSAGE}
- @${ECHO_MSG}
-
.include <bsd.port.mk>