1 # $Id: PKGBUILD 178 2009-08-14 11:56:59Z shtrom $
2 # Contributor: Olivier Mehani <shtrom-aur@ssji.net>
4 _umipname=mipv6-daemon-umip
12 pkgdesc="UMIP userland with NEPL and MCoA supports for Mobile IPv6/NEMO operation with multihoming"
14 url="http://www.nautilus6.org/doc/nepl-howto/nepl-howto.html"
15 license=('GPL' 'custom')
17 depends=('kernel26-nemo')
19 optdepends=('radvd: to act as a NEMO Mobile Router advertising a MNP on the mobile link')
20 backup=(etc/mip6d/mip6d.conf etc/conf.d/mip6d.conf)
21 source=(ftp://ftp.linux-ipv6.org/pub/usagi/patch/mipv6/umip-${pkgver}/daemon/tarball/${_umipname}-${pkgver}.tar.gz
22 http://www.nautilus6.org/doc/nepl-howto/umip-nepl/${_umipname}-${pkgver}-nepl-${_neplrel}.patch
23 http://www.nautilus6.org/doc/nepl-howto/umip-nepl/${_umipname}-${pkgver}-nepl-mcoa-${_mcoarel}.patch
24 http://software.nautilus6.org/packages/DSMIP/${_dsmipname}-${_dsmiprel}.tar.bz2
25 http://software.nautilus6.org/packages/DSMIP/${_dsmipname}-${_dsmipver}-patches.tar.bz2
28 md5sums=('a8ebeb4f41ceed71037d0f5596ccc11d'
29 '501861f2d537377dc0f52f7a3e1b7314'
30 'd387155494f5224b780c41c0e1acd588'
31 '54790f8b7f1ee5e58feccf88b64daebf'
32 '574127844e110d8d6a0ecfb199a34b53'
33 '6995ae716fc0f66040ee528c291f08df'
34 'efbe23915c7dcf018ce70bcf72d18be7')
38 cd "$srcdir/${_umipname}-${pkgver}"
40 patch -p 1 < $srcdir/${_umipname}-${pkgver}-nepl-${_neplrel}.patch
41 patch -p 1 < $srcdir/${_umipname}-${pkgver}-nepl-mcoa-${_mcoarel}.patch
42 echo FIXME: support DSMIP
45 ./configure --prefix=/usr --enable-vt
46 make CFLAGS=-DNULL=0 || return 1
47 make DESTDIR="$pkgdir/" install
49 for file in extras/example-*.conf; do
50 install -D -m 0644 $file $pkgdir/etc/mip6d/${file/extras\/example/mip6d}
52 install -m 0644 $pkgdir/etc/mip6d/mip6d-mn.conf $pkgdir/etc/mip6d/mip6d.conf
54 install -D -m 0755 $srcdir/mip6d.init $pkgdir/etc/rc.d/mip6d
55 install -D -m 0644 $srcdir/mip6d.confd $pkgdir/etc/conf.d/mip6d.conf
57 install -d $pkgdir/usr/share/licenses/${pkgname}
58 install -m 0644 COPYING* licenses/*.txt $pkgdir/usr/share/licenses/${pkgname}
61 # vim:set ts=2 sw=2 et: