From owner-svn-ports-head@freebsd.org Thu Oct 25 13:51:50 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87987107714B; Thu, 25 Oct 2018 13:51:50 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3AB4C83697; Thu, 25 Oct 2018 13:51:50 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1BA5212A29; Thu, 25 Oct 2018 13:51:50 +0000 (UTC) (envelope-from romain@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9PDpnus025603; Thu, 25 Oct 2018 13:51:49 GMT (envelope-from romain@FreeBSD.org) Received: (from romain@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9PDpnlh025599; Thu, 25 Oct 2018 13:51:49 GMT (envelope-from romain@FreeBSD.org) Message-Id: <201810251351.w9PDpnlh025599@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: romain set sender to romain@FreeBSD.org using -f From: =?UTF-8?Q?Romain_Tarti=c3=a8re?= Date: Thu, 25 Oct 2018 13:51:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r482971 - in head/textproc/augeas: . files X-SVN-Group: ports-head X-SVN-Commit-Author: romain X-SVN-Commit-Paths: in head/textproc/augeas: . files X-SVN-Commit-Revision: 482971 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 13:51:50 -0000 Author: romain Date: Thu Oct 25 13:51:48 2018 New Revision: 482971 URL: https://svnweb.freebsd.org/changeset/ports/482971 Log: Fix syslog.conf parsing Backport change merged upstream until a new release of augeas happens. While here, pet portlint. PR: 232200 Reported by: mat Added: head/textproc/augeas/files/patch-lenses_syslog.aug (contents, props changed) head/textproc/augeas/files/patch-lenses_tests_test__syslog.aug (contents, props changed) head/textproc/augeas/files/patch-tests_root_etc_syslog.conf (contents, props changed) Modified: head/textproc/augeas/Makefile Modified: head/textproc/augeas/Makefile ============================================================================== --- head/textproc/augeas/Makefile Thu Oct 25 13:08:39 2018 (r482970) +++ head/textproc/augeas/Makefile Thu Oct 25 13:51:48 2018 (r482971) @@ -3,6 +3,7 @@ PORTNAME= augeas PORTVERSION= 1.11.0 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://download.augeas.net/ @@ -14,10 +15,11 @@ LICENSE= LGPL21 TEST_DEPENDS= bash:shells/bash \ gsed:textproc/gsed -GNU_CONFIGURE= yes USES= autoreconf cpe gmake libtool pathfix pkgconfig readline USE_GNOME= libxml2 USE_LDCONFIG= yes + +GNU_CONFIGURE= yes INSTALL_TARGET= install-strip LENSESDIR= ${PREFIX}/share/augeas/lenses Added: head/textproc/augeas/files/patch-lenses_syslog.aug ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/augeas/files/patch-lenses_syslog.aug Thu Oct 25 13:51:48 2018 (r482971) @@ -0,0 +1,26 @@ +--- lenses/syslog.aug.orig 2018-08-10 20:17:35 UTC ++++ lenses/syslog.aug +@@ -221,7 +221,7 @@ module Syslog = + (* View: entries + entries are either comments/empty lines or entries + *) +- let entries = (empty | comment | entry)* ++ let entries = (empty | comment | entry )* + + (* Group: Program matching *) + +@@ -253,10 +253,13 @@ module Syslog = + + (* Group: Top of the tree *) + ++ let include = ++ [ key "include" . sep_tab . store file_r . eol ] ++ + (* View: lns + generic entries then programs or hostnames matching blocs + *) +- let lns = entries . ( program | hostname )* ++ let lns = entries . ( program | hostname | include )* + + (* Variable: filter + all you need is /etc/syslog.conf Added: head/textproc/augeas/files/patch-lenses_tests_test__syslog.aug ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/augeas/files/patch-lenses_tests_test__syslog.aug Thu Oct 25 13:51:48 2018 (r482971) @@ -0,0 +1,9 @@ +--- lenses/tests/test_syslog.aug.orig 2018-08-10 20:17:35 UTC ++++ lenses/tests/test_syslog.aug +@@ -351,3 +351,6 @@ daemon.info + (* allow space before comments *) + test Syslog.lns get " \t# space comment\n" = + { "#comment" = "space comment" } ++ ++ test Syslog.lns get "include /etc/syslog.d\n" = ++ { "include" = "/etc/syslog.d" } Added: head/textproc/augeas/files/patch-tests_root_etc_syslog.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/augeas/files/patch-tests_root_etc_syslog.conf Thu Oct 25 13:51:48 2018 (r482971) @@ -0,0 +1,41 @@ +--- tests/root/etc/syslog.conf.orig 2018-10-25 13:34:21 UTC ++++ tests/root/etc/syslog.conf +@@ -0,0 +1,38 @@ ++# $FreeBSD$ ++# ++# Spaces ARE valid field separators in this file. However, ++# other *nix-like systems still insist on using tabs as field ++# separators. If you are sharing this file between systems, you ++# may want to use only tabs as field separators here. ++# Consult the syslog.conf(5) manpage. ++*.err;kern.warning;auth.notice;mail.crit /dev/console ++*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages ++security.* /var/log/security ++auth.info;authpriv.info /var/log/auth.log ++mail.info /var/log/maillog ++lpr.info /var/log/lpd-errs ++ftp.info /var/log/xferlog ++cron.* /var/log/cron ++!-devd ++*.=debug /var/log/debug.log ++*.emerg * ++# uncomment this to log all writes to /dev/console to /var/log/console.log ++# touch /var/log/console.log and chmod it to mode 600 before it will work ++#console.info /var/log/console.log ++# uncomment this to enable logging of all log messages to /var/log/all.log ++# touch /var/log/all.log and chmod it to mode 600 before it will work ++#*.* /var/log/all.log ++# uncomment this to enable logging to a remote loghost named loghost ++#*.* @loghost ++# uncomment these if you're running inn ++# news.crit /var/log/news/news.crit ++# news.err /var/log/news/news.err ++# news.notice /var/log/news/news.notice ++# Uncomment this if you wish to see messages produced by devd ++# !devd ++# *.>=notice /var/log/devd.log ++!ppp ++*.* /var/log/ppp.log ++!* ++include /etc/syslog.d ++include /usr/local/etc/syslog.d