aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Audeoud <jadawin@FreeBSD.org>2014-06-12 13:28:42 +0000
committerPhilippe Audeoud <jadawin@FreeBSD.org>2014-06-12 13:28:42 +0000
commit558bad85d65f642c724ef0a5f4381c5b2afe8298 (patch)
tree84fc7be6e83b08709f1f60ce78005a79bd959d6b
parente32e56488b19aa687b6848787d8f5d31831f6903 (diff)
downloadports-558bad85d65f642c724ef0a5f4381c5b2afe8298.tar.gz
ports-558bad85d65f642c724ef0a5f4381c5b2afe8298.zip
Notes
-rw-r--r--www/usermanager/Makefile15
-rw-r--r--www/usermanager/pkg-plist2
2 files changed, 6 insertions, 11 deletions
diff --git a/www/usermanager/Makefile b/www/usermanager/Makefile
index a21867f1b3d2..633d4ddba979 100644
--- a/www/usermanager/Makefile
+++ b/www/usermanager/Makefile
@@ -22,7 +22,6 @@ PLIST_SUB+= INSTALLDIR=${INSTALLDIR}
_INSTDIR= www/data/UserManager
INSTALLDIR?= ${_INSTDIR}
-NO_STAGE= yes
pre-fetch:
.if ${INSTALLDIR} == ${_INSTDIR}
@${ECHO_MSG} ""
@@ -35,14 +34,10 @@ post-patch:
-e 's|%%INSTALLDIR%%|${INSTALLDIR}|g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
do-install:
- @${MKDIR} ${PREFIX}/${INSTALLDIR}
- @${CP} -Rp ${WRKSRC}/* ${PREFIX}/${INSTALLDIR}
- @${CHMOD} 666 ${PREFIX}/${INSTALLDIR}/config.php
- @${ECHO_CMD} ""
-
-post-install:
-.if !defined(BATCH)
- @${CAT} ${PKGMESSAGE}
-.endif
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${INSTALLDIR}
+ @${CP} -Rp ${WRKSRC}/* ${STAGEDIR}${PREFIX}/${INSTALLDIR}
+ @${CHMOD} 666 ${STAGEDIR}${PREFIX}/${INSTALLDIR}/config.php
+ @${MV} ${STAGEDIR}${PREFIX}/${INSTALLDIR}/config.php \
+ ${STAGEDIR}${PREFIX}/${INSTALLDIR}/config.php.sample
.include <bsd.port.mk>
diff --git a/www/usermanager/pkg-plist b/www/usermanager/pkg-plist
index 753f466281b8..523cebb93ef9 100644
--- a/www/usermanager/pkg-plist
+++ b/www/usermanager/pkg-plist
@@ -1,5 +1,5 @@
%%INSTALLDIR%%/CHANGELOG
-%%INSTALLDIR%%/config.php
+@sample %%INSTALLDIR%%/config.php.sample
%%INSTALLDIR%%/index.php
%%INSTALLDIR%%/install.php
%%INSTALLDIR%%/readme.txt