Date: Sun, 18 Dec 2005 18:31:20 +0100 From: Florent Thoumie <flz@xbsd.org> To: freebsd-rc@freebsd.org Subject: rc.d/ldconfig change Message-ID: <1134927080.744.14.camel@cream.xbsd.org>
next in thread | raw e-mail | index | archive | help
--=-k0mVgAXXXmwpJ+v8+3BE Content-Type: multipart/mixed; boundary="=-1GjBD8cX6QnALPryDrMH" --=-1GjBD8cX6QnALPryDrMH Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Since we have some ports that want to ldconfig directories early in the boot process (actually, early in localpkg sequence), I=20 think it would be a good idee to support=20 ${PREFIX}/etc/ld.so.conf.d/ directories (or whatever the name). Here's what I was thinking about (see attached patch). This way, I can imagine a USE_LDCONFIG variable containing=20 directories and bsd.port.mk would just : .if defined(USE_LDCONFIG) echo ${USE_LDCONFIG} > ${PREFIX}/etc/ld.so.conf.d/${UNIQUENAME} .endif [...] instead of installing 000.${UNIQUENAME}.sh in=20 ${PREFIX}/etc/rc.d. I guess it should be ok since /etc/rc.d/ldconfig is launched=20 after /etc/rc.d/mountcritremote. We can assume that local=20 directories will be available (by default local_ldconfig=3D""). Note: That's a simple patch to src/etc/rc.d/ldconfig, I'll work=20 on a more polished one (with updated configuration). --=20 Florent Thoumie flz@FreeBSD.org FreeBSD committer --=-1GjBD8cX6QnALPryDrMH Content-Disposition: attachment; filename=ldconfig.diff Content-Type: text/x-patch; name=ldconfig.diff; charset=us-ascii Content-Transfer-Encoding: base64 SW5kZXg6IHJjLmQvbGRjb25maWcNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvaG9tZS9uY3ZzL3Ny Yy9ldGMvcmMuZC9sZGNvbmZpZyx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTQNCmRpZmYgLXUg LXIxLjE0IGxkY29uZmlnDQotLS0gcmMuZC9sZGNvbmZpZwkxNiBKYW4gMjAwNSAwODozNDozMCAt MDAwMAkxLjE0DQorKysgcmMuZC9sZGNvbmZpZwkxOCBEZWMgMjAwNSAxNzoxODoyOCAtMDAwMA0K QEAgLTIyLDYgKzIyLDExIEBADQogCWNoZWNreWVzbm8gbGRjb25maWdfaW5zZWN1cmUgJiYgX2lu cz0iLWkiDQogCWlmIFsgLXggIiR7bGRjb25maWdfY29tbWFuZH0iIF07IHRoZW4NCiAJCV9MREM9 Ii9saWIgL3Vzci9saWIiDQorCQlmb3IgaSBpbiAke2xvY2FsX2xkY29uZmlnfTsgZG8NCisJCQlp ZiBbIC1kICIke2l9IiBdOyB0aGVuDQorCQkJCWxkY29uZmlnX3BhdGhzPSIke2xkY29uZmlnX3Bh dGhzfSBgbHMgJHtpfWAiDQorCQkJZmkNCisJCWRvbmUNCiAJCWZvciBpIGluICR7bGRjb25maWdf cGF0aHN9IC9ldGMvbGQtZWxmLnNvLmNvbmY7IGRvDQogCQkJaWYgWyAtciAiJHtpfSIgXTsgdGhl bg0KIAkJCQlfTERDPSIke19MREN9ICR7aX0iDQo= --=-1GjBD8cX6QnALPryDrMH-- --=-k0mVgAXXXmwpJ+v8+3BE Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDpZznMxEkbVFH3PQRAqJwAJwOjukB+LuKvBZSD8n2FKS7R47zZACeKyPH DsAhxJWhSswqItbx5RjetFE= =WbXZ -----END PGP SIGNATURE----- --=-k0mVgAXXXmwpJ+v8+3BE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1134927080.744.14.camel>