ports/107803: [patch] sysutils/psgconf: unbreak (fix installing)

Boris Samorodov bsam at FreeBSD.org
Wed Jan 10 21:20:16 UTC 2007


>Number:         107803
>Category:       ports
>Synopsis:       [patch] sysutils/psgconf: unbreak (fix installing)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 10 21:20:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Boris Samorodov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
InPharmTech, Co. http://www.ipt.ru
>Environment:
System: FreeBSD tinderbox.i386.ipt.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Jan 8 22:44:43 MSK 2007 bsam at tinderbox.i386.ipt.ru:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	The port does not deinstall cleanly:

	1. Currently the portinstall srcipt runs twice. Remove the second
           run (from Makefile).

	2. Configuration file is created on-the-fly by adding some info
	   to a standard config file. But a sample config file is copied from
	   that standard one.
>How-To-Repeat:
>Fix:
	. remove second run of sysinstall;
	. copy sample file from the created config file;
	. bump PORTREVISION.
 
--- psgconf.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/psgconf/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	10 Jan 2007 19:12:13 -0000	1.8
+++ Makefile	10 Jan 2007 20:51:29 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	psgconf
 PORTVERSION=	3.2.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	ftp://ftp-dev.cites.uiuc.edu/pub/psgconf/
 
@@ -21,8 +21,6 @@
 	${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version \
 	${SITE_PERL}/Text/Diff.pm:${PORTSDIR}/textproc/p5-Text-Diff
 
-BROKEN=		Leaves behind files on deinstall
-
 PERL_CONFIGURE=	YES
 
 MAN1=		psgconf.1
@@ -200,8 +198,7 @@
 
 post-install:
 	-@${MKDIR} ${PREFIX}/etc
-	@${CP} ${WRKSRC}/etc/psg.conf ${PREFIX}/etc/psg.conf.sample
-	@${CP} ${WRKSRC}/etc/psgconf_modules ${PREFIX}/etc/psgconf_modules.sample
-	PKG_PREFIX=${PREFIX} PKG_MGR=FreeBSD::Ports ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+	@${CP} ${PREFIX}/etc/psg.conf ${PREFIX}/etc/psg.conf.sample
+	@${CP} ${PREFIX}/etc/psgconf_modules ${PREFIX}/etc/psgconf_modules.sample
 
 .include <bsd.port.post.mk>
--- psgconf.diff ends here ---

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



More information about the freebsd-ports-bugs mailing list