diff options
Diffstat (limited to 'textproc/augeas')
-rw-r--r-- | textproc/augeas/Makefile | 7 | ||||
-rw-r--r-- | textproc/augeas/files/patch-lenses__shellvars.aug | 10 | ||||
-rw-r--r-- | textproc/augeas/files/rcconf.aug | 21 | ||||
-rw-r--r-- | textproc/augeas/files/test_rcconf.aug | 24 | ||||
-rw-r--r-- | textproc/augeas/pkg-plist | 2 |
5 files changed, 11 insertions, 53 deletions
diff --git a/textproc/augeas/Makefile b/textproc/augeas/Makefile index 672709a33c34..65acacc9d2f6 100644 --- a/textproc/augeas/Makefile +++ b/textproc/augeas/Makefile @@ -8,7 +8,7 @@ PORTNAME= augeas PORTVERSION= 0.10.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= http://augeas.net/download/ @@ -36,9 +36,4 @@ post-patch: @${REINPLACE_CMD} -e 's:/bin/bash:/usr/bin/env bash:' ${WRKSRC}/tests/*.sh @${REINPLACE_CMD} -e 's:sed:gsed:' ${WRKSRC}/tests/test-augtool.sh -post-install: - ${MKDIR} ${LENSESDIR}/tests - ${INSTALL_DATA} ${FILESDIR}/rcconf.aug ${LENSESDIR}/rcconf.aug - ${INSTALL_DATA} ${FILESDIR}/test_rcconf.aug ${LENSESDIR}/tests/rcconf.aug - .include <bsd.port.mk> diff --git a/textproc/augeas/files/patch-lenses__shellvars.aug b/textproc/augeas/files/patch-lenses__shellvars.aug new file mode 100644 index 000000000000..3e185cbc84c2 --- /dev/null +++ b/textproc/augeas/files/patch-lenses__shellvars.aug @@ -0,0 +1,10 @@ +--- ./lenses/shellvars.aug.orig 2012-05-01 13:51:21.934163842 -0400 ++++ ./lenses/shellvars.aug 2012-05-01 13:52:04.015160071 -0400 +@@ -196,6 +196,7 @@ + . incl "/etc/cron-apt/config" + . incl "/etc/environment" + . incl "/etc/blkid.conf" ++ . incl "/etc/rc.conf" + + let filter = filter_sysconfig + . filter_ifcfg diff --git a/textproc/augeas/files/rcconf.aug b/textproc/augeas/files/rcconf.aug deleted file mode 100644 index b91219f771a2..000000000000 --- a/textproc/augeas/files/rcconf.aug +++ /dev/null @@ -1,21 +0,0 @@ -module RcConf = - autoload xfm - - let comment = Util.comment - let empty = Util.empty - let eol = Util.eol - let eq = Util.del_str "=" - let dquot = Util.del_str "\"" - let char = /[^\n]/ - let var_name = /[A-Za-z0-9_.]+/ - - let value = dquot . store char* . dquot - let kv_pair = [ key var_name . eq . value . eol ] - - let lns = (comment | empty | kv_pair)* - - let filter = incl "/etc/rc.conf" - . incl "/boot/loader.conf" - . Util.stdexcl - - let xfm = transform lns filter diff --git a/textproc/augeas/files/test_rcconf.aug b/textproc/augeas/files/test_rcconf.aug deleted file mode 100644 index df46447b45e1..000000000000 --- a/textproc/augeas/files/test_rcconf.aug +++ /dev/null @@ -1,24 +0,0 @@ -module Test_RcConf = - let conf = "# /etc/rc.conf - -hostname=\"host.domain\" -defaultrouter=\"4.3.2.1\" -ipv4_addrs_em0=\"4.3.2.2/24\" - -foo_enable=\"YES\" -foo_flags=\"-a --foobar\" -bar_enable=\"NO\" -bar_flags=\"\" -" - - test RcConf.lns get conf = - { "#comment" = "/etc/rc.conf" } - {} - { "hostname" = "host.domain" } - { "defaultrouter" = "4.3.2.1" } - { "ipv4_addrs_em0" = "4.3.2.2/24" } - {} - { "foo_enable" = "YES" } - { "foo_flags" = "-a --foobar" } - { "bar_enable" = "NO" } - { "bar_flags" = "" } diff --git a/textproc/augeas/pkg-plist b/textproc/augeas/pkg-plist index 183827dc0fae..e1cbc7bcd901 100644 --- a/textproc/augeas/pkg-plist +++ b/textproc/augeas/pkg-plist @@ -231,8 +231,6 @@ libdata/pkgconfig/augeas.pc %%DATADIR%%/lenses/dist/xml.aug %%DATADIR%%/lenses/dist/xorg.aug %%DATADIR%%/lenses/dist/yum.aug -%%DATADIR%%/lenses/rcconf.aug -%%DATADIR%%/lenses/tests/rcconf.aug share/vim/vimfiles/ftdetect/augeas.vim share/vim/vimfiles/syntax/augeas.vim @dirrm %%DATADIR%%/lenses/dist/tests |