mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add stage support
This commit is contained in:
parent
e32e56488b
commit
558bad85d6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357596
@ -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>
|
||||
|
@ -1,5 +1,5 @@
|
||||
%%INSTALLDIR%%/CHANGELOG
|
||||
%%INSTALLDIR%%/config.php
|
||||
@sample %%INSTALLDIR%%/config.php.sample
|
||||
%%INSTALLDIR%%/index.php
|
||||
%%INSTALLDIR%%/install.php
|
||||
%%INSTALLDIR%%/readme.txt
|
||||
|
Loading…
Reference in New Issue
Block a user