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 j3SAieHT019131 for ; Thu, 28 Apr 2005 10:44:40 GMT Received: from tirpitz.iat.sfu.ca ([209.87.56.17]) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DR6Vh-0001we-7P for gentoo-dev@lists.gentoo.org; Thu, 28 Apr 2005 10:44:45 +0000 Received: (qmail 555 invoked from network); 28 Apr 2005 03:44:43 -0700 Received: from s01060050da688d47.vc.shawcable.net (HELO curie.orbis-terrarum.net) (24.80.100.253) by tirpitz.iat.sfu.ca with AES256-SHA encrypted SMTP; 28 Apr 2005 03:44:43 -0700 Received: (qmail 26893 invoked by uid 10000); 28 Apr 2005 03:44:44 -0700 Date: Thu, 28 Apr 2005 03:44:44 -0700 From: "Robin H. Johnson" To: Gentoo Developers Subject: Re: [gentoo-dev] New global USE flag: logrotate Message-ID: <20050428104444.GB13609@curie-int.orbis-terrarum.net> Mail-Followup-To: Gentoo Developers References: <1114677003.14869.14.camel@sponge.fungus> <20050428085126.GA13609@curie-int.orbis-terrarum.net> <1114684490.14869.17.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 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline In-Reply-To: <1114684490.14869.17.camel@sponge.fungus> User-Agent: Mutt/1.5.8i X-Archives-Salt: 0a08876c-2d9a-4efb-9777-898cd926ca49 X-Archives-Hash: e7691cb550f2ab994623b615ef5a64c4 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2005 at 12:34:50PM +0200, Henrik Brix Andersen wrote: > On Thu, 2005-04-28 at 01:51 -0700, Robin H. Johnson wrote: > > +1 here. Probably best to do it via an eclass since lots of packages > > will be using it. > It's as simple as: >=20 > if use logrotate; then > insinto /etc/logrotate.d > newins ${FILESDIR}/${P}-logrotate ${PN} > fi > Do we really need an eclass for that? I meant an eclass to take care of all of it together. (rough prototype here) IUSE=3D"$IUSE logrotate" RDEPEND=3D"$RDEPEND logrotate? ( app-admin/logrotate )" dologrotated() { use logrotate && insinto /etc/logrotate.d && doins "$@" } newlogrotated() { use logrotate && insinto /etc/logrotate.d && newins "$1" "$2" } Then ebuilds can just do: inherit logrotate =2E.. newlogrotated ${FILES}/${PN}-logrotate-basic ${PN}-logrotate dologrotated ${FILES}/${PN}-logrotate-extra=20 =2E.. --=20 Robin Hugh Johnson E-Mail : robbat2@orbis-terrarum.net Home Page : http://www.orbis-terrarum.net/?l=3Dpeople.robbat2 ICQ# : 30269588 or 41961639 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks iD8DBQFCcL6cPpIsIjIzwiwRAv7lAKDrBM/GJScUL210fyPU5glheClpbQCgpPNM seqco1gSUU45ONzAVPAQDmQ= =cQGK -----END PGP SIGNATURE----- --QKdGvSO+nmPlgiQ/-- -- gentoo-dev@gentoo.org mailing list