From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 6 14:10:10 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE9BE106567B for ; Sun, 6 May 2012 14:10:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E70FF8FC0C for ; Sun, 6 May 2012 14:10:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q46EA8h1032762 for ; Sun, 6 May 2012 14:10:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q46EA8Aj032761; Sun, 6 May 2012 14:10:08 GMT (envelope-from gnats) Resent-Date: Sun, 6 May 2012 14:10:08 GMT Resent-Message-Id: <201205061410.q46EA8Aj032761@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tim Bishop Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDC30106564A; Sun, 6 May 2012 14:02:41 +0000 (UTC) (envelope-from tdb@pendennis.kent.ac.uk) Received: from mx5.kent.ac.uk (mx5.kent.ac.uk [129.12.21.36]) by mx1.freebsd.org (Postfix) with ESMTP id 8B0228FC0A; Sun, 6 May 2012 14:02:41 +0000 (UTC) Received: from apophis.ukc.ac.uk ([129.12.4.11]) by mx5.kent.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SR1eG-0005Zo-JT; Sun, 06 May 2012 14:37:16 +0100 Received: from pendennis.kent.ac.uk ([129.12.3.232]) by apophis.ukc.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SR1eG-0001kb-AH; Sun, 06 May 2012 14:37:16 +0100 Received: from pendennis.kent.ac.uk (localhost [127.0.0.1]) by pendennis.kent.ac.uk (8.14.5/8.14.5) with ESMTP id q46DbGr0029581; Sun, 6 May 2012 14:37:16 +0100 (BST) (envelope-from tdb@pendennis.kent.ac.uk) Received: (from tdb@localhost) by pendennis.kent.ac.uk (8.14.5/8.14.5/Submit) id q46DbGgM029580; Sun, 6 May 2012 14:37:16 +0100 (BST) (envelope-from tdb) Message-Id: <201205061337.q46DbGgM029580@pendennis.kent.ac.uk> Date: Sun, 6 May 2012 14:37:16 +0100 (BST) From: Tim Bishop To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: swills@FreeBSD.org Subject: ports/167642: [PATCH] textproc/augeas: Make Puppet lenses work on FreeBSD X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 14:10:10 -0000 >Number: 167642 >Category: ports >Synopsis: [PATCH] textproc/augeas: Make Puppet lenses work on FreeBSD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 06 14:10:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Tim Bishop >Release: FreeBSD 9.0-STABLE i386 >Organization: >Environment: System: FreeBSD pendennis.kent.ac.uk 9.0-STABLE FreeBSD 9.0-STABLE #3: Tue Jan 10 18:13:10 GMT 2012 >Description: The two Puppet lenses expect the config files to be in /etc. On FreeBSD they're in /usr/local/etc. This patch fixes the two lenses so they'll correctly identify the Puppet config files on FreeBSD. I'll submit something upstream too. Added file(s): - files/patch-lenses__puppet.aug - files/patch-lenses__puppetfileserver.aug Port maintainer (swills@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- augeas-0.10.0_4.patch begins here --- Index: Makefile =================================================================== RCS file: /u1/freebsd/cvs/ports/textproc/augeas/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- Makefile 3 May 2012 01:55:03 -0000 1.12 +++ Makefile 6 May 2012 12:17:25 -0000 @@ -8,7 +8,7 @@ PORTNAME= augeas PORTVERSION= 0.10.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= textproc MASTER_SITES= http://augeas.net/download/ @@ -35,5 +35,8 @@ @${REINPLACE_CMD} -e 's:$$(libdir)/pkgconfig:${PREFIX}/libdata/pkgconfig:' ${WRKSRC}/Makefile.am @${REINPLACE_CMD} -e 's:/bin/bash:/usr/bin/env bash:' ${WRKSRC}/tests/*.sh @${REINPLACE_CMD} -e 's:sed:gsed:' ${WRKSRC}/tests/test-augtool.sh + @${REINPLACE_CMD} -e 's:%%LOCALBASE%%:${LOCALBASE}:' \ + ${WRKSRC}/lenses/puppet.aug \ + ${WRKSRC}/lenses/puppetfileserver.aug .include Index: files/patch-lenses__puppet.aug =================================================================== RCS file: files/patch-lenses__puppet.aug diff -N files/patch-lenses__puppet.aug --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-lenses__puppet.aug 6 May 2012 12:15:14 -0000 @@ -0,0 +1,11 @@ +--- ./lenses/puppet.aug.orig 2012-05-06 13:14:13.000000000 +0100 ++++ ./lenses/puppet.aug 2012-05-06 13:14:45.000000000 +0100 +@@ -38,6 +38,7 @@ + *************************************************************************) + let lns = IniFile.lns record comment + +-let filter = (incl "/etc/puppet/puppet.conf") ++let filter = (incl "/etc/puppet/puppet.conf" ++ .incl "%%LOCALBASE%%/etc/puppet/puppet.conf") + + let xfm = transform lns filter Index: files/patch-lenses__puppetfileserver.aug =================================================================== RCS file: files/patch-lenses__puppetfileserver.aug diff -N files/patch-lenses__puppetfileserver.aug --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-lenses__puppetfileserver.aug 6 May 2012 12:15:14 -0000 @@ -0,0 +1,11 @@ +--- ./lenses/puppetfileserver.aug.orig 2012-05-06 13:14:17.000000000 +0100 ++++ ./lenses/puppetfileserver.aug 2012-05-06 13:15:08.000000000 +0100 +@@ -105,6 +105,7 @@ + let lns = IniFile.lns record comment + + (* Variable: filter *) +-let filter = (incl "/etc/puppet/fileserver.conf") ++let filter = (incl "/etc/puppet/fileserver.conf" ++ .incl "%%LOCALBASE%%/etc/puppet/fileserver.conf") + + let xfm = transform lns filter --- augeas-0.10.0_4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: