From owner-freebsd-rc@FreeBSD.ORG Sun Dec 18 17:31:40 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16A1016A41F for ; Sun, 18 Dec 2005 17:31:40 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id B59CC43D55 for ; Sun, 18 Dec 2005 17:31:29 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 9AA8911B6B for ; Sun, 18 Dec 2005 18:31:27 +0100 (CET) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89193-02 for ; Sun, 18 Dec 2005 18:31:21 +0100 (CET) Received: from cream.xbsd.org (cream.xbsd.org [192.168.42.6]) by smtp.xbsd.org (Postfix) with ESMTP id 0A35E115A6 for ; Sun, 18 Dec 2005 18:31:20 +0100 (CET) From: Florent Thoumie To: freebsd-rc@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-k0mVgAXXXmwpJ+v8+3BE" Date: Sun, 18 Dec 2005 18:31:20 +0100 Message-Id: <1134927080.744.14.camel@cream.xbsd.org> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Subject: rc.d/ldconfig change X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2005 17:31:40 -0000 --=-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--