diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2005-03-30 11:43:40 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2005-03-30 11:43:40 +0000 |
commit | 9292ef2644bde5328296ea232a453f58a21624af (patch) | |
tree | 8a359efb93c07cea4f526bf173cc7b704d310fc8 /sys-cluster | |
parent | dvdstyler now generates desktop file using make_desktop_entry, fixes #82209 (diff) | |
download | historical-9292ef2644bde5328296ea232a453f58a21624af.tar.gz historical-9292ef2644bde5328296ea232a453f58a21624af.tar.bz2 historical-9292ef2644bde5328296ea232a453f58a21624af.zip |
bump to 0.30.205; 196 to stable; clean up of files/
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/util-vserver/ChangeLog | 11 | ||||
-rw-r--r-- | sys-cluster/util-vserver/Manifest | 24 | ||||
-rwxr-xr-x | sys-cluster/util-vserver/files/0.30.196/vservers.initd | 80 | ||||
-rw-r--r-- | sys-cluster/util-vserver/files/digest-util-vserver-0.30 | 1 | ||||
-rw-r--r-- | sys-cluster/util-vserver/files/digest-util-vserver-0.30.205 | 1 | ||||
-rw-r--r-- | sys-cluster/util-vserver/files/rebootmgr.initd | 44 | ||||
-rw-r--r-- | sys-cluster/util-vserver/files/vservers.confd (renamed from sys-cluster/util-vserver/files/0.30.196/vservers.confd) | 2 | ||||
-rw-r--r-- | sys-cluster/util-vserver/files/vservers.initd | 161 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.196.ebuild | 8 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.204.ebuild | 6 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.205.ebuild | 50 | ||||
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.ebuild | 48 |
12 files changed, 145 insertions, 291 deletions
diff --git a/sys-cluster/util-vserver/ChangeLog b/sys-cluster/util-vserver/ChangeLog index 04d5fe2fe45c..9a284711340e 100644 --- a/sys-cluster/util-vserver/ChangeLog +++ b/sys-cluster/util-vserver/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-cluster/util-vserver # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/ChangeLog,v 1.16 2005/02/26 09:36:09 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/ChangeLog,v 1.17 2005/03/30 11:43:40 hollow Exp $ + +*util-vserver-0.30.205 (30 Mar 2005) + + 30 Mar 2005; Benedikt Boehm <hollow@gentoo.org> + -files/0.30.196/vservers.confd, -files/0.30.196/vservers.initd, + -files/rebootmgr.initd, +files/vservers.confd, files/vservers.initd, + -util-vserver-0.30.ebuild, util-vserver-0.30.196.ebuild, + util-vserver-0.30.204.ebuild, +util-vserver-0.30.205.ebuild: + bump to 0.30.205; 196 to stable; clean up of files/ 26 Feb 2005; Benedikt Boehm <hollow@gentoo.org> util-vserver-0.30.196.ebuild, util-vserver-0.30.204.ebuild: diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest index cd833aabed76..cb4bd93bb028 100644 --- a/sys-cluster/util-vserver/Manifest +++ b/sys-cluster/util-vserver/Manifest @@ -1,22 +1,20 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +MD5 a11aff37eda36944e77cffd07dbfccc0 ChangeLog 2992 MD5 3d4dfb4356f56ee83e0f426163e3b6cf metadata.xml 231 -MD5 dbe201b5ec46840245d6619ac7e45169 util-vserver-0.30.196.ebuild 1287 -MD5 db4295d67ea5ff66ec872fa3563f146c util-vserver-0.30.ebuild 1337 -MD5 015c7fb488066be8e8c455c04e3d3cab ChangeLog 2590 -MD5 a1a9e13af641a47932b01d461ed69e79 util-vserver-0.30.204.ebuild 1303 -MD5 3fb961ce171c0f04c695c76f698daa94 files/rebootmgr.initd 966 -MD5 1cb2a7908a23ba002862f1885b136418 files/vservers.initd 2501 +MD5 3d6eec0e3d10c7a6e4a95e448c03a06e util-vserver-0.30.196.ebuild 1268 +MD5 5eb10d9678fd96a1f56d1eb157b3994a util-vserver-0.30.204.ebuild 1285 +MD5 5460093cd5050c0938518baa9a56cb55 util-vserver-0.30.205.ebuild 1284 +MD5 8de53dd957127f3ba125f733c1b7389b files/vservers.initd 1792 +MD5 3d9c604f30a2de02a9fc6e99b4b9aefd files/vservers.confd 1738 MD5 0f34731a7d8119fc5e3f9322bf727521 files/digest-util-vserver-0.30.196 74 MD5 12cd58b1dedc5d8f583cf66aad57ac51 files/digest-util-vserver-0.30.204 74 -MD5 de373141d8d3eeffd74dccdd3b7e7196 files/digest-util-vserver-0.30 70 -MD5 66971fa3fa642d19be1c62478da47f52 files/0.30.196/vservers.confd 1747 -MD5 2763c7662087d1abeefacbdd25c1c4ad files/0.30.196/vservers.initd 1801 +MD5 4bd7088cb72bd60e8ed7b7e562f3ea95 files/digest-util-vserver-0.30.205 74 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) +Version: GnuPG v1.4.1 (GNU/Linux) -iD8DBQFCIEPDmPFBzbX68WERAhAQAJ9zHFxUxITyJNrtDKS6LW9bycCILACghd1Y -QvW3f/Q4Bdy/jUeIhe/1bCM= -=uxhZ +iD8DBQFCSpFlmPFBzbX68WERAjO2AKCB1nn18W7Ne28Z9Dwu07vs0HVReACghALZ +pD97Gy2HJI9eKrmO4nT/T6U= +=XI2D -----END PGP SIGNATURE----- diff --git a/sys-cluster/util-vserver/files/0.30.196/vservers.initd b/sys-cluster/util-vserver/files/0.30.196/vservers.initd deleted file mode 100755 index 6519083cea51..000000000000 --- a/sys-cluster/util-vserver/files/0.30.196/vservers.initd +++ /dev/null @@ -1,80 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/files/0.30.196/vservers.initd,v 1.2 2005/02/25 07:23:00 hollow Exp $ - -opts="${opts} vstatus" - -checkconfig() { - : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} - if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then - eerror "Cannot find util-vserver installation" - eerror "(the file '$UTIL_VSERVER_VARS' would be expected)" - exit 1 - fi - . ${UTIL_VSERVER_VARS} - - : ${MARKS:=default} - : ${NUMPARALLEL:=1} - : ${LOCKDIR:=/var/lock/vservers} -} - -start() { - checkconfig - - if [[ -n ${UNHIDEPROC} ]]; then - ebegin "Unhiding /proc entries" - ${_VPROCUNHIDE} - eend $? - fi - - if [[ -n ${STARTALL} ]]; then - ebegin "Starting all vservers" - ${_START_VSERVERS} -j ${NUMPARALLEL} --all --start - local rc=$? - [[ $rc -eq 0 ]] && touch ${LOCKDIR}/all - eend $rc - else - for MARK in ${MARKS}; do - ebegin "Starting vservers of type '${MARK}'" - ${_START_VSERVERS} -m ${MARK} -j ${NUMPARALLEL} --all --start - local rc=$? - [[ $rc -eq 0 ]] && touch ${LOCKDIR}/${MARK} - eend $rc - done - fi -} - -stop() { - checkconfig - - if [[ -n ${STOPALL} ]]; then - ebegin "Stopping all vservers" - ${_START_VSERVERS} -j ${NUMPARALLEL} --all --stop - local rc=$? - rm -f ${LOCKDIR}/all - eend $rc - else - for MARK in ${MARKS}; do - ebegin "Stopping vservers of type '${MARK}'" - ${_START_VSERVERS} -m ${MARK} -j ${NUMPARALLEL} --all --stop - local rc=$? - rm ${LOCKDIR}/${MARK} - eend $rc - done - fi - -} - -vstatus() { - checkconfig - einfo "${LOCKDIR} shows the follwing types of vservers running:" - for i in ${LOCKDIR}/*; do - einfo " ${i}" - local running="true" - done - - if [[ "${running}" != "true" ]]; then - einfo " none" - fi -} diff --git a/sys-cluster/util-vserver/files/digest-util-vserver-0.30 b/sys-cluster/util-vserver/files/digest-util-vserver-0.30 deleted file mode 100644 index 3a67efc162ec..000000000000 --- a/sys-cluster/util-vserver/files/digest-util-vserver-0.30 +++ /dev/null @@ -1 +0,0 @@ -MD5 c88994e7c22eca1a6a4b14aadca54738 util-vserver-0.30.tar.bz2 212911 diff --git a/sys-cluster/util-vserver/files/digest-util-vserver-0.30.205 b/sys-cluster/util-vserver/files/digest-util-vserver-0.30.205 new file mode 100644 index 000000000000..67554560bf5b --- /dev/null +++ b/sys-cluster/util-vserver/files/digest-util-vserver-0.30.205 @@ -0,0 +1 @@ +MD5 9d509327744fd5dfa84faa68531853c3 util-vserver-0.30.205.tar.bz2 556725 diff --git a/sys-cluster/util-vserver/files/rebootmgr.initd b/sys-cluster/util-vserver/files/rebootmgr.initd deleted file mode 100644 index 5d2375b4e934..000000000000 --- a/sys-cluster/util-vserver/files/rebootmgr.initd +++ /dev/null @@ -1,44 +0,0 @@ -#!/sbin/runscript -## description: The rebootmgr service is monitoring all virtual servers \ -## and restart them as need. Virtual servers are using \ -## the /sbin/vreboot command to talk with the reboot manager -## -## TODO: replace "echo" by "estart", add "eend", use "start-stop-daemon", ... - -DEFAULT_VSERVERDIR=/vservers -USR_SBIN=/usr/sbin -PIDFILE=/var/run/rebootmgr.pid - -start() { - echo "Starting the reboot manager" - cd /etc/vservers - VSERVERS= - for serv in *.conf - do - test -f "$serv" || continue - - serv=`basename $serv .conf` - if [ -d $DEFAULT_VSERVERDIR/$serv ] ; then - VSERVERS="$VSERVERS $serv" - fi - done - $USR_SBIN/rebootmgr --pidfile $PIDFILE $VSERVERS & -} - -stop() { - echo "Stopping the reboot manager" - kill `cat $PIDFILE` - rm -f $PIDFILE -} - -## TODO: do we want this? -my_status() { - if [ -f $PIDFILE ] ; then - if kill -0 `cat $PIDFILE` - then - echo rebootmgr is running - else - echo rebootmgr is NOT running - fi - fi -} diff --git a/sys-cluster/util-vserver/files/0.30.196/vservers.confd b/sys-cluster/util-vserver/files/vservers.confd index 09db37ff482a..dc00eff6a261 100644 --- a/sys-cluster/util-vserver/files/0.30.196/vservers.confd +++ b/sys-cluster/util-vserver/files/vservers.confd @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/files/0.30.196/vservers.confd,v 1.2 2005/02/25 07:23:00 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/files/vservers.confd,v 1.1 2005/03/30 11:43:40 hollow Exp $ # Should /proc automatically be unhided by vprocunhide? # This will be enabled if UNHIDEPROC is set regardless of its content diff --git a/sys-cluster/util-vserver/files/vservers.initd b/sys-cluster/util-vserver/files/vservers.initd index f7af525e7511..ce98ee2e3d5c 100644 --- a/sys-cluster/util-vserver/files/vservers.initd +++ b/sys-cluster/util-vserver/files/vservers.initd @@ -1,111 +1,80 @@ #!/sbin/runscript -## -## description: The vservers service is used to start and stop all -## the virtual servers. -## to configure see: -## - /etc/vservers/*.conf -## - /etc/vservers.conf +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/files/vservers.initd,v 1.2 2005/03/30 11:43:40 hollow Exp $ -USR_SBIN=/usr/sbin +opts="${opts} vstatus" -depend() { - need net rebootmgr -} - -## we need to call this _before_ starting any vserver! -proc_security() { - ## the following does not seem to work (maybe "old-style" only?): - ### from: http://vserver.strahlungsfrei.de/tiki-index.php?page=VServerGentooNew - ## enable (parts of) the proc filesystem - #vproc -e /proc/cmdline - #vproc -e /proc/loadavg - #vproc -e /proc/meminfo - ### invalid ioctl for /proc/mounts!! - ##vproc -e /proc/mounts - #vproc -e /proc/stat - #vproc -e /proc/uptime - ## (vproc -e /proc/version) - ## (useful and harmless: cpuinfo, slabinfo, interrupts) - #vproc -e /proc/cpuinfo - #vproc -e /proc/slabinfo - #vproc -e /proc/interrupts - - ## anyway, we use the following for now: - /usr/sbin/setattr -R --~hide /proc/* -} - -# Print the vserver name in priority/alpha order -sortserver(){ - ( - cd /etc/vservers - for serv in *.conf - do - test -f "$serv" || continue - - PRIORITY=100 - . $serv - test "$ONBOOT" || continue - printf "%03d %s\n" $PRIORITY `basename $serv .conf` - done - ) | sort $* | (while read a b; do echo $b; done) -} - -startservers(){ - echo "Starting the virtual servers" - cd /etc/vservers - for name in `sortserver` - do - ONBOOT= - . $name.conf - if [ "$ONBOOT" = "yes" ] ; then - echo; echo - echo "*** starting vserver \"$name\" ($(date)) ***" - $USR_SBIN/vserver $name start - else - echo "*** vserver \"$name\" not configured for on boot start ***" - fi - done +checkconfig() { + : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} + if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then + eerror "Cannot find util-vserver installation" + eerror "(the file '$UTIL_VSERVER_VARS' would be expected)" + exit 1 + fi + . ${UTIL_VSERVER_VARS} + + : ${MARKS:=default} + : ${NUMPARALLEL:=1} + : ${LOCKDIR:=/var/lock/vservers} } -BACKGROUND=off -if [ -f /etc/vservers.conf ] ; then - . /etc/vservers.conf -fi - - -# See how we were called. start() { - proc_security - if [ "$BACKGROUND" = "yes" ] ; then - einfo "asynchronous start of vserver on tty8" - echo "vserver startup on $(date)" 2>&1 </dev/tty8 | tee /var/log/vservers.boot >/dev/tty8 - #startservers >/dev/tty8 </dev/tty8 2>/dev/tty8 & - startservers 2>&1 </dev/tty8 | tee /var/log/vservers.boot >/dev/tty8 & - else - estart "synchronous vserver-start" - startservers | tee /var/log/vservers.boot + checkconfig + + if [[ -n ${UNHIDEPROC} ]]; then + ebegin "Unhiding /proc entries" + ${_VPROCUNHIDE} eend $? fi + + if [[ -n ${STARTALL} ]]; then + ebegin "Starting all vservers" + ${_START_VSERVERS} -j ${NUMPARALLEL} --all --start + local rc=$? + [[ $rc -eq 0 ]] && touch ${LOCKDIR}/all + eend $rc + else + for MARK in ${MARKS}; do + ebegin "Starting vservers of type '${MARK}'" + ${_START_VSERVERS} -m ${MARK} -j ${NUMPARALLEL} --all --start + local rc=$? + [[ $rc -eq 0 ]] && touch ${LOCKDIR}/${MARK} + eend $rc + done + fi } stop() { - echo "Stopping the virtual servers" - cd /etc/vservers - for name in `sortserver -r` - do - $USR_SBIN/vserver $name stop - done + checkconfig + + if [[ -n ${STOPALL} ]]; then + ebegin "Stopping all vservers" + ${_START_VSERVERS} -j ${NUMPARALLEL} --all --stop + local rc=$? + rm -f ${LOCKDIR}/all + eend $rc + else + for MARK in ${MARKS}; do + ebegin "Stopping vservers of type '${MARK}'" + ${_START_VSERVERS} -m ${MARK} -j ${NUMPARALLEL} --all --stop + local rc=$? + rm ${LOCKDIR}/${MARK} + eend $rc + done + fi + } -## TODO: finish our status()-function -my_status() { - cd /etc/vservers - for serv in *.conf - do - ONBOOT=no - name=`basename $serv .conf` - . $serv - echo -n ONBOOT=$ONBOOT " " - $USR_SBIN/vserver $name running +vstatus() { + checkconfig + einfo "${LOCKDIR} shows the follwing types of vservers running:" + for i in ${LOCKDIR}/*; do + einfo " ${i}" + local running="true" done + + if [[ "${running}" != "true" ]]; then + einfo " none" + fi } diff --git a/sys-cluster/util-vserver/util-vserver-0.30.196.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.196.ebuild index c752040088ea..ac244bece7bc 100644 --- a/sys-cluster/util-vserver/util-vserver-0.30.196.ebuild +++ b/sys-cluster/util-vserver/util-vserver-0.30.196.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.196.ebuild,v 1.4 2005/02/26 09:36:09 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.196.ebuild,v 1.5 2005/03/30 11:43:40 hollow Exp $ inherit eutils @@ -10,7 +10,7 @@ HOMEPAGE="http://www-user.tu-chemnitz.de/~ensc/util-vserver/" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86 ~ppc" +KEYWORDS="x86 ~ppc" IUSE="" DEPEND=">=dev-libs/dietlibc-0.24 @@ -39,11 +39,11 @@ src_install() { # and install gentoo'ized ones: exeinto /etc/init.d/ - newexe ${FILESDIR}/0.30.196/vservers.initd vservers + newexe ${FILESDIR}/vservers.initd vservers # install conf.d files insinto /etc/conf.d - newins ${FILESDIR}/0.30.196/vservers.confd vservers + newins ${FILESDIR}/vservers.confd vservers dodoc README ChangeLog NEWS AUTHORS INSTALL THANKS util-vserver.spec } diff --git a/sys-cluster/util-vserver/util-vserver-0.30.204.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.204.ebuild index 0f1f0aa29e7c..0eccc5852c4e 100644 --- a/sys-cluster/util-vserver/util-vserver-0.30.204.ebuild +++ b/sys-cluster/util-vserver/util-vserver-0.30.204.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.204.ebuild,v 1.3 2005/02/26 09:36:09 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.204.ebuild,v 1.4 2005/03/30 11:43:40 hollow Exp $ inherit eutils @@ -40,11 +40,11 @@ src_install() { # and install gentoo'ized ones: exeinto /etc/init.d/ - newexe ${FILESDIR}/0.30.196/vservers.initd vservers + newexe ${FILESDIR}/vservers.initd vservers # install conf.d files insinto /etc/conf.d - newins ${FILESDIR}/0.30.196/vservers.confd vservers + newins ${FILESDIR}/vservers.confd vservers dodoc README ChangeLog NEWS AUTHORS INSTALL THANKS util-vserver.spec } diff --git a/sys-cluster/util-vserver/util-vserver-0.30.205.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.205.ebuild new file mode 100644 index 000000000000..080368d37966 --- /dev/null +++ b/sys-cluster/util-vserver/util-vserver-0.30.205.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.205.ebuild,v 1.1 2005/03/30 11:43:40 hollow Exp $ + +inherit eutils + +DESCRIPTION="vserver admin utilities (alpha version)" +SRC_URI="http://www.13thfloor.at/~ensc/util-vserver/files/alpha/${P}.tar.bz2" +HOMEPAGE="http://www-user.tu-chemnitz.de/~ensc/util-vserver/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" +DEPEND=">=dev-libs/dietlibc-0.26-r1 + sys-apps/iproute2 + net-misc/vconfig + net-firewall/iptables" + +src_compile() { + local myconf="--localstatedir=/var --with-initrddir=/etc/init.d" + + econf ${myconf} || die "econf failed" + emake || die "compile failed" +} + +src_install() { + emake DESTDIR=${D} install || die "install failed" + + # keep dirs + keepdir /var/run/vservers + keepdir /var/lock/vservers + keepdir /var/run/vshelper + keepdir /vservers + fperms 000 /vservers + + # remove the non-gentoo init-scripts: + rm -f ${D}/etc/init.d/* + + # and install gentoo'ized ones: + exeinto /etc/init.d/ + newexe ${FILESDIR}/vservers.initd vservers + + # install conf.d files + insinto /etc/conf.d + newins ${FILESDIR}/vservers.confd vservers + + dodoc README ChangeLog NEWS AUTHORS INSTALL THANKS util-vserver.spec +} diff --git a/sys-cluster/util-vserver/util-vserver-0.30.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.ebuild deleted file mode 100644 index 011173347f0c..000000000000 --- a/sys-cluster/util-vserver/util-vserver-0.30.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.ebuild,v 1.2 2005/01/23 08:49:41 hollow Exp $ - -inherit eutils - -DESCRIPTION="Vserver admin-tools." -SRC_URI="http://www-user.tu-chemnitz.de/~ensc/util-vserver/${P}.tar.bz2" -HOMEPAGE="http://savannah.nongnu.org/projects/util-vserver/ http://www-user.tu-chemnitz.de/~ensc/util-vserver/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~ppc" - -IUSE="" -DEPEND=">=dev-libs/dietlibc-0.24" - -src_compile() { - econf || die "econf failed" - make || die "compile failed" -} - -src_install() { - make DESTDIR=${D} install || die "install failed" - - ## state-dir: - keepdir /var/run/vservers - ## the actual vservers go there: - keepdir /vservers - fperms 000 /vservers - - ## sample config and script: - insinto /etc/vservers - doins distrib/sample.conf distrib/sample.sh - - ## remove the non-gentoo init-scripts: - rm -f ${D}/etc/init.d/* - ## ... and install gentoo'ized ones: - exeinto /etc/init.d/ - newexe ${FILESDIR}/vservers.initd vservers - newexe ${FILESDIR}/rebootmgr.initd rebootmgr - - dodoc README ChangeLog NEWS AUTHORS INSTALL THANKS util-vserver.spec -} - -pkg_postinst() { - einfo "To make use of the tools in this package you need to run a \"sys-kernel/vserver-sources\"-kernel." -} |