diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-02-25 13:42:48 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-02-25 13:42:48 -0600 |
commit | 0feee02f95ced07bd1379470d79e0713fdafcab1 (patch) | |
tree | 8e8d0ff5108efba272cd9fffc1b712eb59124790 | |
parent | 4015cb6b43fbf92e20c6f9bace9713f8c11241ac (diff) | |
download | aports-0feee02f95ced07bd1379470d79e0713fdafcab1.tar.bz2 aports-0feee02f95ced07bd1379470d79e0713fdafcab1.tar.xz |
testing/lxc: new aport (rough around the edges)
-rw-r--r-- | testing/lxc/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/lxc/APKBUILD b/testing/lxc/APKBUILD new file mode 100644 index 000000000..7087cdf2e --- /dev/null +++ b/testing/lxc/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=lxc +_mypkgver=0.7.4-rc1 +pkgver=0.7.4_rc1 +pkgrel=0 +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-0.7.4-rc1.tar.gz" + +_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 +} + +md5sums="d42937fd7f5e54a8ab04d483e17af2db lxc-0.7.4-rc1.tar.gz" |