On Thursday 28 April 2005 07:01 am, Henrik Brix Andersen wrote: > On Thu, 2005-04-28 at 03:44 -0700, Robin H. Johnson wrote: > > (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" > > } > > Looks sane to me...
ive never looked at the format of a logrotate.d file ... would it be possible to easily script a 'make_logrotated' func where you pass it a few params and it'd create a file for you based off a common template ? -mike -- gentoo-dev@gentoo.org mailing list