From owner-freebsd-current@FreeBSD.ORG Thu Apr 22 03:55:44 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E60E0106566C for ; Thu, 22 Apr 2010 03:55:44 +0000 (UTC) (envelope-from gordon.tetlow@gmail.com) Received: from mail-pz0-f172.google.com (mail-pz0-f172.google.com [209.85.222.172]) by mx1.freebsd.org (Postfix) with ESMTP id BB3838FC1C for ; Thu, 22 Apr 2010 03:55:44 +0000 (UTC) Received: by pzk2 with SMTP id 2so5200249pzk.27 for ; Wed, 21 Apr 2010 20:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:received:message-id:subject:from:to :content-type; bh=UAYt9s3sSguprJRpaSJZajmujaBZV2V32GjNAljx8iM=; b=DXbnbXqJ7x0ui3RsXE5HXgrsJ9Hr1KuU8JWfijy85JqmXLXxIYo1d6+J33NsjorVSx RN2A/xTPwXlBG0d8n+O+RSsEolBqtUhYoxzBSxyrgA+pn3WI5eBOEgQ17yV95Tw7xbRa DnCCazhWOa3kh4Q/VFggAErDj0NkGEWZalpYs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=E3qxUqJB2ZADUqrRow8hsPub7TbZrTNQtZLsEj+m7l+4T6kwY+j2N6pMSKZjNLGKYM bDxhP/UHaL3QtiJP7VPEddJGDEE3T4J129IqvOlvRq1ehda+HTtzPNsjP1HcO0T1m2fo f9/8waNEpBNDCnK8kYP0EFVu1Eg8oVYD10YmA= MIME-Version: 1.0 Sender: gordon.tetlow@gmail.com Received: by 10.140.194.12 with HTTP; Wed, 21 Apr 2010 20:55:44 -0700 (PDT) Date: Wed, 21 Apr 2010 20:55:44 -0700 X-Google-Sender-Auth: c8f9ae721816fe17 Received: by 10.141.187.15 with SMTP id o15mr332681rvp.172.1271908544046; Wed, 21 Apr 2010 20:55:44 -0700 (PDT) Message-ID: From: Gordon Tetlow To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: newsyslog patch implementing file includes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 03:55:45 -0000 I wanted the ability for a port to have a rotating log policy so I wrote a patch for newsyslog to implement includes of other newsyslog.conf style files. Please find the patch at: http://people.freebsd.org/~gordon/patches/newsyslog.diff Format for the include line in /etc/newsyslog.conf is: /etc/defaults/newsyslog.conf Here's a quick overview of the changes: Convert the conf_entry struct from using a home rolled linked list to the queue(3) macros. Add a STAILQ to process include files. Add support for tag to specify include files. Globbing is supported in statements. Properly detect circular include loop dependencies. Please take a look and send me any comments you might have. Thanks, Gordon