aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-10-19 21:29:27 +0800
committerdanilo <danilo@FreeBSD.org>2013-10-19 21:29:27 +0800
commitc85fac7268025bd3704c4850f8fd8a4681d6b478 (patch)
tree9d3e119ffd50b7904899c5fc8dd47f349b6478e9 /deskutils
parent7ab9e8a561b119926ced62432e154d0a1c6eff66 (diff)
downloadfreebsd-ports-gnome-c85fac7268025bd3704c4850f8fd8a4681d6b478.tar.gz
freebsd-ports-gnome-c85fac7268025bd3704c4850f8fd8a4681d6b478.tar.zst
freebsd-ports-gnome-c85fac7268025bd3704c4850f8fd8a4681d6b478.zip
- Add stage support
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/egroupware/Makefile37
1 files changed, 16 insertions, 21 deletions
diff --git a/deskutils/egroupware/Makefile b/deskutils/egroupware/Makefile
index 2eef7fbeb490..0a23b939e083 100644
--- a/deskutils/egroupware/Makefile
+++ b/deskutils/egroupware/Makefile
@@ -38,7 +38,6 @@ MBSTRING_DESC= Support multi-byte character sets
POSTGRES_DESC= PostgreSQL database support
ZIP_DESC= Install PHP zip extension
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
@@ -86,31 +85,27 @@ EG_DATA= www/egdata
EG_DATADIR= ${PREFIX}/${EG_DATA}
pre-install:
- @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${EG_DIR}#g" >${PLIST}
+ @${ECHO_CMD} '@owner ${WWWOWN}' > ${PLIST}
+ @${ECHO_CMD} '@group ${WWWGRP}' >> ${PLIST}
+ @${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${EG_DIR}#g" >> ${PLIST}
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dirrm ${EG_DIR}#g" >> ${PLIST}
@${ECHO} @dirrm ${EG_DATA}/files >> ${PLIST}
@${ECHO} @dirrm ${EG_DATA}/backup >> ${PLIST}
@${ECHO} @dirrm ${EG_DATA} >> ${PLIST}
+ @${ECHO_CMD} '@group' >> ${PLIST}
+ @${ECHO_CMD} '@owner' >> ${PLIST}
do-install:
- ${MKDIR} ${EG_WWWDIR}
- @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${EG_WWWDIR}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_WWWDIR}
- @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_WWWDIR}' \
- >> ${TMPPLIST}
- ${CHMOD} -R 755 ${EG_WWWDIR}
- @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${EG_WWWDIR}' >> ${TMPPLIST}
-
- ${MKDIR} ${EG_DATADIR}
- ${MKDIR} ${EG_DATADIR}/files
- ${MKDIR} ${EG_DATADIR}/backup
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}
- @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EG_DATADIR}' \
- >> ${TMPPLIST}
- ${CHMOD} -R 755 ${EG_DATADIR}
- @${ECHO_CMD} '@exec ${CHMOD} -R 755 ${EG_DATADIR}' >> ${TMPPLIST}
-
-post-install:
- ${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${EG_WWWDIR}
+ @${MKDIR} ${STAGEDIR}${EG_DATADIR}
+ @${MKDIR} ${STAGEDIR}${EG_DATADIR}/files
+ @${MKDIR} ${STAGEDIR}${EG_DATADIR}/backup
+ @${ECHO_CMD} '@owner ${WWWOWN}' >> ${PLIST}
+ @${ECHO_CMD} '@group ${WWWGRP}' >> ${PLIST}
+ @${ECHO_CMD} '@mode 755' >> ${PLIST}
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EG_WWWDIR}
+ @${ECHO_CMD} '@mode' >> ${PLIST}
+ @${ECHO_CMD} '@group' >> ${PLIST}
+ @${ECHO_CMD} '@owner' >> ${PLIST}
.include <bsd.port.mk>