From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j3SB1qsU025315 for ; Thu, 28 Apr 2005 11:01:52 GMT Received: from 83.72.53.188.ip.tele2adsl.dk ([83.72.53.188] helo=[192.168.1.113]) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DR6mK-0001Vo-Ur for gentoo-dev@lists.gentoo.org; Thu, 28 Apr 2005 11:01:57 +0000 Subject: Re: [gentoo-dev] New global USE flag: logrotate From: Henrik Brix Andersen To: gentoo-dev@lists.gentoo.org In-Reply-To: <20050428104444.GB13609@curie-int.orbis-terrarum.net> References: <1114677003.14869.14.camel@sponge.fungus> <20050428085126.GA13609@curie-int.orbis-terrarum.net> <1114684490.14869.17.camel@sponge.fungus> <20050428104444.GB13609@curie-int.orbis-terrarum.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-eOOHWT63i9bTWEZQdzyz" Organization: Gentoo Linux Date: Thu, 28 Apr 2005 13:01:57 +0200 Message-Id: <1114686117.14869.20.camel@sponge.fungus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 X-Archives-Salt: abc4c48e-51b3-4a63-b1d4-6335731c90c4 X-Archives-Hash: 443c590c93b7a0817179c6fa57b81e3e --=-eOOHWT63i9bTWEZQdzyz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-04-28 at 03:44 -0700, Robin H. Johnson wrote: > >I meant an eclass to take care of all of it together. Ah, ok - sounds good to me. Perhaps we can stick into eutils.eclass? > (rough prototype here) > IUSE=3D"$IUSE logrotate" > RDEPEND=3D"$RDEPEND logrotate? ( app-admin/logrotate )" >=20 > dologrotated() { > use logrotate && insinto /etc/logrotate.d && doins "$@" > } > newlogrotated() { > use logrotate && insinto /etc/logrotate.d && newins "$1" "$2" > } Looks sane to me... ./Brix --=20 Henrik Brix Andersen Gentoo Linux --=-eOOHWT63i9bTWEZQdzyz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCcMKlv+Q4flTiePgRAvrSAKCzgZw5GDGGJq245uQlW05cErUHVgCgsvuF 8M9VyhwHEE4HOrF+DZXXcrc= =avIf -----END PGP SIGNATURE----- --=-eOOHWT63i9bTWEZQdzyz-- -- gentoo-dev@gentoo.org mailing list