Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2014 16:01:00 +0000 (UTC)
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351690 - head/mail/spambnc
Message-ID:  <201404211601.s3LG10Nj003510@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thierry
Date: Mon Apr 21 16:01:00 2014
New Revision: 351690
URL: http://svnweb.freebsd.org/changeset/ports/351690
QAT: https://qat.redports.org/buildarchive/r351690/

Log:
  Support staging.

Modified:
  head/mail/spambnc/Makefile

Modified: head/mail/spambnc/Makefile
==============================================================================
--- head/mail/spambnc/Makefile	Mon Apr 21 15:55:07 2014	(r351689)
+++ head/mail/spambnc/Makefile	Mon Apr 21 16:01:00 2014	(r351690)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404211601.s3LG10Nj003510>