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

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

>Number:         166122
>Category:       ports
>Synopsis:       [PATCH] mail/qmail-scanner: 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
use pkg-deinstall script, and add to sub_files

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-2.01_6.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/qmail-scanner/Makefile,v
retrieving revision 1.26
diff -u -r1.26 Makefile
--- Makefile	27 Jan 2010 01:47:45 -0000	1.26
+++ Makefile	14 Mar 2012 21:33:11 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	qmail-scanner
 PORTVERSION=	2.01
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	mail security
 MASTER_SITES=	SF
 EXTRACT_SUFX=	.tgz
@@ -60,7 +60,7 @@
 		NORMALIZE "Decode encoded headers per MIME Base64" off \
 		CWRAPPER "use C wrapper (no suid perl script needed)" on
 
-SUB_FILES=	pkg-install pkg-message
+SUB_FILES=	pkg-deinstall pkg-install pkg-message
 SUB_LIST+=	QS_USER=${QS_USER} \
 		QS_ID=${QS_ID} \
 		SPOOLDIR=${SPOOLDIR}
@@ -264,11 +264,6 @@
 	@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${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:33:11 -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-2.01_6.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?1331760793.301082.59153.nullmailer>