updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / emane / PKGBUILD
blob00b16097cc8c0dd96df4c98d260a3af600c71447
1 # Maintainer: Tom Wambold <tom5760@gmail.com>
2 pkgname=emane
3 pkgver=0.6.4
4 pkgrel=2
5 pkgdesc="Extendable Mobile Ad-hoc Network Emulator"
6 arch=('i686' 'x86_64')
7 url="http://labs.cengen.com/emane/"
8 license=('BSD')
9 install=emane.install
10 depends=(openssl ace perl-xml-simple perl-xml-libxml libpcap)
11 source=(http://labs.cengen.com/emane/download/source/$pkgver/$pkgname-$pkgver.tgz
12         emane-ace-headers.patch
13         emane.conf emane.install
14         emane emaneeventd emaneeventservice emanetransportd)
15 md5sums=('9bee1c91962a86fe3ce99b361d3a8019'
16          '3aa2d84bdf5aec6bd1c65bf8cdf36429'
17          '28e57be40c37e02a80ad0890b9389098'
18          '575802412ba681d0ece003e66361a14c'
19          '4e7948c9bd456b7e4c6bfe77bb644589'
20          '0b8dc3ebf8fd3f8f61dc35c90a6f52fd'
21          '6ccf17782958c6f4997e1150f57960f6'
22          'a0b03a4170bb316defc53fd8eb91a471')
24 build() {
25   cd "$srcdir/$pkgname-$pkgver"
26   patch -p1 < ../emane-ace-headers.patch
27   autoreconf
28   ./configure --prefix=/usr
29   make
32 package() {
33   echo SRCDIR $srcdir
34   cd "$srcdir/$pkgname-$pkgver"
35   make DESTDIR="$pkgdir/" install
36   rm -r $pkgdir/usr/etc
38   sed -i "s:-L$srcdir/emane-0.6.4/libs/emanelogservice/.libs::g" $pkgdir/usr/lib/libemanexmlparser.la
40   install -d $pkgdir/etc/emane
41   install -D $srcdir/emane.conf $pkgdir/etc/conf.d/emane.conf
42   install -D $srcdir/emane $pkgdir/etc/rc.d/emane
43   install -D $srcdir/emaneeventd $pkgdir/etc/rc.d/emaneeventd
44   install -D $srcdir/emaneeventservice $pkgdir/etc/rc.d/emaneeventservice
45   install -D $srcdir/emanetransportd $pkgdir/etc/rc.d/emanetransportd
48 # vim:set ts=2 sw=2 et: