diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-03-29 17:28:56 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-03-29 17:28:56 +0000 |
commit | 2a58169b19854c36ac6d019a7c3954879ded21d5 (patch) | |
tree | 1b1cbaaa8a1ad8875cf82eefa0bfb6687b917752 /news/papercut/Makefile | |
parent | e08194692d8105d8bde7eed78560a26d65c7084b (diff) | |
download | ports-2a58169b19854c36ac6d019a7c3954879ded21d5.tar.gz ports-2a58169b19854c36ac6d019a7c3954879ded21d5.zip |
Notes
Diffstat (limited to 'news/papercut/Makefile')
-rw-r--r-- | news/papercut/Makefile | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/news/papercut/Makefile b/news/papercut/Makefile index 02ac356ea791..2da914393373 100644 --- a/news/papercut/Makefile +++ b/news/papercut/Makefile @@ -14,27 +14,22 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQ USE_PYTHON= yes NO_BUILD= yes -NO_STAGE= yes do-configure: - @${CP} ${FILESDIR}/papercut-wrapper ${WRKDIR}/papercut-wrapper - @${REINPLACE_CMD} -e "s,__DATADIR__,${DATADIR}," ${WRKDIR}/papercut-wrapper - @${REINPLACE_CMD} -e "s,__PYTHON__,${PYTHON_CMD}," ${WRKDIR}/papercut-wrapper - @${REINPLACE_CMD} "s,/home/papercut,${DATADIR}," ${WRKSRC}/settings.py + ${CP} ${FILESDIR}/papercut-wrapper ${WRKDIR}/papercut-wrapper + ${REINPLACE_CMD} -e "s,__DATADIR__,${DATADIR}," ${WRKDIR}/papercut-wrapper + ${REINPLACE_CMD} -e "s,__PYTHON__,${PYTHON_CMD}," ${WRKDIR}/papercut-wrapper + ${REINPLACE_CMD} "s,/home/papercut,${DATADIR}," ${WRKSRC}/settings.py do-install: - @${MKDIR} ${DATADIR} - @${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR} - @${MKDIR} ${DATADIR}/cache - @${MKDIR} ${DATADIR}/logs + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/cache + @${MKDIR} ${STAGEDIR}${DATADIR}/logs .for DIR in auth storage - @${MKDIR} ${DATADIR}/${DIR} - @${INSTALL_SCRIPT} ${WRKSRC}/${DIR}/* ${DATADIR}/${DIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/${DIR} + ${INSTALL_SCRIPT} ${WRKSRC}/${DIR}/* ${STAGEDIR}${DATADIR}/${DIR} .endfor - @${INSTALL_SCRIPT} ${WRKDIR}/papercut-wrapper ${PREFIX}/bin/papercut - @${MV} ${DATADIR}/settings.py ${DATADIR}/settings.py.sample - -post-install: - @${ECHO_MSG} "To use papercut you need to copy ${DATADIR}/settings.py.sample" - @${ECHO_MSG} "to ${DATADIR}/settings.py and edit it." + ${INSTALL_SCRIPT} ${WRKDIR}/papercut-wrapper ${STAGEDIR}${PREFIX}/bin/papercut + ${MV} ${STAGEDIR}${DATADIR}/settings.py ${STAGEDIR}${DATADIR}/settings.py.sample .include <bsd.port.mk> |