From 3aa520970006c0ec98fa77abf1ba522adde12acf Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 14 Oct 2009 13:12:44 +0000 Subject: - Fix remove of typo3 configuration PR: 139596 Submitted by: Gerrit Beine (maintainer) --- www/typo343/Makefile | 3 +++ www/typo343/pkg-plist | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 www/typo343/pkg-plist (limited to 'www/typo343') diff --git a/www/typo343/Makefile b/www/typo343/Makefile index 682f80287b99..e6acb5239c43 100644 --- a/www/typo343/Makefile +++ b/www/typo343/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/typo343/pkg-plist b/www/typo343/pkg-plist new file mode 100644 index 000000000000..f9b49a9097eb --- /dev/null +++ b/www/typo343/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 -- cgit v1.2.3