summaryrefslogtreecommitdiff
path: root/social
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-26 02:26:56 -0700
committerroot <root@rshg054.dnsready.net>2012-10-26 02:26:56 -0700
commitff20b83d60041f745a579e10770706b0b49d5617 (patch)
tree715ba7ce7d40655e756c284d0875b27da39796e6 /social
parenta3b55a0c47a00ac40bc00a4ce87d93f809273840 (diff)
Fri Oct 26 02:24:09 PDT 2012
Diffstat (limited to 'social')
-rw-r--r--social/babeld/PKGBUILD32
-rw-r--r--social/babeld/babeld.install18
2 files changed, 50 insertions, 0 deletions
diff --git a/social/babeld/PKGBUILD b/social/babeld/PKGBUILD
new file mode 100644
index 000000000..5aa25f07f
--- /dev/null
+++ b/social/babeld/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer (AUR): Yann Lopez <arch at lonewulf dot net>
+# Maintainer (Parabola): fauno <fauno@parabola.nu>
+pkgname=babeld
+pkgver=1.3.4
+pkgrel=1
+pkgdesc="Loop-free distance-vector routing protocol"
+arch=(i686 x86_64 mips64el)
+url="http://www.pps.jussieu.fr/~jch/software/babel/"
+license=('custom')
+depends=(glibc)
+source=(http://www.pps.jussieu.fr/~jch/software/files/$pkgname-$pkgver.tar.gz{,.asc})
+install=babeld.install
+md5sums=('37be1cbcc23cd00ee47efc9157c58795'
+ 'e2dfae49b497ba70c0c1014feae80f3a')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ sed -e "s,/man/,/share&,g" -i Makefile
+
+ make PREFIX=/usr CFLAGS="$CFLAGS"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make PREFIX=/usr TARGET=$pkgdir install
+
+ gzip -f $pkgdir/usr/share/man/man8/$pkgname.8
+
+ install -Dm 644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE
+}
diff --git a/social/babeld/babeld.install b/social/babeld/babeld.install
new file mode 100644
index 000000000..686153617
--- /dev/null
+++ b/social/babeld/babeld.install
@@ -0,0 +1,18 @@
+compatibility_warning() {
+ echo "PLEASE NOTE:"
+ echo " "
+ echo "-------------------------------------------------------------"
+ echo " This version uses the IANA-allocated UDP port and multicast"
+ echo " group and is therefore incompatible with older versions."
+ echo "-------------------------------------------------------------"
+}
+
+post_upgrade() {
+ major=$(echo $2 | cut -d '.' -f1)
+ minor=$(echo $2 | cut -d '.' -f2)
+ if [ $major -lt 1 ]; then
+ compatibility_warning
+ elif [ $major -eq 1 -a $minor -lt 1 ]; then
+ compatibility_warning
+ fi
+}