Augeas is a configuration editing tool. It parses configuration files in their
native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files. WWW: http://augeas.net PR: ports/146743 Submitted by: Russell Jackson <raj at csub.edu>
This commit is contained in:
parent
da96352563
commit
3e488db3fd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255561
9 changed files with 279 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
SUBDIR += aspell
|
||||
SUBDIR += aspell-without-dicten
|
||||
SUBDIR += atom
|
||||
SUBDIR += augeas
|
||||
SUBDIR += az-aspell
|
||||
SUBDIR += bar
|
||||
SUBDIR += bbe
|
||||
|
|
39
textproc/augeas/Makefile
Normal file
39
textproc/augeas/Makefile
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Ports collection makefile for: textproc/augeas
|
||||
# Date created: 19 May 2010
|
||||
# Whom: Russell Jackson <raj@csub.edu>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= augeas
|
||||
PORTVERSION= 0.7.1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://augeas.net/download/
|
||||
|
||||
MAINTAINER= raj@csub.edu
|
||||
COMMENT= A configuration editing tool
|
||||
|
||||
USE_GETTEXT= yes
|
||||
USE_GMAKE= yes
|
||||
USE_AUTOTOOLS= autoconf:262 aclocal:110 autoheader:262 automake:110 libtool:22
|
||||
ACLOCAL_ARGS= -I . -I gnulib/m4 -I ${LOCALBASE}/share/aclocal
|
||||
AUTOMAKE_ARGS= --add-missing
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
MAN1= augparse.1 augtool.1
|
||||
MANCOMPRESSED= no
|
||||
|
||||
LENSESDIR= ${PREFIX}/share/augeas/lenses
|
||||
|
||||
post-extract:
|
||||
@${RM} ${WRKSRC}/gnulib/lib/gettext.h
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's:$$(libdir)/pkgconfig:${PREFIX}/libdata/pkgconfig:' ${WRKSRC}/Makefile.am
|
||||
|
||||
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>
|
3
textproc/augeas/distinfo
Normal file
3
textproc/augeas/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (augeas-0.7.1.tar.gz) = eb1fc16e17c3eebfc26001e08bf5740c
|
||||
SHA256 (augeas-0.7.1.tar.gz) = f45749251dbc382b89458bfa25ca1f4090520f4b853b77c854de3861e9f82636
|
||||
SIZE (augeas-0.7.1.tar.gz) = 1346645
|
12
textproc/augeas/files/patch-configure.ac
Normal file
12
textproc/augeas/files/patch-configure.ac
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- configure.ac.orig 2010-04-28 13:15:44.000000000 -0700
|
||||
+++ configure.ac 2010-04-28 13:16:07.000000000 -0700
|
||||
@@ -2,8 +2,7 @@
|
||||
AC_CONFIG_SRCDIR([src/augeas.c])
|
||||
AC_CONFIG_AUX_DIR([build/aux])
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
-AM_INIT_AUTOMAKE([-Wno-portability 1.11 color-tests parallel-tests])
|
||||
-AM_SILENT_RULES([yes]) # make --enable-silent-rules the default.
|
||||
+AM_INIT_AUTOMAKE()
|
||||
|
||||
|
||||
dnl Check for NaturalDocs
|
11
textproc/augeas/files/patch-gnulib::lib::Makefile.am
Normal file
11
textproc/augeas/files/patch-gnulib::lib::Makefile.am
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- gnulib/lib/Makefile.am.orig 2010-04-28 14:46:00.000000000 -0700
|
||||
+++ gnulib/lib/Makefile.am 2010-04-28 14:47:00.000000000 -0700
|
||||
@@ -395,7 +395,7 @@
|
||||
case '$(host_os)' in \
|
||||
darwin[56]*) \
|
||||
need_charset_alias=true ;; \
|
||||
- darwin* | cygwin* | mingw* | pw32* | cegcc*) \
|
||||
+ darwin* | cygwin* | mingw* | pw32* | cegcc* | freebsd*) \
|
||||
need_charset_alias=false ;; \
|
||||
*) \
|
||||
need_charset_alias=true ;; \
|
21
textproc/augeas/files/rcconf.aug
Normal file
21
textproc/augeas/files/rcconf.aug
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
24
textproc/augeas/files/test_rcconf.aug
Normal file
24
textproc/augeas/files/test_rcconf.aug
Normal file
|
@ -0,0 +1,24 @@
|
|||
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" = "" }
|
3
textproc/augeas/pkg-descr
Normal file
3
textproc/augeas/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
|||
Augeas is a configuration editing tool. It parses configuration files in their
|
||||
native formats and transforms them into a tree. Configuration changes are made
|
||||
by manipulating this tree and saving it back into native config files.
|
165
textproc/augeas/pkg-plist
Normal file
165
textproc/augeas/pkg-plist
Normal file
|
@ -0,0 +1,165 @@
|
|||
bin/augparse
|
||||
bin/augtool
|
||||
bin/fadot
|
||||
include/augeas.h
|
||||
include/fa.h
|
||||
lib/libaugeas.a
|
||||
lib/libaugeas.la
|
||||
lib/libaugeas.so
|
||||
lib/libaugeas.so.10
|
||||
lib/libfa.a
|
||||
lib/libfa.la
|
||||
lib/libfa.so
|
||||
lib/libfa.so.4
|
||||
libdata/pkgconfig/augeas.pc
|
||||
share/augeas/lenses/dist/aliases.aug
|
||||
share/augeas/lenses/dist/approx.aug
|
||||
share/augeas/lenses/dist/aptpreferences.aug
|
||||
share/augeas/lenses/dist/aptsources.aug
|
||||
share/augeas/lenses/dist/bbhosts.aug
|
||||
share/augeas/lenses/dist/build.aug
|
||||
share/augeas/lenses/dist/cgconfig.aug
|
||||
share/augeas/lenses/dist/cgrules.aug
|
||||
share/augeas/lenses/dist/cobblermodules.aug
|
||||
share/augeas/lenses/dist/cobblersettings.aug
|
||||
share/augeas/lenses/dist/cron.aug
|
||||
share/augeas/lenses/dist/darkice.aug
|
||||
share/augeas/lenses/dist/debctrl.aug
|
||||
share/augeas/lenses/dist/dhclient.aug
|
||||
share/augeas/lenses/dist/dnsmasq.aug
|
||||
share/augeas/lenses/dist/dpkg.aug
|
||||
share/augeas/lenses/dist/dput.aug
|
||||
share/augeas/lenses/dist/ethers.aug
|
||||
share/augeas/lenses/dist/exports.aug
|
||||
share/augeas/lenses/dist/fstab.aug
|
||||
share/augeas/lenses/dist/gdm.aug
|
||||
share/augeas/lenses/dist/group.aug
|
||||
share/augeas/lenses/dist/grub.aug
|
||||
share/augeas/lenses/dist/hosts.aug
|
||||
share/augeas/lenses/dist/inetd.aug
|
||||
share/augeas/lenses/dist/inifile.aug
|
||||
share/augeas/lenses/dist/inittab.aug
|
||||
share/augeas/lenses/dist/interfaces.aug
|
||||
share/augeas/lenses/dist/iptables.aug
|
||||
share/augeas/lenses/dist/json.aug
|
||||
share/augeas/lenses/dist/krb5.aug
|
||||
share/augeas/lenses/dist/limits.aug
|
||||
share/augeas/lenses/dist/logrotate.aug
|
||||
share/augeas/lenses/dist/lokkit.aug
|
||||
share/augeas/lenses/dist/modprobe.aug
|
||||
share/augeas/lenses/dist/monit.aug
|
||||
share/augeas/lenses/dist/multipath.aug
|
||||
share/augeas/lenses/dist/nagioscfg.aug
|
||||
share/augeas/lenses/dist/ntp.aug
|
||||
share/augeas/lenses/dist/openvpn.aug
|
||||
share/augeas/lenses/dist/pam.aug
|
||||
share/augeas/lenses/dist/passwd.aug
|
||||
share/augeas/lenses/dist/pbuilder.aug
|
||||
share/augeas/lenses/dist/php.aug
|
||||
share/augeas/lenses/dist/phpvars.aug
|
||||
share/augeas/lenses/dist/postfix_access.aug
|
||||
share/augeas/lenses/dist/postfix_main.aug
|
||||
share/augeas/lenses/dist/postfix_master.aug
|
||||
share/augeas/lenses/dist/puppet.aug
|
||||
share/augeas/lenses/dist/rsyncd.aug
|
||||
share/augeas/lenses/dist/rx.aug
|
||||
share/augeas/lenses/dist/samba.aug
|
||||
share/augeas/lenses/dist/securetty.aug
|
||||
share/augeas/lenses/dist/sep.aug
|
||||
share/augeas/lenses/dist/services.aug
|
||||
share/augeas/lenses/dist/shellvars.aug
|
||||
share/augeas/lenses/dist/slapd.aug
|
||||
share/augeas/lenses/dist/soma.aug
|
||||
share/augeas/lenses/dist/spacevars.aug
|
||||
share/augeas/lenses/dist/squid.aug
|
||||
share/augeas/lenses/dist/sshd.aug
|
||||
share/augeas/lenses/dist/sudoers.aug
|
||||
share/augeas/lenses/dist/sysctl.aug
|
||||
share/augeas/lenses/dist/tests/test_aliases.aug
|
||||
share/augeas/lenses/dist/tests/test_approx.aug
|
||||
share/augeas/lenses/dist/tests/test_aptpreferences.aug
|
||||
share/augeas/lenses/dist/tests/test_aptsource.aug
|
||||
share/augeas/lenses/dist/tests/test_bbhosts.aug
|
||||
share/augeas/lenses/dist/tests/test_cgconfig.aug
|
||||
share/augeas/lenses/dist/tests/test_cgrules.aug
|
||||
share/augeas/lenses/dist/tests/test_cobblermodules.aug
|
||||
share/augeas/lenses/dist/tests/test_cobblersettings.aug
|
||||
share/augeas/lenses/dist/tests/test_cron.aug
|
||||
share/augeas/lenses/dist/tests/test_darkice.aug
|
||||
share/augeas/lenses/dist/tests/test_debctrl.aug
|
||||
share/augeas/lenses/dist/tests/test_dhclient.aug
|
||||
share/augeas/lenses/dist/tests/test_dnsmasq.aug
|
||||
share/augeas/lenses/dist/tests/test_dpkg.aug
|
||||
share/augeas/lenses/dist/tests/test_dput.aug
|
||||
share/augeas/lenses/dist/tests/test_ethers.aug
|
||||
share/augeas/lenses/dist/tests/test_exports.aug
|
||||
share/augeas/lenses/dist/tests/test_fstab.aug
|
||||
share/augeas/lenses/dist/tests/test_gdm.aug
|
||||
share/augeas/lenses/dist/tests/test_group.aug
|
||||
share/augeas/lenses/dist/tests/test_grub.aug
|
||||
share/augeas/lenses/dist/tests/test_hosts.aug
|
||||
share/augeas/lenses/dist/tests/test_inetd.aug
|
||||
share/augeas/lenses/dist/tests/test_inifile.aug
|
||||
share/augeas/lenses/dist/tests/test_inittab.aug
|
||||
share/augeas/lenses/dist/tests/test_interfaces.aug
|
||||
share/augeas/lenses/dist/tests/test_iptables.aug
|
||||
share/augeas/lenses/dist/tests/test_json.aug
|
||||
share/augeas/lenses/dist/tests/test_krb5.aug
|
||||
share/augeas/lenses/dist/tests/test_ldap.aug
|
||||
share/augeas/lenses/dist/tests/test_limits.aug
|
||||
share/augeas/lenses/dist/tests/test_logrotate.aug
|
||||
share/augeas/lenses/dist/tests/test_lokkit.aug
|
||||
share/augeas/lenses/dist/tests/test_modprobe.aug
|
||||
share/augeas/lenses/dist/tests/test_monit.aug
|
||||
share/augeas/lenses/dist/tests/test_multipath.aug
|
||||
share/augeas/lenses/dist/tests/test_nagioscfg.aug
|
||||
share/augeas/lenses/dist/tests/test_ntp.aug
|
||||
share/augeas/lenses/dist/tests/test_openvpn.aug
|
||||
share/augeas/lenses/dist/tests/test_pam.aug
|
||||
share/augeas/lenses/dist/tests/test_passwd.aug
|
||||
share/augeas/lenses/dist/tests/test_pbuilder.aug
|
||||
share/augeas/lenses/dist/tests/test_php.aug
|
||||
share/augeas/lenses/dist/tests/test_phpvars.aug
|
||||
share/augeas/lenses/dist/tests/test_postfix_access.aug
|
||||
share/augeas/lenses/dist/tests/test_postfix_main.aug
|
||||
share/augeas/lenses/dist/tests/test_postfix_master.aug
|
||||
share/augeas/lenses/dist/tests/test_puppet.aug
|
||||
share/augeas/lenses/dist/tests/test_rsyncd.aug
|
||||
share/augeas/lenses/dist/tests/test_rx.aug
|
||||
share/augeas/lenses/dist/tests/test_samba.aug
|
||||
share/augeas/lenses/dist/tests/test_securetty.aug
|
||||
share/augeas/lenses/dist/tests/test_services.aug
|
||||
share/augeas/lenses/dist/tests/test_shellvars.aug
|
||||
share/augeas/lenses/dist/tests/test_slapd.aug
|
||||
share/augeas/lenses/dist/tests/test_soma.aug
|
||||
share/augeas/lenses/dist/tests/test_spacevars.aug
|
||||
share/augeas/lenses/dist/tests/test_squid.aug
|
||||
share/augeas/lenses/dist/tests/test_sshd.aug
|
||||
share/augeas/lenses/dist/tests/test_sudoers.aug
|
||||
share/augeas/lenses/dist/tests/test_sysctl.aug
|
||||
share/augeas/lenses/dist/tests/test_vsftpd.aug
|
||||
share/augeas/lenses/dist/tests/test_webmin.aug
|
||||
share/augeas/lenses/dist/tests/test_wine.aug
|
||||
share/augeas/lenses/dist/tests/test_xinetd.aug
|
||||
share/augeas/lenses/dist/tests/test_xorg.aug
|
||||
share/augeas/lenses/dist/tests/test_yum.aug
|
||||
share/augeas/lenses/dist/util.aug
|
||||
share/augeas/lenses/dist/vsftpd.aug
|
||||
share/augeas/lenses/dist/webmin.aug
|
||||
share/augeas/lenses/dist/wine.aug
|
||||
share/augeas/lenses/dist/xinetd.aug
|
||||
share/augeas/lenses/dist/xorg.aug
|
||||
share/augeas/lenses/dist/yum.aug
|
||||
share/augeas/lenses/rcconf.aug
|
||||
share/augeas/lenses/tests/rcconf.aug
|
||||
share/vim/vimfiles/ftdetect/augeas.vim
|
||||
share/vim/vimfiles/syntax/augeas.vim
|
||||
@dirrm share/augeas/lenses/dist/tests
|
||||
@dirrm share/augeas/lenses/dist
|
||||
@dirrm share/augeas/lenses/tests
|
||||
@dirrm share/augeas/lenses
|
||||
@dirrm share/augeas
|
||||
@dirrmtry share/vim/vimfiles/syntax
|
||||
@dirrmtry share/vim/vimfiles/ftdetect
|
||||
@dirrmtry share/vim/vimfiles
|
||||
@dirrmtry share/vim
|
Loading…
Reference in a new issue