diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-06-02 16:48:12 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-06-02 16:48:12 +0000 |
commit | 3e488db3fd251ff6569c17f3639b128a8bd58f7c (patch) | |
tree | 73cd4e9306eab29ed6769a629960976db34fb13d /textproc | |
parent | da96352563d64f04cf06be5663b681ead0ec3f0d (diff) | |
download | ports-3e488db3fd251ff6569c17f3639b128a8bd58f7c.tar.gz ports-3e488db3fd251ff6569c17f3639b128a8bd58f7c.zip |
Notes
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/augeas/Makefile | 39 | ||||
-rw-r--r-- | textproc/augeas/distinfo | 3 | ||||
-rw-r--r-- | textproc/augeas/files/patch-configure.ac | 12 | ||||
-rw-r--r-- | textproc/augeas/files/patch-gnulib::lib::Makefile.am | 11 | ||||
-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-descr | 3 | ||||
-rw-r--r-- | textproc/augeas/pkg-plist | 165 |
9 files changed, 279 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index d2c57b2a8268..06872d4af3a8 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -26,6 +26,7 @@ SUBDIR += aspell SUBDIR += aspell-without-dicten SUBDIR += atom + SUBDIR += augeas SUBDIR += az-aspell SUBDIR += bar SUBDIR += bbe diff --git a/textproc/augeas/Makefile b/textproc/augeas/Makefile new file mode 100644 index 000000000000..dd6ac8936ddd --- /dev/null +++ b/textproc/augeas/Makefile @@ -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> diff --git a/textproc/augeas/distinfo b/textproc/augeas/distinfo new file mode 100644 index 000000000000..784a91ff1d83 --- /dev/null +++ b/textproc/augeas/distinfo @@ -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 diff --git a/textproc/augeas/files/patch-configure.ac b/textproc/augeas/files/patch-configure.ac new file mode 100644 index 000000000000..bdc379d6e405 --- /dev/null +++ b/textproc/augeas/files/patch-configure.ac @@ -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 diff --git a/textproc/augeas/files/patch-gnulib::lib::Makefile.am b/textproc/augeas/files/patch-gnulib::lib::Makefile.am new file mode 100644 index 000000000000..c89747137e5b --- /dev/null +++ b/textproc/augeas/files/patch-gnulib::lib::Makefile.am @@ -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 ;; \ diff --git a/textproc/augeas/files/rcconf.aug b/textproc/augeas/files/rcconf.aug new file mode 100644 index 000000000000..1ab86b678dd5 --- /dev/null +++ b/textproc/augeas/files/rcconf.aug @@ -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 diff --git a/textproc/augeas/files/test_rcconf.aug b/textproc/augeas/files/test_rcconf.aug new file mode 100644 index 000000000000..df46447b45e1 --- /dev/null +++ b/textproc/augeas/files/test_rcconf.aug @@ -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" = "" } diff --git a/textproc/augeas/pkg-descr b/textproc/augeas/pkg-descr new file mode 100644 index 000000000000..85414b8b72ba --- /dev/null +++ b/textproc/augeas/pkg-descr @@ -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. diff --git a/textproc/augeas/pkg-plist b/textproc/augeas/pkg-plist new file mode 100644 index 000000000000..bc7cdf8787db --- /dev/null +++ b/textproc/augeas/pkg-plist @@ -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 |