diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-31 14:44:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-31 14:44:55 +0000 |
commit | 79851f369df72a93ef0d3b10d8ce700d7da30672 (patch) | |
tree | 291376702650c2ce84d6cff800a34b927a553635 /main/vde2/APKBUILD | |
parent | 2e9a487aa9364b646a2dcad16e006a2e3ada0e79 (diff) | |
download | aports-79851f369df72a93ef0d3b10d8ce700d7da30672.tar.bz2 aports-79851f369df72a93ef0d3b10d8ce700d7da30672.tar.xz |
main/vde2: moved from testing
Diffstat (limited to 'main/vde2/APKBUILD')
-rw-r--r-- | main/vde2/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/vde2/APKBUILD b/main/vde2/APKBUILD new file mode 100644 index 0000000000..b4bf5bd0d8 --- /dev/null +++ b/main/vde2/APKBUILD @@ -0,0 +1,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" |