From owner-freebsd-doc@FreeBSD.ORG Sat Aug 23 07:08:07 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A678416A4BF; Sat, 23 Aug 2003 07:08:07 -0700 (PDT) Received: from smtp.netcabo.pt (smtp.netcabo.pt [212.113.174.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9462D43FDF; Sat, 23 Aug 2003 07:08:06 -0700 (PDT) (envelope-from sub_0@netcabo.pt) Received: from [192.168.1.2] ([213.22.54.110]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.5329); Sat, 23 Aug 2003 15:07:18 +0100 From: Mario Freitas To: "Simon L. Nielsen" In-Reply-To: <20030823101050.GA391@FreeBSD.org> References: <1061601117.42555.0.camel@suzy.unbreakable.homeunix.org> <20030823101050.GA391@FreeBSD.org> Content-Type: text/plain; charset=iso-8859-15 Message-Id: <1061647704.7607.20.camel@suzy.unbreakable.homeunix.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sat, 23 Aug 2003 15:08:24 +0100 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 23 Aug 2003 14:07:18.0218 (UTC) FILETIME=[DCC532A0:01C3697F] cc: freebsd-doc@freebsd.org Subject: Re: Porter's Handbook Mistake? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sub_0@netcabo.pt List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 14:08:07 -0000 On Sat, 2003-08-23 at 11:10, Simon L. Nielsen wrote: > On 2003.08.23 03:08:53 +0100, M=E1rio Freitas wrote: > > I folks, > > While I was reading the porter's handbook (once more) I think > > I've found a mistake at Chapter 12, part 3: > >=20 > > "This script will be run twice by pkg_delete(1). The first time as ${SH= } > > pkg-install ${PKGNAME} DEINSTALL and the second time as ${SH} > > pkg-install ${PKGNAME} POST-DEINSTALL." > >=20 > >=20 > > Shouldn't it be: > > "This script will be run twice by pkg_delete(1). The first time as ${SH= } > > pkg-deinstall ${PKGNAME} PRE-DEINSTALL and the second time as ${SH} > > pkg-deinstall ${PKGNAME} POST-DEINSTALL." ? >=20 > I don't think so.. From pkg_delete(1): >=20 > ... > distribution. The deinstall script is called as: > script DEINSTALL > where pkg-name is the name of the package in question and DEINSTALL = is a > keyword denoting this as the pre-deinstallation phase. > ... > The post-deinstall script is called as: > script POST-DEINSTALL > where pkg-name is the name of the package in question and POST-DEINS= TALL > is a keyword denoting this as the post-deinstallation phase. >=20 > and a quick check of the pkg_delete source code seems to confirm this. Yes you're right, wouldn't be better , "pkg-deinstall" (PRE-DEINSTALL and POST-DEINSTALL) just for a better standardization? Or is there any better reason, behind all this, not to do "pkg-deinstall"(including both "targets") the default script filename? Thanks in advance. --=20 M=E1rio Freitas (sub_0@netcabo.pt) N=FAcleo Portugu=EAs de FreeBSD (NPF)