* Re: [gentoo-dev] New global USE flag: logrotate
@ 2005-04-28 10:44 99% ` Robin H. Johnson
0 siblings, 0 replies; 1+ results
From: Robin H. Johnson @ 2005-04-28 10:44 UTC (permalink / raw
To: Gentoo Developers
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
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:
>
> 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="$IUSE logrotate"
RDEPEND="$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
...
newlogrotated ${FILES}/${PN}-logrotate-basic ${PN}-logrotate
dologrotated ${FILES}/${PN}-logrotate-extra
...
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 241 bytes --]
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2005-04-28 8:30 [gentoo-dev] New global USE flag: logrotate Henrik Brix Andersen
2005-04-28 8:51 ` Robin H. Johnson
2005-04-28 10:34 ` Henrik Brix Andersen
2005-04-28 10:44 99% ` Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox