summaryrefslogtreecommitdiff
path: root/pcr/olsrd/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/olsrd/PKGBUILD')
-rw-r--r--pcr/olsrd/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/olsrd/PKGBUILD b/pcr/olsrd/PKGBUILD
new file mode 100644
index 000000000..668e39cea
--- /dev/null
+++ b/pcr/olsrd/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor: William Rea <sillywilly@gmail.com>
+# Maintainer: Claudio Pisa <clauz@ninux.org>
+pkgname=olsrd
+pkgver=0.6.1
+pkgrel=2
+pkgdesc="OLSR routing daemon (RFC 3626)"
+arch=(i686 x86_64 ppc mips64el)
+url="http://www.olsr.org"
+license=('BSD')
+depends=('glibc')
+makedepends=('bison')
+backup=etc/olsrd.conf
+install=olsrd.install
+source=(http://www.olsr.org/releases/0.6/${pkgname}-${pkgver}.tar.bz2 rc.d.olsrd)
+md5sums=('a75fc9b6252df5b5f49f13418fafeff1' 'bc3e393e0179ffff0a6d6c9d6a5c4b60')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ CFLAGS+=" -fPIC " \
+ make OS=linux build_all
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install_all
+
+ install -D -m755 $srcdir/rc.d.olsrd $pkgdir/etc/rc.d/olsrd
+ install -D -m644 license.txt $pkgdir/usr/share/licenses/olsrd/LICENSE
+}
+