diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-08-16 11:26:52 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2011-08-16 11:26:52 +0000 |
commit | 1fb30d930d4f7069c0b7b73dd9895c036e8d0f56 (patch) | |
tree | 51ddcc9e8edbc824ac3b40c0c866a6af878e655b /main/lxc/APKBUILD | |
parent | 6f18af728d40558a2744a05ad438686b921ea7a6 (diff) | |
download | aports-1fb30d930d4f7069c0b7b73dd9895c036e8d0f56.tar.bz2 aports-1fb30d930d4f7069c0b7b73dd9895c036e8d0f56.tar.xz |
testing/lxc: move to main
Diffstat (limited to 'main/lxc/APKBUILD')
-rw-r--r-- | main/lxc/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD new file mode 100644 index 0000000000..10f55deebc --- /dev/null +++ b/main/lxc/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=lxc +pkgver=0.7.4 +_mypkgver=${pkgver/_rc/-rc} +pkgrel=3 +pkgdesc="linux containers - tools" +url="http://lxc.sourceforge.net/" +arch="all" +license="GPL" +depends= +depends_dev="libcap-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://lxc.sourceforge.net/download/lxc/$pkgname-$_mypkgver.tar.gz + lxc.initd + setup-lxc-template + setup-lxc-guest + " + +_builddir="${srcdir}/${pkgname}-${_mypkgver}" +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -Dm755 "$srcdir"/lxc.initd "$pkgdir"/etc/init.d/lxc + install -Dm755 "$srcdir"/setup-lxc-template "$pkgdir"/usr/bin/setup-lxc-template + install -Dm755 "$srcdir"/setup-lxc-guest "$pkgdir"/usr/bin/setup-lxc-guest +} + +md5sums="51bb5d7d9d22e2c98490aed47fc02ad9 lxc-0.7.4.tar.gz +e66c3cf8e70168b07060746a4e65b671 lxc.initd +45d0f604310e58a1359f1745a4739843 setup-lxc-template +c3f7fd7e85d40c4a4b1b427048ff9652 setup-lxc-guest" |