1 |
On Thu, 2005-04-28 at 03:44 -0700, Robin H. Johnson wrote: |
2 |
> >I meant an eclass to take care of all of it together. |
3 |
|
4 |
Ah, ok - sounds good to me. Perhaps we can stick into eutils.eclass? |
5 |
|
6 |
> (rough prototype here) |
7 |
> IUSE="$IUSE logrotate" |
8 |
> RDEPEND="$RDEPEND logrotate? ( app-admin/logrotate )" |
9 |
> |
10 |
> dologrotated() { |
11 |
> use logrotate && insinto /etc/logrotate.d && doins "$@" |
12 |
> } |
13 |
> newlogrotated() { |
14 |
> use logrotate && insinto /etc/logrotate.d && newins "$1" "$2" |
15 |
> } |
16 |
|
17 |
Looks sane to me... |
18 |
|
19 |
./Brix |
20 |
-- |
21 |
Henrik Brix Andersen <brix@g.o> |
22 |
Gentoo Linux |