diff --git a/alarm/olsrd/PKGBUILD b/alarm/olsrd/PKGBUILD new file mode 100644 index 000000000..1faa7d1bc --- /dev/null +++ b/alarm/olsrd/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Shawn Wilson +pkgname=olsrd +pkgrel=1 +pkgver=0.6.3 +pkgdesc="an adhoc wireless mesh routing daemon" +arch=(arm) +url="http://olsr.org/" +license=('custom') +depends=('glibc') +source=(http://www.olsr.org/releases/0.6/$pkgname-$pkgver.tar.bz2) +md5sums=('b28ed2e3dc6c529ab690f1c805ad32a2') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make build_all +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -d $pkgdir/usr/sbin/ + install -m 0755 olsrd $pkgdir/usr/sbin/ + install -d $pkgdir/etc/ + install -m 0644 files/olsrd.conf.default.lq $pkgdir/etc/olsrd.conf + install -d $pkgdir/usr/share/man/man8/ + install -m 0644 files/olsrd.8.gz $pkgdir/usr/share/man/man8/ + install -d $pkgdir/usr/share/man/man5/ + install -m 0644 files/olsrd.conf.5.gz $pkgdir/usr/share/man/man5/olsrd.conf.5.gz + + install -d $pkgdir/usr/lib/ + + find ./lib -name "*.so.*" -print | \ + while read lib; do \ + install -D -m 0644 $lib $pkgdir/usr/lib/; \ + done + + ldconfig -n /usr/lib +} +