From owner-freebsd-ports Sun Mar 11 21:40: 8 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A1AA37B719 for ; Sun, 11 Mar 2001 21:40:05 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2C5e5934685; Sun, 11 Mar 2001 21:40:05 -0800 (PST) (envelope-from gnats) Received: from brahms.mmlab.cse.yzu.edu.tw (brahms.mmlab.cse.yzu.edu.tw [140.138.145.183]) by hub.freebsd.org (Postfix) with SMTP id 1F6A537B719 for ; Sun, 11 Mar 2001 21:31:07 -0800 (PST) (envelope-from avatar@brahms.mmlab.cse.yzu.edu.tw) Received: (qmail 6177 invoked by uid 1000); 12 Mar 2001 05:31:05 -0000 Message-Id: <20010312053105.6176.qmail@brahms.mmlab.cse.yzu.edu.tw> Date: 12 Mar 2001 05:31:05 -0000 From: avatar@mmlab.cse.yzu.edu.tw Reply-To: avatar@mmlab.cse.yzu.edu.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/25720: [chinese/pine4] Uninstall unnecessary configuration file during pkg_delete Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25720 >Category: ports >Synopsis: [chinese/pine4] Uninstall unnecessary configuration file during pkg_delete >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 11 21:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Tai-hwa Liang >Release: FreeBSD 4.2-20010219-STABLE i386 >Organization: Multimedia Laboratory at Yuan Ze University, Taiwan, R.O.C. >Environment: FreeBSD 4.2-RELEASE i386 FreeBSD 4.3-BETA i386 >Description: In order to prevent extra config file installed within package from being left in local directory after pkg_delete, we have to uninstall /usr/local/etc/pine.conf during pkg_delete if necessary. >How-To-Repeat: Please check and commit the patch provided in "Fix:" section, thanks. >Fix: diff -ru pine4.old/pkg-plist pine4/pkg-plist --- pine4.old/pkg-plist Sat Oct 10 12:29:27 1998 +++ pine4/pkg-plist Mon Mar 12 11:29:17 2001 @@ -1,3 +1,6 @@ +@unexec %D/bin/pine -conf >%D/etc/pine.conf.tmp +@unexec if cmp -s %D/etc/pine.conf %D/etc/pine.conf.tmp; then rm -f %D/etc/pine.conf; fi +@unexec rm -f %D/etc/pine.conf.tmp bin/pgpdecode bin/pgpencrypt bin/pgpsign >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message