blob: b4bf5bd0d8c246690740d24ff00f8f526063ea93 (
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
|
# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
pkgname=vde2
pkgver=2.3.1
pkgrel=3
pkgdesc="VDE: Virtual Distributed Ethernet. User mode networking for QEMU, UML, etc."
url="http://vde.sf.net"
arch="all"
license="GPL"
depends="openssl"
makedepends="openssl-dev libpcap-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="http://downloads.sourceforge.net/project/vde/vde2/2.3.1/vde2-2.3.1.tar.gz
vde.initd
vde.confd
"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make 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"/vde.initd "$pkgdir"/etc/init.d/vde || return 1
install -Dm644 "$srcdir"/vde.confd "$pkgdir"/etc/conf.d/vde || return 1
}
libs() {
pkgdesc="Virtual Distributed Ethernet libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/
}
md5sums="c8c2acb92a72f779e0b484b1543a1cc3 vde2-2.3.1.tar.gz
21c1b8e841978461aa5c87b3f8abf01d vde.initd
318c787df292690c4da5b6ed83dc1893 vde.confd"
|