blob: a7a23dc33ce8bd7fd3e46e9ebb8531489c5ffffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=vde2
pkgver=2.3.2
pkgrel=0
pkgdesc="VDE: Virtual Distributed Ethernet. User mode networking for QEMU, UML, etc."
url="http://vde.sf.net"
arch="all"
license="GPL"
depends="openssl"
install="vde2.pre-install"
makedepends="openssl-dev libpcap-dev python"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="http://downloads.sourceforge.net/project/vde/vde2/$pkgver/vde2-$pkgver.tar.gz
vde2.pre-up
vde2.post-down
"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
|| return 1
make -C src/common || return 1
make -j1 -C src/lib || return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la \
"$pkgdir"/usr/lib/vde2/*.la \
"$pkgdir"/usr/lib/vde2/*/*.la \
|| return 1
install -Dm755 "$srcdir"/vde2.pre-up \
"$pkgdir"/etc/network/if-pre-up.d/vde2 || return 1
install -Dm755 "$srcdir"/vde2.post-down \
"$pkgdir"/etc/network/if-post-down.d/vde2 || return 1
}
libs() {
pkgdesc="Virtual Distributed Ethernet libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/
}
md5sums="d3f3e979558e396b8405c4613df9dfa0 vde2-2.3.2.tar.gz
e484324d93baf668d7ec756f36ebf389 vde2.pre-up
d9a32a3e77e64a265e00df5ab1081672 vde2.post-down"
|