summaryrefslogtreecommitdiff
path: root/repo/augeas/augeas.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/augeas/augeas.xibuild')
-rw-r--r--repo/augeas/augeas.xibuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/repo/augeas/augeas.xibuild b/repo/augeas/augeas.xibuild
new file mode 100644
index 0000000..2064482
--- /dev/null
+++ b/repo/augeas/augeas.xibuild
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+NAME="augeas"
+DESC="A configuration editing tool"
+
+MAKEDEPS=" autoconf automake libxml2 readline libtool"
+
+PKG_VER=1.12.0
+SOURCE="http://download.augeas.net/augeas-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+acf.aug
+awall.aug
+fix-test.patch
+"
+
+prepare() {
+ apply_patches
+ autoreconf -f -i
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-static \
+ --enable-shared \
+ --disable-gnulib-tests
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ rm -rf "$PKG_DEST"/usr/lib/charset.alias
+ # Upstream packaging mistake, this should never have been installed
+ rm -f "$PKG_DEST"/usr/bin/dump
+
+ local lens
+ for lens in acf awall; do
+ install -m 644 "$BUILD_ROOT"/$lens.aug "$PKG_DEST"/usr/share/augeas/lenses
+ done
+}