commit: 408012783015e8a9793ece0906b30d6c2a36eb8d Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> AuthorDate: Thu Aug 11 22:33:53 2016 +0000 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> CommitDate: Thu Aug 11 22:33:53 2016 +0000 URL: https://gitweb.gentoo.org/dev/bircoph.git/commit/?id=40801278
sys-apps/userchroot: updates and fixes - use secure permissions on suid binary - GLEP 67 update - EAPI 6 update - respect $LDFLAGS sys-apps/userchroot/metadata.xml | 6 +++--- sys-apps/userchroot/userchroot-0.1-r1.ebuild | 23 ++++++++++++++++++++++ sys-apps/userchroot/userchroot-0.1.ebuild | 29 ---------------------------- 3 files changed, 26 insertions(+), 32 deletions(-) diff --git a/sys-apps/userchroot/metadata.xml b/sys-apps/userchroot/metadata.xml index 38b86b8..65062b5 100644 --- a/sys-apps/userchroot/metadata.xml +++ b/sys-apps/userchroot/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer> - <email>[email protected]</email> - <name>Andrew Savchenko</name> +<maintainer type="person"> + <email>[email protected]</email> + <name>Andrew Savchenko</name> </maintainer> </pkgmetadata> diff --git a/sys-apps/userchroot/userchroot-0.1-r1.ebuild b/sys-apps/userchroot/userchroot-0.1-r1.ebuild new file mode 100644 index 0000000..6073fb0 --- /dev/null +++ b/sys-apps/userchroot/userchroot-0.1-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="Safe chroot from userspace" +HOMEPAGE="http://koltsoff.com/pub/userchroot/" +SRC_URI="http://koltsoff.com/pub/userchroot/releases/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_compile() { + $(tc-getCC) ${CFLAGS} ${LDFLAGS} userchroot.c -o userchroot || die "compilation failed" +} + +src_install() { + dobin userchroot + fperms 4711 /usr/bin/userchroot + dodoc -r CHANGELOG html +} diff --git a/sys-apps/userchroot/userchroot-0.1.ebuild b/sys-apps/userchroot/userchroot-0.1.ebuild deleted file mode 100644 index 75b1446..0000000 --- a/sys-apps/userchroot/userchroot-0.1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -inherit toolchain-funcs - -DESCRIPTION="Safe chroot from userspace" -HOMEPAGE="http://koltsoff.com/pub/userchroot/" -SRC_URI="http://koltsoff.com/pub/userchroot/releases/${P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="" - -DEPEND="" -RDEPEND="" - -src_compile() { - echo $(tc-getCC) ${CFLAGS} userchroot.c -o userchroot - $(tc-getCC) ${CFLAGS} userchroot.c -o userchroot || die "compilation failed" -} - -src_install() { - exeinto /usr/bin/ - doexe userchroot - fperms 4755 /usr/bin/userchroot - dodoc CHANGELOG html/index.xhtml -}
