From 0b962736c67833f7cacabd1e2e2e096a954759eb Mon Sep 17 00:00:00 2001 From: Benedikt Boehm Date: Sun, 13 Jan 2008 11:06:48 +0000 Subject: add util-vserver-0.30.215_pre20080113; cleanup svn path=/; revision=127 --- dev-libs/xmlrpc-c-cvs/Manifest | 6 - .../xmlrpc-c-cvs/files/xmlrpc-c-implicit-abs.patch | 12 - .../files/xmlrpc-c-mkinstalldirs.patch | 46 ---- dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-pic.patch | 13 - .../files/xmlrpc-c-threadupdatestatus.patch | 16 -- .../files/xmlrpc-c-type-punned-pointer-deref.patch | 20 -- dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild | 65 ----- sys-cluster/util-vserver-svn/Manifest | 4 - sys-cluster/util-vserver-svn/files/bash_completion | 300 --------------------- .../util-vserver-svn/files/init.d/vprocunhide | 20 -- .../util-vserver-svn/files/init.d/vservers.default | 15 -- .../util-vserver-svn/util-vserver-svn-9999.ebuild | 103 ------- sys-cluster/util-vserver/Manifest | 5 +- sys-cluster/util-vserver/files/bash_completion | 300 +++++++++++++++++++++ .../util-vserver-0.30.214_pre2590.ebuild | 133 --------- .../util-vserver-0.30.215_pre20080113.ebuild | 101 +++++++ sys-cluster/util-vserver/util-vserver-9999.ebuild | 101 +++++++ 17 files changed, 505 insertions(+), 755 deletions(-) delete mode 100644 dev-libs/xmlrpc-c-cvs/Manifest delete mode 100644 dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-implicit-abs.patch delete mode 100644 dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-mkinstalldirs.patch delete mode 100644 dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-pic.patch delete mode 100644 dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-threadupdatestatus.patch delete mode 100644 dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-type-punned-pointer-deref.patch delete mode 100644 dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild delete mode 100644 sys-cluster/util-vserver-svn/Manifest delete mode 100644 sys-cluster/util-vserver-svn/files/bash_completion delete mode 100755 sys-cluster/util-vserver-svn/files/init.d/vprocunhide delete mode 100755 sys-cluster/util-vserver-svn/files/init.d/vservers.default delete mode 100644 sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild create mode 100644 sys-cluster/util-vserver/files/bash_completion delete mode 100644 sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild create mode 100644 sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild create mode 100644 sys-cluster/util-vserver/util-vserver-9999.ebuild diff --git a/dev-libs/xmlrpc-c-cvs/Manifest b/dev-libs/xmlrpc-c-cvs/Manifest deleted file mode 100644 index b7b84bd..0000000 --- a/dev-libs/xmlrpc-c-cvs/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX xmlrpc-c-implicit-abs.patch 418 RMD160 e2991cf1cc862ab21855194a26d8867039786a25 SHA1 540f45e112bf194f3c632d0d7384a0613483249e SHA256 87702ab8fa1a2e7206484c982b935d14e296a182a4c2acf7b791783644352633 -AUX xmlrpc-c-mkinstalldirs.patch 1946 RMD160 96582f35dae623feee00a651a01328574a5b3256 SHA1 3971aba8aee5a939e325ede62639323bdbddfe9a SHA256 2472ae266d053ad001813edfb90ad04d67990f120aa1769ebe82c47ffa8175d2 -AUX xmlrpc-c-pic.patch 566 RMD160 2e64750d04cdb3a9ad9f95e753e6dd46d4cd650c SHA1 5b266ed0600aa32c5f461df402038ffee1dac87c SHA256 b27f31ef0098ff83518be25131b1ddb72a3290c45636219a58cbf7dcd5ff415d -AUX xmlrpc-c-threadupdatestatus.patch 465 RMD160 e8e8cdeb31d0afad547dd8abab3533e9f54114ba SHA1 b209a5d55c3e587eabe220503c8818b17731fc78 SHA256 64fac915d4bdab37ebf04fece7066213a96d09651d4e088c90f08e9fd364a985 -AUX xmlrpc-c-type-punned-pointer-deref.patch 748 RMD160 4b5e0f7a5d41ea1510826e8cf2831895fa9f44ef SHA1 ba8bac079d55429a3514d5b677ce81f620e9bd25 SHA256 5c468c2d6e518252f734bd177952f0c05ada109465f31393384cbeaeedf44a60 -EBUILD xmlrpc-c-cvs-9999.ebuild 1730 RMD160 788c6bb1d3bb03b227557c2d27aa3788dcd83865 SHA1 43b87cdf9b8e327562c2349d7db33849bbbc6276 SHA256 69e169a1cac5c05a730dba89c50d1f9497dc15912c49614e2eca60d0b147aa00 diff --git a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-implicit-abs.patch b/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-implicit-abs.patch deleted file mode 100644 index 24d27c7..0000000 --- a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-implicit-abs.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: ./lib/abyss/src/date.c -=================================================================== -RCS file: /cvsroot/xmlrpc-c/xmlrpc-c/lib/abyss/src/date.c,v -retrieving revision 1.3 -diff -u -b -B -r1.3 date.c ---- ./lib/abyss/src/date.c 7 Jan 2007 20:47:29 -0000 1.3 -+++ ./lib/abyss/src/date.c 15 Feb 2007 09:18:57 -0000 -@@ -1,3 +1,4 @@ -+#include - #include - #include - #include diff --git a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-mkinstalldirs.patch b/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-mkinstalldirs.patch deleted file mode 100644 index 80ef484..0000000 --- a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-mkinstalldirs.patch +++ /dev/null @@ -1,46 +0,0 @@ -Index: Makefile.common -=================================================================== -RCS file: /cvsroot/xmlrpc-c/xmlrpc-c/Makefile.common,v -retrieving revision 1.53 -diff -u -b -B -r1.53 Makefile.common ---- Makefile.common 1 Jan 2007 00:59:38 -0000 1.53 -+++ Makefile.common 15 Feb 2007 09:08:52 -0000 -@@ -448,8 +448,6 @@ - # (except shared libraries) # - ############################################################################## - --MKINSTALLDIRS = $(SHELL) $(SRCDIR)/mkinstalldirs -- - .PHONY: install-common install-libraries install-headers install-bin - install-common: \ - install-ltlibraries install-static-libraries install-shared-libraries \ -Index: Makefile.config.in -=================================================================== -RCS file: /cvsroot/xmlrpc-c/xmlrpc-c/Makefile.config.in,v -retrieving revision 1.23 -diff -u -b -B -r1.23 Makefile.config.in ---- Makefile.config.in 28 Sep 2006 02:15:55 -0000 1.23 -+++ Makefile.config.in 15 Feb 2007 09:08:53 -0000 -@@ -256,6 +256,7 @@ - INSTALL_SHLIB = $(INSTALL) -c -m 755 - INSTALL_DATA = $(INSTALL) -c -m 644 - INSTALL_SCRIPT = $(INSTALL) -c -m 755 -+MKINSTALLDIRS = $(INSTALL) -d -m 755 - - # Here are the locations at which 'make install' puts files: - -Index: lib/expat/xmlwf/Makefile.in -=================================================================== -RCS file: /cvsroot/xmlrpc-c/xmlrpc-c/lib/expat/xmlwf/Makefile.in,v -retrieving revision 1.1 -diff -u -b -B -r1.1 Makefile.in ---- lib/expat/xmlwf/Makefile.in 16 Oct 2004 21:41:29 -0000 1.1 -+++ lib/expat/xmlwf/Makefile.in 15 Feb 2007 09:08:57 -0000 -@@ -106,7 +106,6 @@ - - EXTRA_DIST = codepage.c filemap.h unixfilemap.c xmlfile.c xmltchar.h xmlwf.dsp codepage.h readfilemap.c win32filemap.c xmlfile.h xmlwf.c - --mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_HEADER = ../../../xmlrpc_config.h - CONFIG_CLEAN_FILES = - DIST_COMMON = Makefile.in diff --git a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-pic.patch b/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-pic.patch deleted file mode 100644 index 4f8496e..0000000 --- a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-pic.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: xmlrpc-c-1.05/src/cpp/Makefile -=================================================================== ---- xmlrpc-c-1.05.orig/src/cpp/Makefile -+++ xmlrpc-c-1.05/src/cpp/Makefile -@@ -135,7 +135,7 @@ libxmlrpc_client++.a: $(LIBXMLRPC_CLIENT - # RULES TO COMPILE OBJECT MODULES FOR LIBRARIES - #----------------------------------------------------------------------------- - --CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) -+CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) -fPIC - - XmlRpcCpp.o:%.o:%.cpp - $(CXX) -c $(BASIC_INCLUDES) $(CXXFLAGS) $< diff --git a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-threadupdatestatus.patch b/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-threadupdatestatus.patch deleted file mode 100644 index b526473..0000000 --- a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-threadupdatestatus.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: xmlrpc-c-1.06.02/lib/abyss/src/thread_fork.c -=================================================================== ---- xmlrpc-c-1.06.02.orig/lib/abyss/src/thread_fork.c -+++ xmlrpc-c-1.06.02/lib/abyss/src/thread_fork.c -@@ -281,11 +281,6 @@ ThreadForks(void) { - - - --void --ThreadUpdateStatus(TThread * const threadP) { -- /* Necessary only for primitive Unix forking */ --} -- - - /********************************************************************* - ** Mutex diff --git a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-type-punned-pointer-deref.patch b/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-type-punned-pointer-deref.patch deleted file mode 100644 index bcd3881..0000000 --- a/dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-type-punned-pointer-deref.patch +++ /dev/null @@ -1,20 +0,0 @@ -Index: lib/util/include/mallocvar.h -=================================================================== -RCS file: /cvsroot/xmlrpc-c/xmlrpc-c/lib/util/include/mallocvar.h,v -retrieving revision 1.5 -diff -u -b -B -r1.5 mallocvar.h ---- lib/util/include/mallocvar.h 12 Apr 2005 18:54:52 -0000 1.5 -+++ lib/util/include/mallocvar.h 15 Feb 2007 09:28:30 -0000 -@@ -65,8 +65,10 @@ - arrayName = array; \ - } while (0) - --#define REALLOCARRAY(arrayName, nElements) \ -- reallocProduct((void **)&arrayName, nElements, sizeof(arrayName[0])) -+#define REALLOCARRAY(arrayName, nElements) do { \ -+ void *array = arrayName; \ -+ reallocProduct(&array, nElements, sizeof(arrayName[0])); \ -+} while (0) - - - #define MALLOCARRAY_NOFAIL(arrayName, nElements) \ diff --git a/dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild b/dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild deleted file mode 100644 index 967f09f..0000000 --- a/dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/xmlrpc-c-1.09.00.ebuild,v 1.1 2007/01/30 09:44:33 hollow Exp $ - -inherit autotools eutils cvs - -DESCRIPTION="A lightweigt RPC library based on XML and HTTP" -HOMEPAGE="http://xmlrpc-c.sourceforge.net/" - -KEYWORDS="~alpha ~amd64 ~ppc ~x86" -IUSE="curl libwww threads" -LICENSE="GPL-2" -SLOT="0" - -DEPEND="dev-libs/libxml2 - libwww? ( net-libs/libwww ) - curl? ( net-misc/curl )" - -ECVS_SERVER="xmlrpc-c.cvs.sourceforge.net:/cvsroot/xmlrpc-c" -ECVS_MODULE="xmlrpc-c" -S="${WORKDIR}/${ECVS_MODULE}" - -pkg_setup() { - # paralell make doesn't work - MAKEOPTS="-j1" - - if ! use curl && ! use libwww; then - ewarn "Neither CURL nor libwww support was selected" - ewarn "No client library will be be built" - fi -} - -src_unpack() { - cvs_src_unpack - cd "${S}" - - epatch "${FILESDIR}/xmlrpc-c-threadupdatestatus.patch" - epatch "${FILESDIR}/xmlrpc-c-pic.patch" - epatch "${FILESDIR}/xmlrpc-c-mkinstalldirs.patch" - epatch "${FILESDIR}/xmlrpc-c-implicit-abs.patch" - epatch "${FILESDIR}/xmlrpc-c-type-punned-pointer-deref.patch" - - # get rid of autogenerated files - rm -f aclocal.m4 config.guess config.sub install-shi - rm -f ltconfig ltmain.sh missing mkinstalldirs - - # force eautomake though xmlrpc-c doesn't really use it - touch Makefile.am - echo 'AC_CONFIG_FILES([Makefile])' >> configure.in - - eautoreconf -} - -src_compile() { - econf --disable-wininet-client --enable-libxml2-backend \ - $(use_enable threads abyss-threads) \ - $(use_enable curl curl-client) \ - $(use_enable libwww libwww-client) || die "econf failed" - - emake || die "emake failed" -} - -src_install() { - make DESTDIR=${D} install || die -} diff --git a/sys-cluster/util-vserver-svn/Manifest b/sys-cluster/util-vserver-svn/Manifest deleted file mode 100644 index f0efbb9..0000000 --- a/sys-cluster/util-vserver-svn/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -AUX bash_completion 7568 RMD160 45feafa30f715fb287403518eee8c45fecfe418e SHA1 d281bcad111df21ab0f37703142dd102145d784e SHA256 2232166a5aed9857a7a5c30adfdd4ea944e0608a29fad05f229b8cef2d61795d -AUX init.d/vprocunhide 506 RMD160 b26000655f88eba51e2e80b5665f49b7698324a3 SHA1 f1bf6bc18f228c16090bbd8daec0b1e497ef75a8 SHA256 4e7f95b4bd0aca85383d0fc5ce9ffd78869a60e6f0f2dffaa4b1c8ec9d9b2c3d -AUX init.d/vservers.default 320 RMD160 66fefb9908fe73b1d7967bd16b8cc5365d92a33a SHA1 0a5a198b00a5923b52005a34e46799d2815edaa7 SHA256 3b0812b59afaf39e5cefa4ddc1d27b7be7f7b58c69a2f045f4b7ae039dbe290c -EBUILD util-vserver-svn-9999.ebuild 2845 RMD160 af6a7369c3811a171d2a1618802abeedb82c8baa SHA1 3e0e42ce26d6fd5276952166c9ab715a9d723f00 SHA256 42c096a1f767bd9ec20c9d264a1dfcae2803cb802ee0397dd440b25d412aa9ea diff --git a/sys-cluster/util-vserver-svn/files/bash_completion b/sys-cluster/util-vserver-svn/files/bash_completion deleted file mode 100644 index 73a9fef..0000000 --- a/sys-cluster/util-vserver-svn/files/bash_completion +++ /dev/null @@ -1,300 +0,0 @@ -# Completion for the vserver command. Source this file (or on some systems -# add it to ~/.bash_completion and start a new shell) and bash's completion -# mechanism will know all about vserver's options! -# -# Copyright (C) Thomas Champagne -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# The latest version of this software can be obtained here: -# -# http://linux-vserver.org/Vserver+Completion -# -# version 0.4.0 - -have vserver-info && { -: ${UTIL_VSERVER_VARS:=$(vserver-info - SYSINFO |grep prefix: | awk '{ print $2}')/lib/util-vserver/util-vserver-vars} - -test -e "$UTIL_VSERVER_VARS" && { - -. "$UTIL_VSERVER_VARS" -. "$_LIB_FUNCTIONS" - -_vserver() { - local cur cmds cmdOpts cmdMethodOpts helpCmds names names_pipe func i j method - - COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} - - # find available vServers: - # call function getAllVservers in vserver library - getAllVservers names - names_pipe=`echo ${names[@]} | sed 's/ /|/g'` - - # available commands - cmds='start stop restart condrestart suexec exec enter chkconfig \ - running status unify pkg apt-get apt-config apt-cache \ - rpm pkgmgmt delete' - - # options (long and short name) - cmdOpts='--help --version --debug --defaulttty -s --sync -v \ - --verbose --silent --' - - cmdMethodOpts='-m -n --context --confdir --lockfile \ - --hostname --netdev --netbcast --netmask \ - --netprefix --interface --cpuset \ - --cpusetcpus --cpusetmems --cpusetvirt \ - --initstyle --flags --help --' - - # if the previous option is a single option - helpCmds='--help|--version' - if [[ ${COMP_WORDS[1]} == @($helpCmds) ]] ; then - return 0 - fi - - # lookup the vServer name - for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do - if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then - # found it! - break - fi - done - - #a vserver has been found - if (( $i < ${#COMP_WORDS[@]}-1 )) ; then - # Show the vserver command without build - case "${COMP_WORDS[i+1]}" in - start) - COMPREPLY=( $( compgen -W "--rescue --rescue-cmd" -- $cur ) ) - ;; - # No completion for apt-config - stop|restart|condrestart|enter|running|status|apt-config|delete) - ;; - suexec) - # I don't know how to do - COMPREPLY=( $( compgen -W -- $cur ) ) - ;; - exec) - #I don't know how to do - COMPREPLY=( $( compgen -W "" -- $cur ) ) - ;; - unify) - COMPREPLY=( $( compgen -W "-R" -- $cur ) ) - ;; - apt-get|apt-cache) - func=${COMP_WORDS[i+1]} - COMP_WORDS=( ${COMP_WORDS[@]:$((i+1))} ) - COMP_CWORD=$((COMP_CWORD-i-1)) - declare -f _${func//-/_} > /dev/null && _${func//-/_} - ;; - *) - COMPREPLY=( $( compgen -W "$cmds" -- $cur ) ) - ;; - esac - return 0 - else - #no vserver name found - prev=${COMP_WORDS[COMP_CWORD-1]} - - #search the new name of vserver - for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do - if [[ ${COMP_WORDS[i]} == !(vserver|-*) ]] ; then - # found it! - break - fi - done - - if (( $i < ${#COMP_WORDS[@]}-1 )) ; then - j=$i - i=${#COMP_WORDS[@]} - for (( ; j < ${#COMP_WORDS[@]}-1; j++ )) ; do - if [[ ${COMP_WORDS[j]} == "--" ]]; then - # method's parameter - case "$method" in - legacy|copy) - ;; - apt-rpm) - COMPREPLY=( $( compgen -W "-d" -- $cur ) ) - ;; - yum) - COMPREPLY=( $( compgen -W "-d" -- $cur ) ) - ;; - rpm) - COMPREPLY=( $( compgen -W "-d --empty --force --nodeps" -- $cur ) ) - ;; - skeleton) - ;; - debootstrap) - COMPREPLY=( $( compgen -W "-d -m -s --" -- $cur ) ) - ;; - *) - ;; - esac - return 0 - break - fi - - if [[ ${COMP_WORDS[j]} == @(build|-m) ]]; then - i=$j - if (( $j+1 < ${#COMP_WORDS[@]}-1 )) ; then - method=${COMP_WORDS[j+1]} - fi - fi - done - - if (( $i < ${#COMP_WORDS[@]}-1 )) ; then - case $prev in - --help) - ;; - -n|--context|--confdir|--lockfile|--hostname|--netdev|--netbcast|--netmask|--netprefix|--interface|--cpuset|--cpusetcpus|--cpusetmems|--cpusetvirt|--initstyle|--flags) - COMPREPLY=( $( compgen -W "" -- $cur ) ) - ;; - -m) - COMPREPLY=( $( compgen -W "legacy copy apt-rpm yum rpm skeleton debootstrap" -- $cur ) ) - ;; - *) - COMPREPLY=( $( compgen -W "$cmdMethodOpts" -- $cur ) ) - ;; - esac - else - COMPREPLY=( $( compgen -W "build" -- $cur ) ) - fi - else - COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) - fi - - return 0 - fi - - return 0 -} - -complete -F _vserver vserver - -_vapt_rpm_yum() -{ - local cur cmds cmdOpts helpCmds names func i - - COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} - - # options (long and short name) - cmdOpts='--help --version --quiet -q --all' - - # if the previous option is a single option - helpCmds='--help|--version' - - if [[ "${COMP_WORDS[1]}" == "@($helpCmds)" ]] ; then - return 0 - fi - - # search -- - for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do - if [[ ${COMP_WORDS[i]} = "--" ]] ; then - # found it! - break - fi - done - - # find available vServers - # call function getAllVservers in vserver library - getAllVservers names - names_pipe=`echo ${names[@]}" --all" | sed 's/ /|/g'` - - if (( $i < ${#COMP_WORDS[@]}-1 )) && (( $i < $COMP_CWORD )) ; then - func=${COMP_WORDS[0]:1} - COMP_WORDS=( $func ${COMP_WORDS[@]:$((i+1))} ) - COMP_CWORD=$((COMP_CWORD-i)) - declare -f _${func//-/_} > /dev/null && _${func//-/_} - else - # search vServer name - for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do - if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then - # found it! - break - fi - done - - if (( $i < ${#COMP_WORDS[@]}-1 )) ; then - if [[ "${COMP_WORDS[i]}" = "--all" ]] ; then - cmdOpts='--' - COMPREPLY=( $( compgen -W "$cmdOpts" -- $cur ) ) - else - cmdOpts='--' - COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) - fi - else - COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) - fi - fi - - return 0 -} - -_vserver_copy() -{ - local cur prev cmdOpts helpCmds confCmds names names_pipe i - - COMPREPLY=() - cur=${COMP_WORDS[COMP_CWORD]} - - # find available vServers - # call function getAllVservers in vserver library - getAllVservers names - names_pipe=`echo ${names[@]} | sed 's/ /|/g'` - - # options (long and short name) - cmdOpts='--help -h --version -V --verbose -v --quiet -q \ - --vsroot -r --rsh -R --stopstart -s \ - --domain -d --ip -i' - - # if the previous option is a single option - helpCmds='--help|-h|--version|-V' - - if [[ ${COMP_WORDS[1]} == @($helpCmds) ]] ; then - return 0 - fi - - confCmds='--ip|-i|--domain|-d' - prev=${COMP_WORDS[COMP_CWORD-1]} - - if [[ $prev == @($confCmds) ]] ; then - return 0 - fi - - # search a vServer name - for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do - if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then - # found it! - break - fi - done - - if (( $i < ${#COMP_WORDS[@]}-1 )) ; then - return 0 - else - COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) - fi - - return 0 -} - -complete -F _vapt_rpm_yum vapt-get -complete -F _vapt_rpm_yum vrpm -complete -F _vapt_rpm_yum vyum -complete -F _vserver_copy vserver-copy - -} -} diff --git a/sys-cluster/util-vserver-svn/files/init.d/vprocunhide b/sys-cluster/util-vserver-svn/files/init.d/vprocunhide deleted file mode 100755 index d7199ca..0000000 --- a/sys-cluster/util-vserver-svn/files/init.d/vprocunhide +++ /dev/null @@ -1,20 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -start() { - : ${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)" - return 1 - fi - - source ${UTIL_VSERVER_VARS} - - ebegin "Fixing /proc entries visibility" - ${_VPROCUNHIDE} - eend $? -} - -# vim:ts=4:filetype=gentoo-init-d diff --git a/sys-cluster/util-vserver-svn/files/init.d/vservers.default b/sys-cluster/util-vserver-svn/files/init.d/vservers.default deleted file mode 100755 index 52eb322..0000000 --- a/sys-cluster/util-vserver-svn/files/init.d/vservers.default +++ /dev/null @@ -1,15 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -start() { - MARK=${0##*/vserver.} /usr/lib/util-vserver/vserver-wrapper start -} - -stop() { - MARK=${0##*/vserver.} /usr/lib/util-vserver/vserver-wrapper stop -} - - - -# vim:ts=4:filetype=gentoo-init-d diff --git a/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild b/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild deleted file mode 100644 index 2fed17c..0000000 --- a/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2006 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.210-r18.ebuild,v 1.2 2006/09/07 08:34:50 hollow Exp $ - -inherit autotools eutils toolchain-funcs bash-completion subversion - -DESCRIPTION="Linux-VServer admin utilities" -HOMEPAGE="http://www.nongnu.org/util-vserver/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" - -IUSE="legacy" - -DEPEND=">=dev-libs/dietlibc-0.30-r2 - dev-libs/beecrypt - net-firewall/iptables - net-misc/vconfig - sys-apps/iproute2 - sys-process/procps" - -RDEPEND="sys-apps/iproute2 - net-misc/vconfig - net-firewall/iptables - dev-libs/beecrypt - sys-process/procps" - -ESVN_REPO_URI="http://svn.linux-vserver.org/svn/util-vserver/trunk" -ESVN_BOOTSTRAP="make -f Makefile.svn" - -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 - - myconf="${myconf} --with-vrootdir=${VDIRBASE}" - - # default paths - myconf="${myconf} --localstatedir=/var" - myconf="${myconf} --with-initrddir=/etc/init.d" - - # needed for older vserver kernels not in portage (default: v13,net) - # we provide this just for convenience for people using self-made kernels - use legacy && myconf="${myconf} --enable-apis=compat,v11,fscompat,v13,net" -} - -src_compile() { - econf ${myconf} || die "econf failed" - emake || die "emake failed" -} - -src_install() { - make DESTDIR="${D}" install || die "install failed" - make DESTDIR="${D}" install-distribution || die "install-distribution 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}" - - # 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.default - doinitd "${FILESDIR}"/init.d/vprocunhide - - # bash-completion - dobashcompletion "${FILESDIR}"/bash_completion util-vserver - - dodoc README ChangeLog NEWS AUTHORS THANKS util-vserver.spec -} - -pkg_postinst() { - einfo - einfo "You have to run the vprocunhide command after every reboot" - einfo "in order to setup /proc permissions correctly for vserver" - 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 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 -} diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest index 6acba7a..b6b5ec3 100644 --- a/sys-cluster/util-vserver/Manifest +++ b/sys-cluster/util-vserver/Manifest @@ -1,2 +1,3 @@ -DIST util-vserver-0.30.214-pre2590.tar.bz2 675369 RMD160 37bd8bbd732b591ec1cbcfc7e19e88d5288fe8d1 SHA1 773889a5f262a786bd21dc1daa155937898d19cc SHA256 45eac2f3d882ef0b93b1647986605900123a8e3968cec4632f75d88973818e6b -EBUILD util-vserver-0.30.214_pre2590.ebuild 3697 RMD160 c0e39d7d94d44184e3174a06713d55a1082b771d SHA1 5f6b8e15ebec1ed1d3f21673af241f8325f77a72 SHA256 4ce17b15b35d6886f379cf1ffe872aee01ff330811dcf2315915265d30a2cd8b +AUX bash_completion 7568 RMD160 45feafa30f715fb287403518eee8c45fecfe418e SHA1 d281bcad111df21ab0f37703142dd102145d784e SHA256 2232166a5aed9857a7a5c30adfdd4ea944e0608a29fad05f229b8cef2d61795d +EBUILD util-vserver-0.30.215_pre20080113.ebuild 2626 RMD160 e82d0dd6b6fed68627731e4178f0d00336fa12f1 SHA1 6ba776a0d1fc283e734a830e169534ab945d961a SHA256 6854296ac4f8379732f87ee3e77e9cd602d74cfd0589fed532c73ba8654f772b +EBUILD util-vserver-9999.ebuild 2598 RMD160 ea9c55132ae7091023b585d2565fc1a032e7f625 SHA1 0db9b7e6817c6a6a69b3fc3ee0f9fb7a39fdbc6d SHA256 ea4849886137d282a4d566348069b14b288126714031c41fc752150dca9886ea diff --git a/sys-cluster/util-vserver/files/bash_completion b/sys-cluster/util-vserver/files/bash_completion new file mode 100644 index 0000000..73a9fef --- /dev/null +++ b/sys-cluster/util-vserver/files/bash_completion @@ -0,0 +1,300 @@ +# Completion for the vserver command. Source this file (or on some systems +# add it to ~/.bash_completion and start a new shell) and bash's completion +# mechanism will know all about vserver's options! +# +# Copyright (C) Thomas Champagne +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# The latest version of this software can be obtained here: +# +# http://linux-vserver.org/Vserver+Completion +# +# version 0.4.0 + +have vserver-info && { +: ${UTIL_VSERVER_VARS:=$(vserver-info - SYSINFO |grep prefix: | awk '{ print $2}')/lib/util-vserver/util-vserver-vars} + +test -e "$UTIL_VSERVER_VARS" && { + +. "$UTIL_VSERVER_VARS" +. "$_LIB_FUNCTIONS" + +_vserver() { + local cur cmds cmdOpts cmdMethodOpts helpCmds names names_pipe func i j method + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + + # find available vServers: + # call function getAllVservers in vserver library + getAllVservers names + names_pipe=`echo ${names[@]} | sed 's/ /|/g'` + + # available commands + cmds='start stop restart condrestart suexec exec enter chkconfig \ + running status unify pkg apt-get apt-config apt-cache \ + rpm pkgmgmt delete' + + # options (long and short name) + cmdOpts='--help --version --debug --defaulttty -s --sync -v \ + --verbose --silent --' + + cmdMethodOpts='-m -n --context --confdir --lockfile \ + --hostname --netdev --netbcast --netmask \ + --netprefix --interface --cpuset \ + --cpusetcpus --cpusetmems --cpusetvirt \ + --initstyle --flags --help --' + + # if the previous option is a single option + helpCmds='--help|--version' + if [[ ${COMP_WORDS[1]} == @($helpCmds) ]] ; then + return 0 + fi + + # lookup the vServer name + for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do + if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then + # found it! + break + fi + done + + #a vserver has been found + if (( $i < ${#COMP_WORDS[@]}-1 )) ; then + # Show the vserver command without build + case "${COMP_WORDS[i+1]}" in + start) + COMPREPLY=( $( compgen -W "--rescue --rescue-cmd" -- $cur ) ) + ;; + # No completion for apt-config + stop|restart|condrestart|enter|running|status|apt-config|delete) + ;; + suexec) + # I don't know how to do + COMPREPLY=( $( compgen -W -- $cur ) ) + ;; + exec) + #I don't know how to do + COMPREPLY=( $( compgen -W "" -- $cur ) ) + ;; + unify) + COMPREPLY=( $( compgen -W "-R" -- $cur ) ) + ;; + apt-get|apt-cache) + func=${COMP_WORDS[i+1]} + COMP_WORDS=( ${COMP_WORDS[@]:$((i+1))} ) + COMP_CWORD=$((COMP_CWORD-i-1)) + declare -f _${func//-/_} > /dev/null && _${func//-/_} + ;; + *) + COMPREPLY=( $( compgen -W "$cmds" -- $cur ) ) + ;; + esac + return 0 + else + #no vserver name found + prev=${COMP_WORDS[COMP_CWORD-1]} + + #search the new name of vserver + for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do + if [[ ${COMP_WORDS[i]} == !(vserver|-*) ]] ; then + # found it! + break + fi + done + + if (( $i < ${#COMP_WORDS[@]}-1 )) ; then + j=$i + i=${#COMP_WORDS[@]} + for (( ; j < ${#COMP_WORDS[@]}-1; j++ )) ; do + if [[ ${COMP_WORDS[j]} == "--" ]]; then + # method's parameter + case "$method" in + legacy|copy) + ;; + apt-rpm) + COMPREPLY=( $( compgen -W "-d" -- $cur ) ) + ;; + yum) + COMPREPLY=( $( compgen -W "-d" -- $cur ) ) + ;; + rpm) + COMPREPLY=( $( compgen -W "-d --empty --force --nodeps" -- $cur ) ) + ;; + skeleton) + ;; + debootstrap) + COMPREPLY=( $( compgen -W "-d -m -s --" -- $cur ) ) + ;; + *) + ;; + esac + return 0 + break + fi + + if [[ ${COMP_WORDS[j]} == @(build|-m) ]]; then + i=$j + if (( $j+1 < ${#COMP_WORDS[@]}-1 )) ; then + method=${COMP_WORDS[j+1]} + fi + fi + done + + if (( $i < ${#COMP_WORDS[@]}-1 )) ; then + case $prev in + --help) + ;; + -n|--context|--confdir|--lockfile|--hostname|--netdev|--netbcast|--netmask|--netprefix|--interface|--cpuset|--cpusetcpus|--cpusetmems|--cpusetvirt|--initstyle|--flags) + COMPREPLY=( $( compgen -W "" -- $cur ) ) + ;; + -m) + COMPREPLY=( $( compgen -W "legacy copy apt-rpm yum rpm skeleton debootstrap" -- $cur ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$cmdMethodOpts" -- $cur ) ) + ;; + esac + else + COMPREPLY=( $( compgen -W "build" -- $cur ) ) + fi + else + COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) + fi + + return 0 + fi + + return 0 +} + +complete -F _vserver vserver + +_vapt_rpm_yum() +{ + local cur cmds cmdOpts helpCmds names func i + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + + # options (long and short name) + cmdOpts='--help --version --quiet -q --all' + + # if the previous option is a single option + helpCmds='--help|--version' + + if [[ "${COMP_WORDS[1]}" == "@($helpCmds)" ]] ; then + return 0 + fi + + # search -- + for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do + if [[ ${COMP_WORDS[i]} = "--" ]] ; then + # found it! + break + fi + done + + # find available vServers + # call function getAllVservers in vserver library + getAllVservers names + names_pipe=`echo ${names[@]}" --all" | sed 's/ /|/g'` + + if (( $i < ${#COMP_WORDS[@]}-1 )) && (( $i < $COMP_CWORD )) ; then + func=${COMP_WORDS[0]:1} + COMP_WORDS=( $func ${COMP_WORDS[@]:$((i+1))} ) + COMP_CWORD=$((COMP_CWORD-i)) + declare -f _${func//-/_} > /dev/null && _${func//-/_} + else + # search vServer name + for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do + if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then + # found it! + break + fi + done + + if (( $i < ${#COMP_WORDS[@]}-1 )) ; then + if [[ "${COMP_WORDS[i]}" = "--all" ]] ; then + cmdOpts='--' + COMPREPLY=( $( compgen -W "$cmdOpts" -- $cur ) ) + else + cmdOpts='--' + COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) + fi + else + COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) + fi + fi + + return 0 +} + +_vserver_copy() +{ + local cur prev cmdOpts helpCmds confCmds names names_pipe i + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + + # find available vServers + # call function getAllVservers in vserver library + getAllVservers names + names_pipe=`echo ${names[@]} | sed 's/ /|/g'` + + # options (long and short name) + cmdOpts='--help -h --version -V --verbose -v --quiet -q \ + --vsroot -r --rsh -R --stopstart -s \ + --domain -d --ip -i' + + # if the previous option is a single option + helpCmds='--help|-h|--version|-V' + + if [[ ${COMP_WORDS[1]} == @($helpCmds) ]] ; then + return 0 + fi + + confCmds='--ip|-i|--domain|-d' + prev=${COMP_WORDS[COMP_CWORD-1]} + + if [[ $prev == @($confCmds) ]] ; then + return 0 + fi + + # search a vServer name + for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do + if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then + # found it! + break + fi + done + + if (( $i < ${#COMP_WORDS[@]}-1 )) ; then + return 0 + else + COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) + fi + + return 0 +} + +complete -F _vapt_rpm_yum vapt-get +complete -F _vapt_rpm_yum vrpm +complete -F _vapt_rpm_yum vyum +complete -F _vserver_copy vserver-copy + +} +} 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 deleted file mode 100644 index 738cfaa..0000000 --- a/sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# 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." - 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 -} diff --git a/sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild new file mode 100644 index 0000000..c357258 --- /dev/null +++ b/sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2006 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.210-r18.ebuild,v 1.2 2006/09/07 08:34:50 hollow Exp $ + +WANT_AUTOMAKE="1.9" + +inherit autotools eutils bash-completion subversion + +DESCRIPTION="Linux-VServer admin utilities" +HOMEPAGE="http://www.nongnu.org/util-vserver/" + +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" + +ESVN_PROJECT="${PN}" +ESVN_OPTIONS="-r2659" +ESVN_REPO_URI="http://svn.linux-vserver.org/svn/util-vserver/trunk" +ESVN_BOOTSTRAP="make -f Makefile.svn" + +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_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 + + 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 +} diff --git a/sys-cluster/util-vserver/util-vserver-9999.ebuild b/sys-cluster/util-vserver/util-vserver-9999.ebuild new file mode 100644 index 0000000..f5c66bf --- /dev/null +++ b/sys-cluster/util-vserver/util-vserver-9999.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2006 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.210-r18.ebuild,v 1.2 2006/09/07 08:34:50 hollow Exp $ + +WANT_AUTOMAKE="1.9" + +inherit autotools eutils bash-completion subversion + +DESCRIPTION="Linux-VServer admin utilities" +HOMEPAGE="http://www.nongnu.org/util-vserver/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-*" + +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" + +ESVN_PROJECT="${PN}" +ESVN_OPTIONS="-rHEAD" +ESVN_REPO_URI="http://svn.linux-vserver.org/svn/util-vserver/trunk" +ESVN_BOOTSTRAP="make -f Makefile.svn" + +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_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 + + 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 +} -- cgit v1.2.3-65-gdbad