Date: Sat, 23 Aug 2003 15:08:24 +0100 From: Mario Freitas <sub_0@netcabo.pt> To: "Simon L. Nielsen" <simon@FreeBSD.org> Cc: freebsd-doc@freebsd.org Subject: Re: Porter's Handbook Mistake? Message-ID: <1061647704.7607.20.camel@suzy.unbreakable.homeunix.org> In-Reply-To: <20030823101050.GA391@FreeBSD.org> References: <1061601117.42555.0.camel@suzy.unbreakable.homeunix.org> <20030823101050.GA391@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <pkg-name> 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 <pkg-name> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1061647704.7607.20.camel>