1 |
On Thursday 28 April 2005 07:01 am, Henrik Brix Andersen wrote: |
2 |
> On Thu, 2005-04-28 at 03:44 -0700, Robin H. Johnson wrote: |
3 |
> > (rough prototype here) |
4 |
> > IUSE="$IUSE logrotate" |
5 |
> > RDEPEND="$RDEPEND logrotate? ( app-admin/logrotate )" |
6 |
> > |
7 |
> > dologrotated() { |
8 |
> > use logrotate && insinto /etc/logrotate.d && doins "$@" |
9 |
> > } |
10 |
> > newlogrotated() { |
11 |
> > use logrotate && insinto /etc/logrotate.d && newins "$1" "$2" |
12 |
> > } |
13 |
> |
14 |
> Looks sane to me... |
15 |
|
16 |
ive never looked at the format of a logrotate.d file ... would it be possible |
17 |
to easily script a 'make_logrotated' func where you pass it a few params and |
18 |
it'd create a file for you based off a common template ? |
19 |
-mike |
20 |
-- |
21 |
gentoo-dev@g.o mailing list |