aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rancid/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-06-22 09:55:14 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-06-22 09:55:14 +0000
commit7c599e2c0fee0ab66122faf4e918c4eafb41cc27 (patch)
treed9aa29a85b6738b90e1af0885a8136a79aa912b9 /testing/rancid/APKBUILD
parent7b87ff6f9c4c47383a0cb932095bb3d9211c6d58 (diff)
downloadaports-7c599e2c0fee0ab66122faf4e918c4eafb41cc27.tar.bz2
aports-7c599e2c0fee0ab66122faf4e918c4eafb41cc27.tar.xz
testing/rancid: upgrade to 2.3.8, minor changes
Diffstat (limited to 'testing/rancid/APKBUILD')
-rw-r--r--testing/rancid/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/rancid/APKBUILD b/testing/rancid/APKBUILD
new file mode 100644
index 0000000000..cb11b32e88
--- /dev/null
+++ b/testing/rancid/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=rancid
+pkgver=2.3.8
+pkgrel=0
+pkgdesc="Really Awesome New Cisco confIg Differ"
+url="http://www.shrubbery.net/rancid/"
+arch="all"
+license="CUSTOM"
+depends="expect subversion"
+depends_dev="automake autoconf libtool"
+makedepends="$depends_dev"
+install="$pkgname.pre-install"
+subpackages="$pkgname-doc"
+source="ftp://ftp.shrubbery.net/pub/$pkgname/$pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/home/rancid \
+ --sysconfdir=/etc/rancid \
+ --localstatedir=/var/rancid \
+ --with-svn=fsfs
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/etc/rancid
+ mkdir -p "$pkgdir"/var/rancid 2>/dev/null
+ chown -R rancid:netadm "$pkgdir"/var/rancid 2>/dev/null
+ chown -R rancid:netadm "$pkgdir"/home/rancid 2>/dev/null
+ make DESTDIR="$pkgdir" install || return 1
+ install -m640 -D "$_builddir"/cloginrc.sample "$pkgdir"/home/rancid/.cloginrc
+ install -m644 -D "$_builddir"/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums="8cdfdfd8ab989e924dae2560d81457a0 rancid-2.3.8.tar.gz"