desktop/vde2/PKGBUILD
Adrian Chaves Fernandez 00636f466e vde2: 2.3.2
2013-11-30 18:18:55 +00:00

59 lines
1.8 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=vde2
pkgver=2.3.2
pkgrel=1
pkgdesc="Virtual Distributed Ethernet for emulators like qemu"
url="http://sourceforge.net/projects/vde/"
license=("GPL" "LGPL" "CUSTOM")
arch=('i686' 'x86_64')
depends=('bash' 'libpcap' 'openssl')
backup=(etc/conf.d/vde)
install=$pkgname.install
source=(http://downloads.sourceforge.net/vde/$pkgname-$pkgver.tar.bz2
dhcpd.conf.sample
iptables.rules.sample
vde-config.sample
vde-connection.sample
vde.conf
vde.rc)
md5sums=('46fbc5f97f03dc517aa3b2c9d9ea6628'
'7d9bc56d2e561d849e915000d1c0f269'
'a920123fc620bcedbccb703a8d1bdc55'
'cb8ace28e8efd4dad128be4be71b3b07'
'63033c33565e2030541c5e05e9d9b063'
'a22730f051f4840da4a3162a88ff8156'
'6c7dc01bc2f039f0ff1682ee70d3d1da')
build() {
cd $srcdir/$pkgname-$pkgver
./configure \
--enable-experimental \
--libexecdir=/usr/lib/vde2 \
--prefix=/usr \
--sysconfdir=/etc
make -j1
}
package() {
cd $srcdir/$pkgname-$pkgver
make prefix=$pkgdir/usr sysconfdir=$pkgdir/etc sbindir=$pkgdir/usr/bin libexecdir=$pkgdir/usr/lib/vde2 install
# Additional files.
install -D -m 755 ../vde.rc $pkgdir/etc/rc.d/vde
install -D -m 644 ../vde.conf $pkgdir/etc/conf.d/vde
install -D -m 644 ../vde-config.sample $pkgdir/etc/vde/vde-config.sample
install -D -m 644 ../vde-connection.sample $pkgdir/etc/vde/vde-connection.sample
install -D -m 644 ../dhcpd.conf.sample $pkgdir/usr/share/vde2/dhcpd.conf.sample
install -D -m 644 ../iptables.rules.sample $pkgdir/usr/share/vde2/iptables.rules.sample
# License.
install -D -m 644 COPYING.slirpvde $pkgdir/usr/share/licenses/vde2/slirpvde.license.txt
}