summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2008-01-13 11:06:48 +0000
committerBenedikt Boehm <hollow@gentoo.org>2008-01-13 11:06:48 +0000
commit0b962736c67833f7cacabd1e2e2e096a954759eb (patch)
tree6cfe18a32963252ce17b5de1acb7846125dbcedd
parentFixing the Manifest. (diff)
downloadoverlay-0b962736c67833f7cacabd1e2e2e096a954759eb.tar.gz
overlay-0b962736c67833f7cacabd1e2e2e096a954759eb.tar.bz2
overlay-0b962736c67833f7cacabd1e2e2e096a954759eb.zip
add util-vserver-0.30.215_pre20080113; cleanup
svn path=/; revision=127
-rw-r--r--dev-libs/xmlrpc-c-cvs/Manifest6
-rw-r--r--dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-implicit-abs.patch12
-rw-r--r--dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-mkinstalldirs.patch46
-rw-r--r--dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-pic.patch13
-rw-r--r--dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-threadupdatestatus.patch16
-rw-r--r--dev-libs/xmlrpc-c-cvs/files/xmlrpc-c-type-punned-pointer-deref.patch20
-rw-r--r--dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild65
-rw-r--r--sys-cluster/util-vserver-svn/Manifest4
-rwxr-xr-xsys-cluster/util-vserver-svn/files/init.d/vprocunhide20
-rwxr-xr-xsys-cluster/util-vserver-svn/files/init.d/vservers.default15
-rw-r--r--sys-cluster/util-vserver/Manifest5
-rw-r--r--sys-cluster/util-vserver/files/bash_completion (renamed from sys-cluster/util-vserver-svn/files/bash_completion)0
-rw-r--r--sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild (renamed from sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild)48
-rw-r--r--sys-cluster/util-vserver/util-vserver-9999.ebuild (renamed from sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild)70
14 files changed, 45 insertions, 295 deletions
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 <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- #include <stdio.h>
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/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/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-svn/files/bash_completion b/sys-cluster/util-vserver/files/bash_completion
index 73a9fef..73a9fef 100644
--- a/sys-cluster/util-vserver-svn/files/bash_completion
+++ b/sys-cluster/util-vserver/files/bash_completion
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild
index 738cfaa..c357258 100644
--- a/sys-cluster/util-vserver/util-vserver-0.30.214_pre2590.ebuild
+++ b/sys-cluster/util-vserver/util-vserver-0.30.215_pre20080113.ebuild
@@ -1,17 +1,13 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: $
+# $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
+inherit autotools eutils bash-completion subversion
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"
@@ -30,6 +26,11 @@ RDEPEND="sys-apps/iproute2
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
@@ -44,11 +45,6 @@ pkg_setup() {
einfo
}
-src_unpack() {
- unpack ${A}
- cd "${S}"
-}
-
src_compile() {
econf --with-vrootdir=${VDIRBASE} \
--with-initscripts=gentoo \
@@ -97,34 +93,6 @@ pkg_postinst() {
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
diff --git a/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild b/sys-cluster/util-vserver/util-vserver-9999.ebuild
index 2fed17c..f5c66bf 100644
--- a/sys-cluster/util-vserver-svn/util-vserver-svn-9999.ebuild
+++ b/sys-cluster/util-vserver/util-vserver-9999.ebuild
@@ -2,30 +2,32 @@
# 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
+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"
+KEYWORDS="-*"
-IUSE="legacy"
+IUSE=""
DEPEND=">=dev-libs/dietlibc-0.30-r2
dev-libs/beecrypt
net-firewall/iptables
net-misc/vconfig
- sys-apps/iproute2
- sys-process/procps"
+ sys-apps/iproute2"
RDEPEND="sys-apps/iproute2
net-misc/vconfig
net-firewall/iptables
- dev-libs/beecrypt
- sys-process/procps"
+ 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"
@@ -41,26 +43,18 @@ pkg_setup() {
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"
+ econf --with-vrootdir=${VDIRBASE} \
+ --with-initscripts=gentoo \
+ --localstatedir=/var || 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"
+ make DESTDIR="${D}" install install-distribution \
+ || die "make install failed!"
# keep dirs
keepdir /var/run/vservers
@@ -69,17 +63,11 @@ src_install() {
keepdir /var/lock/vservers
keepdir /var/cache/vservers
keepdir "${VDIRBASE}"
+ keepdir "${VDIRBASE}"/.pkg
# 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
@@ -87,14 +75,24 @@ src_install() {
}
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
+ # 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