1 # Contributor: Nicola Tuveri <nic dot tuv at google mail dot com>
3 pkgname=uml_utilities_tunpatch
6 pkgdesc="User Mode Linux Utilities - patched to let tunctl handle tun devices"
8 depends=('fuse' 'readline')
9 provides=('uml_utilities')
10 conflicts=('uml_utilities')
11 url="http://user-mode-linux.sourceforge.net/"
13 "http://user-mode-linux.sourceforge.net/uml_utilities_${pkgver}.tar.bz2"
14 'tunctl-IFF_TUN.patch'
17 md5sums=('b0468ac8b79cef53f36f5f9517907462'
18 'cf03411576d2666c3ca1293f76e75d80')
21 cd $startdir/src/tools-$pkgver
22 patch -p1 < $startdir/src/tunctl-IFF_TUN.patch || return 1
23 sed 's|lib64|lib|g' -i Makefile || return 1
24 CFLAGS="$CFLAGS -DTUNTAP -g -Wall"
26 make DESTDIR=$startdir/pkg install || return 1
27 chown root $startdir/pkg/usr/bin/*