Merge pull request #252 from ag4ve/master

add initial build for olsrd
This commit is contained in:
Kevin Mihelich 2012-08-27 20:52:14 -07:00
commit 4d71d40ae4

40
alarm/olsrd/PKGBUILD Normal file
View file

@ -0,0 +1,40 @@
# Maintainer: Shawn Wilson <ag4ve.us@gmail.com>
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
}