Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 11:30:07 +0200 (CEST)
From:      Robin Gruyters <r.gruyters@yirdis.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/103479: [MAINTAINER] www/py-prewikka: fix install/update config file
Message-ID:  <200609220930.k8M9U7lo096952@server.yirdis.net>
Resent-Message-ID: <200609220940.k8M9eJrh073705@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609220930.k8M9U7lo096952>