ports/103479: [MAINTAINER] www/py-prewikka: fix install/update config file

Robin Gruyters r.gruyters at yirdis.nl
Fri Sep 22 09:40:20 UTC 2006


>Number:         103479
>Category:       ports
>Synopsis:       [MAINTAINER] www/py-prewikka: fix install/update config file
>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:   Fri Sep 22 09:40:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Robin Gruyters
>Release:        FreeBSD 5.4-RELEASE-p16 i386
>Organization:
YIRDIS B.V.
>Environment:
System: FreeBSD server.yirdis.net 5.4-RELEASE-p16 FreeBSD 5.4-RELEASE-p16 #7: Thu Jun 15 14:16:11 CEST 2006
>Description:
fix install/update configuration file. When updating packages the changed
config gets overwritten my the installation.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py24-prewikka-0.9.7.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/py-prewikka/Makefile /data2/FreeBSD/custom_ports/www/py-prewikka/Makefile
--- /usr/ports/www/py-prewikka/Makefile	Tue Sep  5 09:25:52 2006
+++ /data2/FreeBSD/custom_ports/www/py-prewikka/Makefile	Fri Sep 22 11:28:31 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	prewikka
 PORTVERSION=	0.9.7.1
+PORTREVISION=	1
 CATEGORIES=	www security python
 MASTER_SITES=	http://www.prelude-ids.org/download/releases/ \
 		http://www.prelude-ids.org/download/releases/old/
@@ -21,5 +22,10 @@
 
 USE_PYTHON=		2.3+
 USE_PYDISTUTILS=	yes
+
+post-patch:
+	${MV} ${WRKSRC}/conf/prewikka.conf ${WRKSRC}/conf/prewikka.conf-dist
+	${REINPLACE_CMD} 's,conf/prewikka.conf,conf/prewikka.conf-dist,' \
+	   ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/www/py-prewikka/pkg-plist /data2/FreeBSD/custom_ports/www/py-prewikka/pkg-plist
--- /usr/ports/www/py-prewikka/pkg-plist	Thu Aug 17 07:37:47 2006
+++ /data2/FreeBSD/custom_ports/www/py-prewikka/pkg-plist	Fri Sep 22 11:13:16 2006
@@ -1,4 +1,4 @@
-etc/prewikka/prewikka.conf
+etc/prewikka/prewikka.conf-dist
 bin/prewikka-httpd
 %%DATADIR%%/cgi-bin/prewikka.cgi
 %%DATADIR%%/htdocs/images/prelude-logo.gif
--- py24-prewikka-0.9.7.1_1.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list