diff options
author | wg <wg@FreeBSD.org> | 2014-06-13 12:43:07 +0000 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-06-13 12:43:07 +0000 |
commit | ec6ae48b4ce5280c18ebeebf59db747599dd199f (patch) | |
tree | dfa6e23999420723afcb0f344a60a2bd9e8b04fb | |
parent | 3157735405e5287358dd96675a3f1f23f58acbb2 (diff) | |
download | FreeBSD-ports-ec6ae48b4ce5280c18ebeebf59db747599dd199f.zip FreeBSD-ports-ec6ae48b4ce5280c18ebeebf59db747599dd199f.tar.gz |
mail/pysieved: support stage
-rw-r--r-- | mail/pysieved/Makefile | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/mail/pysieved/Makefile b/mail/pysieved/Makefile index fb93003..e0b4d20 100644 --- a/mail/pysieved/Makefile +++ b/mail/pysieved/Makefile @@ -18,11 +18,8 @@ USE_RC_SUBR= ${PORTNAME} PORTEXAMPLES= pysieved.xinetd SUB_LIST= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} -.if !defined(NOPORTDOCS) PORTDOCS= COPYING README README.Dovecot THANKS -.endif -NO_STAGE= yes post-patch: ${REINPLACE_CMD} \ 's!/usr/bin/env python!${PYTHON_CMD}!' \ @@ -33,27 +30,18 @@ do-build: -d ${PREFIX}/lib/${PORTNAME} ${WRKSRC} do-install: - ${MKDIR} ${PREFIX}/lib/${PORTNAME} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} (cd ${WRKSRC} && \ - ${COPYTREE_SHARE} "*.py *.pyc plugins" ${PREFIX}/lib/${PORTNAME}) - ${CHMOD} ${BINMODE} ${PREFIX}/lib/${PORTNAME}/${PORTNAME}.py + ${COPYTREE_SHARE} "*.py *.pyc plugins" ${STAGEDIR}${PREFIX}/lib/${PORTNAME}) + ${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${PORTNAME}.py ${INSTALL_DATA} ${WRKSRC}/pysieved.ini \ - ${PREFIX}/etc/pysieved.ini.sample + ${STAGEDIR}${PREFIX}/etc/pysieved.ini.sample -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/contrib && \ - ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${EXAMPLESDIR}) -.endif - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}) -.endif - -post-install: - @if [ ! -f ${PREFIX}/etc/pysieved.ini ]; then \ - ${CP} -p ${PREFIX}/etc/pysieved.ini.sample ${PREFIX}/etc/pysieved.ini; \ - fi + ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}) + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> |