From owner-freebsd-current@FreeBSD.ORG Tue Apr 20 09:09:24 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 AD7661065673 for ; Tue, 20 Apr 2010 09:09:24 +0000 (UTC) (envelope-from gordon.tetlow@gmail.com) Received: from mail-pz0-f197.google.com (mail-pz0-f197.google.com [209.85.222.197]) by mx1.freebsd.org (Postfix) with ESMTP id 329BC8FC15 for ; Tue, 20 Apr 2010 09:09:22 +0000 (UTC) Received: by pzk35 with SMTP id 35so27773pzk.3 for ; Tue, 20 Apr 2010 02:09:22 -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=NFC9506lXkziUur7eS2jBwp/WgLBdacxceUjxdcGeME=; b=gLiQjZgQZ9Frn37yKXDrUNlPy53MdjER+QKzsMH9S9dBAFgm3QQn1JbZTUoGwDCQey efPFCVdPHWaCXIo40gres7xduu54ozMoTJDaLiVWewfcLsxJG18aL0Pk3yytRCfu70QS OY1LBSgpG9cda2hUrkBU6JwVCmD7zibSdO1CE= 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=ZjriHkA+Fx6wucGgYAQLTafwXvWT69gFN+amWY2Ig24BeWn47wXo90TnKU2BRL9ut6 e3s1VlUwdQ4YjzgsS3SySVS1IhpsdzqCJDKO5+N8UilNcaiSZy6rn9NEyWJMW785Uo7p SighRFPYnfDMExBNVGxwzMvaz3tT5hgFixYL0= MIME-Version: 1.0 Sender: gordon.tetlow@gmail.com Received: by 10.140.194.12 with HTTP; Tue, 20 Apr 2010 01:38:43 -0700 (PDT) Date: Tue, 20 Apr 2010 01:38:43 -0700 X-Google-Sender-Auth: 225e5ec007b29907 Received: by 10.141.15.9 with SMTP id s9mr5330454rvi.219.1271752723913; Tue, 20 Apr 2010 01:38:43 -0700 (PDT) Message-ID: From: Gordon Tetlow To: freebsd-current@freebsd.org X-Mailman-Approved-At: Tue, 20 Apr 2010 11:25:09 +0000 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: Tue, 20 Apr 2010 09:09:24 -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