ports/139596: Fix remove of typo3 configuration

Gerrit Beine gerrit.beine at gmx.de
Wed Oct 14 11:10:04 UTC 2009


>Number:         139596
>Category:       ports
>Synopsis:       Fix remove of typo3 configuration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 14 11:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Gerrit Beine
>Release:        FreeBSD 7.2
>Organization:
SQQD GmbH
>Environment:
>Description:
Fix the problem described in http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/130209
>How-To-Repeat:

>Fix:
diff -Nur /usr/ports/www/typo3/Makefile www/typo3/Makefile
--- /usr/ports/www/typo3/Makefile	2009-08-22 02:38:28.000000000 +0200
+++ www/typo3/Makefile	2009-10-14 04:42:20.000000000 +0200
@@ -45,6 +45,9 @@
 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 -Nur /usr/ports/www/typo3/pkg-plist www/typo3/pkg-plist
--- /usr/ports/www/typo3/pkg-plist	1970-01-01 01:00:00.000000000 +0100
+++ www/typo3/pkg-plist	2009-10-14 05:31:02.000000000 +0200
@@ -0,0 +1,3 @@
+ at exec mkdir -p %D/www/typo3/typo3conf 2> /dev/null
+ at exec [ -f %D/www/typo3/typo3conf/localconf.php ] || cp %D/www/typo3/typo3conf/localconf.php.dist %D/www/typo3/typo3conf/localconf.php
+ at 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


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list