diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-10-14 13:12:44 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-10-14 13:12:44 +0000 |
commit | 3aa520970006c0ec98fa77abf1ba522adde12acf (patch) | |
tree | f8353cb142ce3b65c84caedd854220da591842fa /www/typo345 | |
parent | 3824ec0135938c09d66b2a02ebef79b2b055a214 (diff) | |
download | ports-3aa520970006c0ec98fa77abf1ba522adde12acf.tar.gz ports-3aa520970006c0ec98fa77abf1ba522adde12acf.zip |
- Fix remove of typo3 configuration
PR: 139596
Submitted by: Gerrit Beine <gerrit.beine@gmx.de> (maintainer)
Notes
Notes:
svn path=/head/; revision=242826
Diffstat (limited to 'www/typo345')
-rw-r--r-- | www/typo345/Makefile | 3 | ||||
-rw-r--r-- | www/typo345/pkg-plist | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/www/typo345/Makefile b/www/typo345/Makefile index 682f80287b99..e6acb5239c43 100644 --- a/www/typo345/Makefile +++ b/www/typo345/Makefile @@ -45,6 +45,9 @@ USE_PHP+= zlib LIB_DEPENDS+= MagickWand.2:${PORTSDIR}/graphics/ImageMagick .endif +pre-install: + ${MV} ${SITESRC}/typo3conf/localconf.php ${SITESRC}/typo3conf/localconf.php.dist + do-install: ${CP} -R ${WRKSRC} ${PREFIX}/${TYPO3DIR} ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TYPO3DIR} diff --git a/www/typo345/pkg-plist b/www/typo345/pkg-plist new file mode 100644 index 000000000000..f9b49a9097eb --- /dev/null +++ b/www/typo345/pkg-plist @@ -0,0 +1,3 @@ +@exec mkdir -p %D/www/typo3/typo3conf 2> /dev/null +@exec [ -f %D/www/typo3/typo3conf/localconf.php ] || cp %D/www/typo3/typo3conf/localconf.php.dist %D/www/typo3/typo3conf/localconf.php +@unexec if cmp -s %D/www/typo3/typo3conf/localconf.php %D/www/typo3/typo3conf/localconf.php.dist; then rm -f %D/www/typo3/typo3conf/localconf.php; fi |