summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild')
-rw-r--r--sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild26
1 files changed, 8 insertions, 18 deletions
diff --git a/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild b/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild
index 91d98f1..2fed17c 100644
--- a/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild
+++ b/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild
@@ -60,6 +60,7 @@ src_compile() {
src_install() {
make DESTDIR="${D}" install || die "install failed"
+ make DESTDIR="${D}" install-distribution || die "install-distribution failed"
# keep dirs
keepdir /var/run/vservers
@@ -67,19 +68,20 @@ src_install() {
keepdir /var/run/vshelper
keepdir /var/lock/vservers
keepdir /var/cache/vservers
-
keepdir "${VDIRBASE}"
- fperms 000 "${VDIRBASE}"
+
+ # remove legacy config file
+ rm -f "${D}"/etc/vservers.conf
# remove the non-gentoo init-scripts:
rm -f "${D}"/etc/init.d/*
# and install gentoo'ized ones:
- doinitd "${FILESDIR}"/init.d/vservers
- doconfd "${FILESDIR}"/conf.d/vservers
+ doinitd "${FILESDIR}"/init.d/vservers.default
+ doinitd "${FILESDIR}"/init.d/vprocunhide
# bash-completion
-# dobashcompletion contrib/bash_completion util-vserver
+ dobashcompletion "${FILESDIR}"/bash_completion util-vserver
dodoc README ChangeLog NEWS AUTHORS THANKS util-vserver.spec
}
@@ -91,23 +93,11 @@ pkg_postinst() {
einfo "use. An init script has been installed by this package."
einfo "To use it you should add it to a runlevel:"
einfo
- einfo " rc-update add vservers default"
- einfo
- einfo "This init script will also help you to start/stop your vservers"
- einfo "on reboot. See ${ROOT}etc/conf.d/vserver for details"
+ einfo " rc-update add vprocunhide default"
ewarn
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
- ewarn "IMPORTANT UPGRADE WARNING:"
- ewarn
- ewarn "Since 0.30.208-r3 the vprocunhide init-script has been merged"
- ewarn "with the vservers init script. The following steps are"
- ewarn "required to keep current behaviour:"
- ewarn
- ewarn " rc-update del vprocunhide"
- ewarn " rc-update add vservers default"
- ewarn
}