diff options
author | 2007-08-23 19:34:05 +0000 | |
---|---|---|
committer | 2007-08-23 19:34:05 +0000 | |
commit | 6a75a8c95d8d382270a568a0f117987d47d81844 (patch) | |
tree | ca07f2ea17a67b1acce344b08a7ec31f4f65cde4 | |
parent | Remove Manifest1 from this repository. (diff) | |
download | overlay-6a75a8c95d8d382270a568a0f117987d47d81844.tar.gz overlay-6a75a8c95d8d382270a568a0f117987d47d81844.tar.bz2 overlay-6a75a8c95d8d382270a568a0f117987d47d81844.zip |
ebuild for the lastest prerelease of util-vserver.
svn path=/; revision=123
-rw-r--r-- | sys-cluster/util-vserver/Manifest | 8 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild | 133 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest new file mode 100644 index 0000000..6d99386 --- /dev/null +++ b/sys-cluster/util-vserver/Manifest @@ -0,0 +1,8 @@ +DIST util-vserver-0.30.214-pre2581.tar.bz2 671751 RMD160 7ca4e020c54fd7a06cc6bb4133445f73a0863b14 SHA1 f9a45cf2230fe4d0df1f4255c36625c0b51cb267 SHA256 b618a5c70404beaadcec7218bfa0fcf47f31f7adfd52fa7fc2c2244bac5b2350 +EBUILD util-vserver-0.30.214_pre2581.ebuild 3697 RMD160 c0e39d7d94d44184e3174a06713d55a1082b771d SHA1 5f6b8e15ebec1ed1d3f21673af241f8325f77a72 SHA256 4ce17b15b35d6886f379cf1ffe872aee01ff330811dcf2315915265d30a2cd8b +MD5 83f854d3987bc42de0d3376912462f21 util-vserver-0.30.214_pre2581.ebuild 3697 +RMD160 c0e39d7d94d44184e3174a06713d55a1082b771d util-vserver-0.30.214_pre2581.ebuild 3697 +SHA256 4ce17b15b35d6886f379cf1ffe872aee01ff330811dcf2315915265d30a2cd8b util-vserver-0.30.214_pre2581.ebuild 3697 +MD5 cee78a919da4ac466fff71c441114c78 files/digest-util-vserver-0.30.214_pre2581 292 +RMD160 fd6b4cd9de2a0e4c877a14f9caecec229af4aed5 files/digest-util-vserver-0.30.214_pre2581 292 +SHA256 2b4815904a8a31c7d8d62f4af9a73565f0876a09c2277ab70d85b2790ab22817 files/digest-util-vserver-0.30.214_pre2581 292 diff --git a/sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild new file mode 100644 index 0000000..738cfaa --- /dev/null +++ b/sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +WANT_AUTOMAKE="1.9" + +inherit autotools eutils bash-completion + +DESCRIPTION="Linux-VServer admin utilities" +HOMEPAGE="http://www.nongnu.org/util-vserver/" +SRC_URI="http://ftp.linux-vserver.org/pub/utils/${PN}/${P/_pre/-pre}.tar.bz2 + http://people.linux-vserver.org/~dhozac/t/uv-testing/${P/_pre/-pre}.tar.bz2" + +S="${WORKDIR}/${P/_pre/-pre}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" + +IUSE="" + +DEPEND=">=dev-libs/dietlibc-0.30-r2 + dev-libs/beecrypt + net-firewall/iptables + net-misc/vconfig + sys-apps/iproute2" + +RDEPEND="sys-apps/iproute2 + net-misc/vconfig + net-firewall/iptables + dev-libs/beecrypt" + +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_unpack() { + unpack ${A} + cd "${S}" +} + +src_compile() { + econf --with-vrootdir=${VDIRBASE} \ + --with-initscripts=gentoo \ + --localstatedir=/var || die "econf failed!" + emake || die "emake failed!" +} + +src_install() { + make DESTDIR="${D}" install install-distribution \ + || die "make install failed!" + + # keep dirs + keepdir /var/run/vservers + keepdir /var/run/vservers.rev + keepdir /var/run/vshelper + keepdir /var/lock/vservers + keepdir /var/cache/vservers + keepdir "${VDIRBASE}" + keepdir "${VDIRBASE}"/.pkg + + # remove legacy config file + rm -f "${D}"/etc/vservers.conf + + # bash-completion + dobashcompletion "${FILESDIR}"/bash_completion util-vserver + + 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. + + [ ! -d "${VDIRBASE}" ] && mkdir -p "${VDIRBASE}" &> /dev/null + setattr --barrier "${VDIRBASE}" &> /dev/null + + 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 + + if has_version "<${CATEGORY}/${PN}-0.30.211" ; then + ewarn "Please make sure, that you remove the old init-script from any" + ewarn "runlevel and remove it from your init.d dir!" + ewarn + ewarn "# rc-update del vservers" + ewarn "# rm -f ${ROOT}etc/init.d/vservers" + ewarn + ewarn "Since util-vserver-0.30.211 all Gentoo specific wrappers" + ewarn "have been merged upstream, and may now have a slightly" + ewarn "different syntax, i.e. you have to update scripts that" + ewarn "depend on these wrappers (vesync, vemerge, vupdateworld" + ewarn "and vdispatch-conf)" + ewarn + ewarn "Additionally the init scripts have changed and now use" + ewarn "upstream scripts as backend. An init script to start" + ewarn "virtual servers in the 'default' group/mark has been" + ewarn "installed by this ebuild:" + ewarn + ewarn " rc-update add vservers.default default" + ewarn + ewarn "To start vservers in other groups/marks, you have to" + ewarn "symlink the default init script the same way you do" + ewarn "with net.* scripts:" + ewarn + ewarn " ln -s /etc/init.d/vservers.default /etc/init.d/vservers.<mark>" + ewarn + fi + + ewarn "You should definitly fix up the barrier of your vserver" + ewarn "base directory by using the following command in a root shell:" + ewarn + ewarn " setattr --barrier ${VDIRBASE}" + ewarn +} |