ports/166077: [PATCH] net/wired: drop unknown post-deinstall target

Jason Helfman jgh at FreeBSD.org
Wed Mar 14 05:20:07 UTC 2012


>Number:         166077
>Category:       ports
>Synopsis:       [PATCH] net/wired: drop unknown post-deinstall target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 14 05:20:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jason Helfman
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD dormouse.experts-exchange.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
>Description:
drop unknown post-deinstall target and use default pkg-deinstall
tighten install operations

Port maintainer (dhn at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_4 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:

--- wired-1.3.4_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/wired/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	25 Feb 2011 00:56:51 -0000	1.11
+++ Makefile	14 Mar 2012 05:14:37 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	wired
 PORTVERSION=	1.3.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 MASTER_SITES=	http://mirror.mcx2.org/
 
@@ -27,28 +27,11 @@
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
 post-install:
-	@if [ ! -f ${PREFIX}/wired/etc/wired.conf ]; then \
-		${CP} -p ${PREFIX}/wired/etc/wired.conf.sample ${PREFIX}/wired/etc/wired.conf ; \
-	fi
-	@if [ ! -f ${PREFIX}/wired/etc/resolv.conf ]; then \
-		${CP} -p ${PREFIX}/wired/etc/resolv.conf.sample ${PREFIX}/wired/etc/resolv.conf ; \
-	fi
-	@if [ ! -f ${PREFIX}/wired/banlist ]; then \
-		${CP} -p ${PREFIX}/wired/banlist.sample ${PREFIX}/wired/banlist ; \
-	fi
-	@if [ ! -f ${PREFIX}/wired/groups ]; then \
-		${CP} -p ${PREFIX}/wired/groups.sample ${PREFIX}/wired/groups ; \
-	fi
-	@if [ ! -f ${PREFIX}/wired/news ]; then \
-		${CP} -p ${PREFIX}/wired/news.sample ${PREFIX}/wired/news ; \
-	fi
-	@if [ ! -f ${PREFIX}/wired/users ]; then \
-		${CP} -p ${PREFIX}/wired/users.sample ${PREFIX}/wired/users ; \
+.for i in etc/wired.conf etc/resolv.conf banlist groups news users
+	@if [ ! -f ${PREFIX}/wired/${i} ]; then \
+		${CP} -p ${PREFIX}/wired/${i}.sample ${PREFIX}/wired/${i} ; \
 	fi
+.endfor
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
-post-deinstall:
-	${RM} -f ${PREFIX}/wired/etc/certificate.pem.sample
-	PKG_PREFIX=${PREFIX} ${SH} pkg-deinstall ${PKGNAME} POST-DEINSTALL
-
 .include <bsd.port.mk>
--- wired-1.3.4_2.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list