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 j3SDx0A2026181 for ; Thu, 28 Apr 2005 13:59:00 GMT Received: from localhost ([127.0.0.1] helo=home.wh0rd.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DR9Xm-0004vx-Eo for gentoo-dev@lists.gentoo.org; Thu, 28 Apr 2005 13:59:06 +0000 Received: (qmail 18433 invoked from network); 28 Apr 2005 09:54:44 -0400 Received: from unknown (HELO vapier) (192.168.0.2) by 192.168.0.1 with SMTP; 28 Apr 2005 09:54:44 -0400 From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New global USE flag: logrotate Date: Thu, 28 Apr 2005 10:00:23 -0400 User-Agent: KMail/1.8 References: <1114677003.14869.14.camel@sponge.fungus> <20050428104444.GB13609@curie-int.orbis-terrarum.net> <1114686117.14869.20.camel@sponge.fungus> In-Reply-To: <1114686117.14869.20.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: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504281000.23186.vapier@gentoo.org> X-Archives-Salt: 57e5fc82-213e-4866-aae8-250449640c78 X-Archives-Hash: 719c653c39cb426a3a8e4771cab760f9 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