aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
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>