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 + } +}