Subject: Re: Handling 3rd party rc scripts
To: Amitai Schlair <schmonz@schmonz.com>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 02/06/2002 03:40:17
--ghzN8eJ9Qlbqn3iT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi,
On Tue, Feb 05, 2002 at 09:13:30PM -0500, Amitai Schlair wrote:
> Does that tell the package tools the right path to the installed rc.d
> script, so that e.g. removing the package removes the script? If so,
> cool, it sounds exactly right.
see pkgsrc/mk/install/deinstall for details:
eval set -- ${RCD_SCRIPTS}
for script
do =20
samplefile=3D"${PKG_PREFIX}/etc/rc.d/${script}" =20
file=3D"${RCD_SCRIPTS_DIR}/${script}"
shift
ALL_FILES=3D"${ALL_FILES} \"${samplefile}\" \"${file}\""
done
so as you can see, yes, it tries to deinstall that file as well if it
doesn't differ from the original one. of course, bsd.pkg.install.mk
must me included in package's Makefile to use these features.
> IIRC, the reason INSTALL_RCD_SCRIPTS defaults to NO is that if someone
> installs a package with an rc.d script and forgets to set the
> appropriate rc.conf variable, it makes noise at boot. If we're going to
> change the default value of INSTALL_RCD_SCRIPTS to YES, then we have to
> account for this.
and that is the default behaviour. see pkgsrc/mk/bsd.pkg.install.mk for
further details:
# Default to not installing the rc.d scripts automatically.
INSTALL_RCD_SCRIPTS?=3D NO
i just have a strange feeling that someone is trying to reinvent the
wheel here :) (no offense meant)
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> ASCII Ribbon campaign against /"\=
--
-- <salo@silcnet.org> e-mail in gratuitous HTML and \ /=
--
-- Microsoft proprietary formats X =
--
-- PGPkey: http://Xtrmntr.org/salo.pgp / \=
--
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF 716E 59CE B70B 7E3B 70E2 =
--
--ghzN8eJ9Qlbqn3iT
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE8YJeQWc63C347cOIRAtHFAJ9iqT9/7ISmRdgWIm+/8wONkEEUewCglP7R
DRUzJoyqPIZjpDKHXkE4ZLU=
=YnPt
-----END PGP SIGNATURE-----
--ghzN8eJ9Qlbqn3iT--