Date: Tue, 13 Mar 2012 22:15:34 -0700 From: Jason Helfman <jgh@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: dhn@FreeBSD.org Subject: ports/166077: [PATCH] net/wired: drop unknown post-deinstall target Message-ID: <1331702134.113362.95014.nullmailer@experts-exchange.com> Resent-Message-ID: <201203140520.q2E5K7I3089020@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1331702134.113362.95014.nullmailer>