Date: Sat, 23 Aug 2003 12:10:51 +0200 From: "Simon L. Nielsen" <simon@FreeBSD.org> To: =?iso-8859-1?Q?M=E1rio?= Freitas <sub_0@netcabo.pt> Cc: freebsd-doc@freebsd.org Subject: Re: Porter's Handbook Mistake? Message-ID: <20030823101050.GA391@FreeBSD.org> In-Reply-To: <1061601117.42555.0.camel@suzy.unbreakable.homeunix.org> References: <1061601117.42555.0.camel@suzy.unbreakable.homeunix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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." ? I don't think so.. From pkg_delete(1): =2E.. 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. =2E.. 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-DEINSTA= LL is a keyword denoting this as the post-deinstallation phase. and a quick check of the pkg_delete source code seems to confirm this. --=20 Simon L. Nielsen FreeBSD Documentation Team --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/Rz2qh9pcDSc1mlERAu79AJ9xyjP2UcybDjBUaGqbin/BXrJ9BQCgzCXq 5LsS7+NLapgt5ZYg7u/CzOU= =HkO3 -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030823101050.GA391>