summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/lxc/APKBUILD42
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"