updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mip6d / PKGBUILD
blobe1aa35a57ede3880fd79639b3d6ee3b15f7ad923
1 # $Id: PKGBUILD 178 2009-08-14 11:56:59Z shtrom $
2 # Contributor: Olivier Mehani <shtrom-aur@ssji.net>
3 pkgname=mip6d
4 _umipname=mipv6-daemon-umip
5 pkgver=0.4
6 _neplrel=20090624
7 _mcoarel=20090624
8 _dsmipname=umip-dsmip
9 _dsmipver=0.1
10 _dsmiprel=20080530
11 pkgrel=1
12 pkgdesc="UMIP userland with NEPL and MCoA supports for Mobile IPv6/NEMO operation with multihoming"
13 arch=(i686 x86_64)
14 url="http://www.nautilus6.org/doc/nepl-howto/nepl-howto.html"
15 license=('GPL' 'custom')
16 groups=()
17 depends=('kernel26-nemo')
18 makedepends=(indent)
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
26         mip6d.init
27         mip6d.confd)
28 md5sums=('a8ebeb4f41ceed71037d0f5596ccc11d'
29          '501861f2d537377dc0f52f7a3e1b7314'
30          'd387155494f5224b780c41c0e1acd588'
31          '54790f8b7f1ee5e58feccf88b64daebf'
32          '574127844e110d8d6a0ecfb199a34b53'
33          '6995ae716fc0f66040ee528c291f08df'
34          'efbe23915c7dcf018ce70bcf72d18be7')
37 build() {
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
43   exit 1
44   autoreconf -i 
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}
51   done
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: