From 7322d614f3763577f309d4bc98f6f92eacfcdc20 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 Aug 2013 16:35:09 +0200 Subject: [PATCH] New package: containers-1.0. --- srcpkgs/containers/template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/containers/template diff --git a/srcpkgs/containers/template b/srcpkgs/containers/template new file mode 100644 index 00000000000..05d5df7e6e8 --- /dev/null +++ b/srcpkgs/containers/template @@ -0,0 +1,34 @@ +# Template file for 'containers' +pkgname=containers +version=1.0 +revision=1 +short_desc="Lightweight containers using Linux user namespaces" +maintainer="Juan RP " +license="MIT" +homepage="https://github.com/arachsys/containers" +long_desc=" + This package is a simple implementation of containers for Linux, making + secure containers as easy to create and use as a traditional chroot. It + comprises three utilities, contain, inject and pseudo, which use the kernel + support for user namespaces merged in Linux 3.8." + +do_fetch() { + git clone -b ${pkgname}-${version} \ + git://github.com/arachsys/containers.git ${pkgname}-${version} +} + +do_build() { + make CC=$CC CFLAGS="${CFLAGS}" ${makejobs} +} + +do_install() { + # Disable strip + sed -e 's,-s ,,g' -i Makefile + make BINDIR=/usr/bin DESTDIR=${DESTDIR} install +} + +containers_package() { + pkg_install() { + vmove all + } +}