Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2012 14:36:42 -0700
From:      Jason Helfman <jgh@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        lippe@FreeBSD.org
Subject:   ports/166123: [PATCH] mail/qmail-scanner1: drop invalid post-deinstall target
Message-ID:  <1331761002.796994.59463.nullmailer@experts-exchange.com>
Resent-Message-ID: <201203142140.q2ELe1nl061487@freefall.freebsd.org>

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

>Number:         166123
>Category:       ports
>Synopsis:       [PATCH] mail/qmail-scanner1: drop invalid 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 21:40:01 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:
post-deinstall is an invalid target.
add in pkg-deinstall as a sub_file with sub_list of spooldir

Added file(s):
- files/pkg-deinstall.in

Port maintainer (lippe@FreeBSD.org) is cc'd.

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

--- qmail-scanner-1.25_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/qmail-scanner1/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	21 Jan 2012 17:40:09 -0000	1.22
+++ Makefile	14 Mar 2012 21:36:28 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	qmail-scanner
 PORTVERSION=	1.25
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail security
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.r/rc/}
@@ -21,6 +21,9 @@
 
 MANUAL_PACKAGE_BUILD=	Requires qmail built with non-standard setting
 
+SUB_FILES=	pkg-deinstall
+SUB_LIST=	SPOOLDIR=${SPOOLDIR}
+
 NO_LATEST_LINK=	yes
 CONFLICTS=	qmail-scanner-2.*
 
@@ -161,11 +164,6 @@
 	@PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
 	@${CAT} ${PKGMESSAGE}
 
-post-deinstall:
-	@${ECHO_MSG}
-	@${ECHO_MSG} "If you're not updating this port, you can delete directory '${SPOOLDIR}'."
-	@${ECHO_MSG} ""
-
 test:
 	@${WRKSRC}/contrib/test_installation.sh -doit
 
Index: files/pkg-deinstall.in
===================================================================
RCS file: files/pkg-deinstall.in
diff -N files/pkg-deinstall.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-deinstall.in	14 Mar 2012 21:36:28 -0000
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "$2" = "DEINSTALL" ]; then
+  echo "If you're not updating this port, you can delete directory %%SPOOLDIR%%"
+fi
--- qmail-scanner-1.25_3.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?1331761002.796994.59463.nullmailer>