diff options
Diffstat (limited to 'sys-cluster/util-vserver')
-rw-r--r-- | sys-cluster/util-vserver/Manifest | 1 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild | 107 |
2 files changed, 108 insertions, 0 deletions
diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest index c5ddec8f02df..5652f5261e83 100644 --- a/sys-cluster/util-vserver/Manifest +++ b/sys-cluster/util-vserver/Manifest @@ -1,5 +1,6 @@ AUX bash_completion 7568 SHA256 2232166a5aed9857a7a5c30adfdd4ea944e0608a29fad05f229b8cef2d61795d SHA512 b9e5745775121107da14540103bbf4943692a514cf3cd69b71c999a5e0eb1c81253b6ac4ca635cdb6e64cd1f1c1204dfecd4a6f83cbe7d5448625c53f80ed3bb WHIRLPOOL a17cc603408cf178c0d8299e6f36133715f6ec6c5a21c7440dca49338dde2280d24bb26852a21326ab2b62ac787ed84d06d0baf3097c0188f2448fbf055e79ab DIST util-vserver-0.30.216-pre3120.tar.gz 990833 SHA256 00df201b3f103a9f5663734b5931abe2e575ff1dabeb7c8035c1ba21c7f4b6d2 SHA512 eca7680a8b06fecd678b4dad5824c92b53d872b3e7ec9cc275425437fb7fcfb3991f58770096f20d8274e37927a39b64ed9db082ef806e76d0c603b2cd64ef32 WHIRLPOOL 4f2191a339786d2d911a3bf31051972c993f95621824d7dfc11d30755070bfab3da2eb4d85ac80139e022c44aaf2313fe0042991a91ae828b12217cadfd6a331 +EBUILD util-vserver-0.30.216_pre3120-r1.ebuild 2587 SHA256 ac5b2cfea43b05492a2ef64a1f55de5e915730191903b4b93c1aa9d07efa3392 SHA512 50ca8ce43ebd0b107f5b164c16b8cdb4aba3fdc445ef33f3f5a2d20f7bb2a8aa7d58e688e7fac8950377c77e28ea3cb16cdb3a695402129863dcc707b8839e66 WHIRLPOOL 57158ccd3e125deb8ed68b3a534c204eaa7ddd4d0c07fc9e414fb02a75a1daaf740f02ea4a24b72af1b93b7c866220a69673d13f001441f263f763a9299dd55f EBUILD util-vserver-0.30.216_pre3120.ebuild 2636 SHA256 c7bc346985fe12ba62c38ce1f943cb8cbacc2f6dcfb1c5d0f5c2d51cc972bfd5 SHA512 7a2be4456a29ee7abb0b0b612624c5e642f50789cf430edea9146e412e6b14324de90c2cc52c44a0313b9365017876910f545e9db8cb87647b3328684d04ff0e WHIRLPOOL 283291d3fba9436f0e295ac4f89b17c48d09187294ac11101baae0261efbc30edfec84d22791553377d17dc1999809338a65ca0f871d05063bcd959b5b265aed MISC ChangeLog 4101 SHA256 8dfd2b9b8d315e05fd9fbd212fed5b288d0707a25e89f732f5b196f37e145abe SHA512 74f863d4dde2c5b6bc7b3780a31d968d120b0e0aa9ea40da4cacd6fd6160f0c0ade506738392c3f6d78e47ebb25f27ea2cf4f8073560064454d06903cd5e3d53 WHIRLPOOL 289a430351b6ce292b9a2980cc8e72e8953c21897a44f31c9ed9741305e99d501e2f5aacc161c1cb554043e7805dbb6f9c949348c4b70bf812753f7c29c0a9d8 MISC ChangeLog-2015 24548 SHA256 93b43b7f26553db1247ac1f183304e27436a238f858bce9e79117f76299c130a SHA512 d238343c79442c0a909e7256af1e19e00bdfae43b85feae3426e5fc2792963604ac3eaed155ccc9ddc22259075cbb7a97157a99370a931467642749d8e1c3d57 WHIRLPOOL 12befea47c8f7ab9478de392728fc57c6720d3eee55a0aad7ff6ba4e45277bf842a7bb48e584bf739d5106ec4533e85ff89149cfca92a939cadf20e1142f61ae diff --git a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild new file mode 100644 index 000000000000..8a12d097f1f5 --- /dev/null +++ b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils bash-completion-r1 + +MY_P="${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" + +CDEPEND=" + net-misc/vconfig + dev-libs/beecrypt + sys-apps/iproute2 + net-firewall/iptables" + +DEPEND=" + ${CDEPEND} + >dev-libs/dietlibc-0.33" + +RDEPEND=" + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" + +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 || die + + default +} + +src_configure() { + local myeconf=( + --with-vrootdir="${VDIRBASE}" + --with-initscripts=gentoo + --localstatedir=/var + ) + + econf "${myeconf[@]}" +} + +src_compile() { + emake -j1 +} + +src_install() { + make DESTDIR="${D}" install install-distribution || die + + # 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}" || die + if ! setattr --barrier "${VDIRBASE}"; then + ewarn "Filesystem on ${VDIRBASE} does not support chroot barriers." + ewarn "Chroot barrier is additional security measure that is used" + ewarn "when two vservers or the host system share the same filesystem." + ewarn "If you intend to use separate filesystem for every vserver" + ewarn "you can safely ignore this warning." + ewarn "To manually apply a barrier use: setattr --barrier ${VDIRBASE}" + ewarn "For details see: http://linux-vserver.org/Secure_chroot_Barrier" + fi + + rm /etc/vservers/.defaults/vdirbase || die + ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase || die + + 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 +} |