sys-cluster/util-vserver: Version bump. Fixes bug 541750.
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 24 Aug 2015 12:26:09 +0000 (12:26 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 24 Aug 2015 12:28:14 +0000 (12:28 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
sys-cluster/util-vserver/Manifest
sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild [new file with mode: 0644]

index 38bea46439430d15fa41f3a45473d466cad963db..d77ee10a47bfb072a635f2244ddc90a28579ac28 100644 (file)
@@ -1,2 +1,3 @@
 DIST util-vserver-0.30.216-pre3025.tar.bz2 760763 SHA256 6b6df2e96105361e7ede644d522e1cee60fd71ef72715b82e40a4a93ce7ea949 SHA512 5d799a19c8c78b7c2222e0d17490010d065e02e2a49020fb4766a98fb85a59d889881d231a279012935ff3d108706edf71c1e8736390cb9a7ce9af969a716a56 WHIRLPOOL 06e30603ead7d6835b3f70fb2491698619d82b898980529e9190818df76a4a2575f28fc82bc18cda67def2ae43c0e8c4b8038b10f37caf29f41fd029cce8124c
 DIST util-vserver-0.30.216-pre3062.tar.bz2 768055 SHA256 efecefa1dbe6abba85c23822916aa67f2a740c66dfd6559f8a2d0afc2fcfb671 SHA512 1002a5d8f0d622445df73908f5f2ef5fab8424ff7134cd58b30680c03eddaacdebda47520c833434dfa6d3750cee79ac03ae9ee1b7f17a305b7ab2672d4f84d3 WHIRLPOOL 28c01f99e7dde6c4f47c23e51e83ea115665fd7ee523b873f12c325bdababea812d7053529c5fe361c1fdd4c726c41ab8ab058cb30bcda5eea29503a160b0b9c
+DIST util-vserver-0.30.216-pre3120.tar.gz 990833 SHA256 00df201b3f103a9f5663734b5931abe2e575ff1dabeb7c8035c1ba21c7f4b6d2 SHA512 eca7680a8b06fecd678b4dad5824c92b53d872b3e7ec9cc275425437fb7fcfb3991f58770096f20d8274e37927a39b64ed9db082ef806e76d0c603b2cd64ef32 WHIRLPOOL 4f2191a339786d2d911a3bf31051972c993f95621824d7dfc11d30755070bfab3da2eb4d85ac80139e022c44aaf2313fe0042991a91ae828b12217cadfd6a331
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
new file mode 100644 (file)
index 0000000..84f7ca5
--- /dev/null
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils bash-completion-r1
+
+MY_P=${P/_/-}
+S="${WORKDIR}"/${MY_P}
+
+DESCRIPTION="Linux-VServer admin utilities"
+HOMEPAGE="http://www.nongnu.org/util-vserver/"
+SRC_URI="http://people.linux-vserver.org/~dhozac/t/uv-testing/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~sparc ~x86"
+
+IUSE=""
+
+CDEPEND="dev-libs/beecrypt
+       net-firewall/iptables
+       net-misc/vconfig
+       sys-apps/iproute2
+       sys-apps/coreutils"
+
+DEPEND=">dev-libs/dietlibc-0.33
+       ${CDEPEND}"
+
+RDEPEND="${CDEPEND}"
+
+pkg_setup() {
+       if [[ -z "${VDIRBASE}" ]]; then
+               einfo
+               einfo "You can change the default vserver base directory (/vservers)"
+               einfo "by setting the VDIRBASE environment variable."
+       fi
+
+       : ${VDIRBASE:=/vservers}
+
+       einfo
+       einfo "Using \"${VDIRBASE}\" as vserver base directory"
+       einfo
+}
+
+src_test() {
+       # do not use $D from portage by accident (#297982)
+       sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh
+       default
+}
+
+src_configure() {
+       econf --with-vrootdir=${VDIRBASE} \
+               --with-initscripts=gentoo \
+               --localstatedir=/var
+}
+
+src_compile() {
+       emake -j1 || die "emake failed!"
+}
+
+src_install() {
+       make DESTDIR="${D}" install install-distribution \
+               || die "make install failed!"
+
+       # keep dirs
+       keepdir /var/cache/vservers
+       keepdir "${VDIRBASE}"
+       keepdir "${VDIRBASE}"/.pkg
+
+       # bash-completion
+       newbashcomp "${FILESDIR}"/bash_completion ${PN}
+
+       dodoc README ChangeLog NEWS AUTHORS THANKS util-vserver.spec
+}
+
+pkg_postinst() {
+       # Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also
+       # present when merging.
+
+       mkdir -p "${VDIRBASE}"
+       setattr --barrier "${VDIRBASE}"
+
+       rm /etc/vservers/.defaults/vdirbase
+       ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase
+
+       elog
+       elog "You have to run the vprocunhide command after every reboot"
+       elog "in order to setup /proc permissions correctly for vserver"
+       elog "use. An init script has been installed by this package."
+       elog "To use it you should add it to a runlevel:"
+       elog
+       elog " rc-update add vprocunhide default"
+       elog
+}