svn commit: r380719 - head/www/typo3-lts
Bartek Rutkowski
robak at FreeBSD.org
Sat Mar 7 21:32:03 UTC 2015
Author: robak
Date: Sat Mar 7 21:32:02 2015
New Revision: 380719
URL: https://svnweb.freebsd.org/changeset/ports/380719
QAT: https://qat.redports.org/buildarchive/r380719/
Log:
www/typo3-lts: Makefile fixes and cleanup
PR: 198363
Submitted by: Helmut Ritter <freebsd-ports at charlieroot.de>
Modified:
head/www/typo3-lts/Makefile
Modified: head/www/typo3-lts/Makefile
==============================================================================
--- head/www/typo3-lts/Makefile Sat Mar 7 21:31:40 2015 (r380718)
+++ head/www/typo3-lts/Makefile Sat Mar 7 21:32:02 2015 (r380719)
@@ -19,8 +19,8 @@ USE_PHP= ctype fileinfo filter hash json
WANT_PHP_WEB= yes
TYPO3WWW= www
-TYPO3RELEASE= LTS
TYPO3SRC= ${PORTNAME}_src-${PORTVERSION}
+TYPO3DIR= ${PORTNAME}-LTS
USERS= ${WWWOWN}
GROUPS= ${WWWGRP}
@@ -53,36 +53,24 @@ RUN_DEPENDS+= convert:${PORTSDIR}/graphi
.endif
do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}
+ ${MKDIR} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}
${CP} -R ${WRKDIR}/${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/
- ${LN} -fs ../${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/typo3_src
- ${LN} -fs typo3_src/index.php ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/index.php
- ${LN} -fs typo3_src/typo3 ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/typo3
- ${CP} ${WRKDIR}/${TYPO3SRC}/_.htaccess ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/.htaccess
+ ${LN} -fs ../${TYPO3SRC} ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/typo3_src
+ ${LN} -fs typo3_src/index.php ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/index.php
+ ${LN} -fs typo3_src/typo3 ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/typo3
+ ${CP} ${WRKDIR}/${TYPO3SRC}/_.htaccess ${STAGEDIR}${PREFIX}/${TYPO3WWW}/${TYPO3DIR}/.htaccess
post-install:
@cd ${STAGEDIR}${PREFIX}; \
- ${FIND} * \( -type f -or -type l \) -path "${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/*" | \
- ${SORT} | ${SED} -ne 's#^#@(root,wheel,) #p' >> ${TMPPLIST}
+ ${FIND} * \( -type f -or -type l \) -path "${TYPO3WWW}/${TYPO3DIR}/*" | \
+ ${SORT} >> ${TMPPLIST}
+ @cd ${STAGEDIR}${PREFIX}; \
+ ${FIND} * \( -type f -or -type l \) \( -path "${TYPO3WWW}/${TYPO3SRC}/*" -and \
+ -not -path "${TYPO3WWW}/${TYPO3SRC}/typo3/ext/*" \) | \
+ ${SORT} >> ${TMPPLIST}
@cd ${STAGEDIR}${PREFIX}; \
${FIND} * \( -type f -or -type l \) -path "${TYPO3WWW}/${TYPO3SRC}/typo3/ext/*" | \
${SORT} | ${SED} -ne 's#^#@(${WWWOWN},${WWWGRP},) #p' >> ${TMPPLIST}
- @cd ${STAGEDIR}${PREFIX}; \
- ${FIND} * \( -type f -or -type l \) \
- -not \( -path "${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/*" -or \
- -path "${TYPO3WWW}/${TYPO3SRC}/typo3/ext/*" \) | \
- ${SORT} | ${SED} -ne 's#^#@(root,wheel,) #p' >> ${TMPPLIST}
- @cd ${STAGEDIR}${PREFIX}; \
- ${FIND} -d * -type d -regex "${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/*.*" | \
- ${SORT} | ${SED} -ne 's#^#@dir(root,wheel,) #p' >> ${TMPPLIST}
- @cd ${STAGEDIR}${PREFIX}; \
- ${FIND} -d * -type d -regex "${TYPO3WWW}/${TYPO3SRC}/typo3/ext/*.*" | \
- ${SORT} | ${SED} -ne 's#^#@dir(${WWWOWN},${WWWGRP},) #p' >> ${TMPPLIST}
- @cd ${STAGEDIR}${PREFIX}; \
- ${FIND} * -type d \
- -path "${TYPO3WWW}/*" \
- -not \( -regex "${TYPO3WWW}/${PORTNAME}-${TYPO3RELEASE}/*.*" -or \
- -regex "${TYPO3WWW}/${TYPO3SRC}/typo3/ext/*.*" \) | \
- ${SORT} | ${SED} -ne 's#^#@dir(root,wheel,) #p' >> ${TMPPLIST}
+ @${ECHO} "@dir(${WWWOWN},${WWWGRP},) ${TYPO3WWW}/${TYPO3SRC}/typo3/ext" >> ${TMPPLIST}
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list