diff --git a/srcpkgs/linux-user-chroot/INSTALL b/srcpkgs/linux-user-chroot/INSTALL new file mode 100644 index 0000000000..37c9c48366 --- /dev/null +++ b/srcpkgs/linux-user-chroot/INSTALL @@ -0,0 +1,7 @@ +case ${ACTION} in +post) + # Restrict access to users in wheel group. + chown root:wheel usr/bin/linux-user-chroot + chmod 4750 usr/bin/linux-user-chroot + ;; +esac diff --git a/srcpkgs/linux-user-chroot/linux-user-chroot.rshlibs b/srcpkgs/linux-user-chroot/linux-user-chroot.rshlibs new file mode 100644 index 0000000000..631aa1dda4 --- /dev/null +++ b/srcpkgs/linux-user-chroot/linux-user-chroot.rshlibs @@ -0,0 +1 @@ +libc.so.6 diff --git a/srcpkgs/linux-user-chroot/template b/srcpkgs/linux-user-chroot/template new file mode 100644 index 0000000000..1945d2d4c8 --- /dev/null +++ b/srcpkgs/linux-user-chroot/template @@ -0,0 +1,29 @@ +# Template file for 'linux-user-chroot' +pkgname=linux-user-chroot +version=v2012.2 +revision=1 +build_style=gnu-configure +makedepends="git automake" +short_desc="Setuid helper for making bind mounts and chrooting" +maintainer="Juan RP " +homepage="http://git.gnome.org/browse/linux-user-chroot/" +license="GPL-2" +long_desc=" + This tool allows regular (non-root) users to call chroot(2), create + Linux bind mounts, and use some Linux container features. It's + primarily intended for use by build systems. + + NOTE: Only users in the wheel group can use this tool." + +nofetch=yes +noextract=yes + +do_fetch() { + local url="git://git.gnome.org/linux-user-chroot" + msg_normal "Fetching source from $url ...\n" + git clone -b${version} ${url} ${pkgname}-${version} +} + +pre_configure() { + ./autogen.sh +}