diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/ctdb | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/ctdb')
-rw-r--r-- | dev-db/ctdb/Manifest | 1 | ||||
-rw-r--r-- | dev-db/ctdb/ctdb-1.13-r1.ebuild | 45 | ||||
-rw-r--r-- | dev-db/ctdb/ctdb-9999.ebuild | 52 | ||||
-rw-r--r-- | dev-db/ctdb/files/autoconf-2.62-fix.patch | 15 | ||||
-rw-r--r-- | dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch | 77 | ||||
-rw-r--r-- | dev-db/ctdb/files/ctdb-1.13-ldflags.patch | 21 | ||||
-rw-r--r-- | dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch | 13 | ||||
-rw-r--r-- | dev-db/ctdb/files/ctdb-50.samba_gentoo.patch | 14 | ||||
-rw-r--r-- | dev-db/ctdb/files/ctdb-functions.patch | 76 | ||||
-rw-r--r-- | dev-db/ctdb/files/ctdb.initd | 81 | ||||
-rw-r--r-- | dev-db/ctdb/metadata.xml | 5 |
11 files changed, 400 insertions, 0 deletions
diff --git a/dev-db/ctdb/Manifest b/dev-db/ctdb/Manifest new file mode 100644 index 00000000000..1a26634710b --- /dev/null +++ b/dev-db/ctdb/Manifest @@ -0,0 +1 @@ +DIST ctdb-1.13.tar.xz 736004 SHA256 c43693877cbc7d047d8b11b01a101bee69df6a871ab397214cc68d8f6f8c98c7 SHA512 653e1d5c29962810353d6b8c5867d07bef17dd5bf431f7304793f13712bb92379fb1b05b6e461279b08e0a1c9d87951f57fb1e2c35f85392b99baadf7d232ece WHIRLPOOL 9323de35b038a920ed6d5ed3be379c7c2ec93814f0f8c4f304de36e2512f58f7a62578ecd257d4fbe4e856c6d0b196fae88e7fbf673e47bbfd2acf0f2ac13b6b diff --git a/dev-db/ctdb/ctdb-1.13-r1.ebuild b/dev-db/ctdb/ctdb-1.13-r1.ebuild new file mode 100644 index 00000000000..7088d007aa9 --- /dev/null +++ b/dev-db/ctdb/ctdb-1.13-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib-minimal + +DESCRIPTION="A cluster implementation of the TDB database used to store temporary data" +HOMEPAGE="http://ctdb.samba.org/" +# upstream is too sexy for releases, grab tags from: +# http://git.samba.org/?p=ctdb.git;a=summary +SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86" +IUSE="" + +DEPEND=">=dev-libs/popt-1.16-r2[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-ldflags.patch" +) + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user + + # custom, broken Makefile + multilib_copy_sources +} + +multilib_src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --localstatedir="${EPREFIX}/var/lib" \ + --with-logdir="${EPREFIX}/var/log/${PN}" +} + +multilib_src_install_all() { + einstalldocs + dohtml web/* doc/*.html +} diff --git a/dev-db/ctdb/ctdb-9999.ebuild b/dev-db/ctdb/ctdb-9999.ebuild new file mode 100644 index 00000000000..1e9d6f4f177 --- /dev/null +++ b/dev-db/ctdb/ctdb-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGIT_REPO_URI="git://git.samba.org/ctdb.git" +inherit autotools eutils git-2 multilib-minimal + +DESCRIPTION="A cluster implementation of the TDB database used to store temporary data" +HOMEPAGE="http://ctdb.samba.org/" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND=">=dev-libs/popt-1.16-r2[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +src_prepare() { + AT_M4DIR="-I libreplace -I lib/replace -I ../libreplace -I ../replace" + AT_M4DIR+=" -I lib/talloc -I talloc -I ../talloc" + AT_M4DIR+=" -I lib/tdb -I tdb -I ../tdb" + AT_M4DIR+=" -I lib/popt -I popt -I ../popt" + AT_M4DIR+=" -I lib/tevent" + + rm -rf autom4te.cache + rm -f configure config.h.in + + autotools_run_tool autoheader ${AT_M4DIR} || die "running autoheader failed" + eautoconf ${AT_M4DIR} +} + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user + + # custom, broken Makefile + multilib_copy_sources +} + +multilib_src_configure() { + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --localstatedir="${EPREFIX}/var/lib" \ + --with-logdir="${EPREFIX}/var/log/${PN}" +} + +multilib_src_install_all() { + einstalldocs + dohtml web/* doc/*.html +} diff --git a/dev-db/ctdb/files/autoconf-2.62-fix.patch b/dev-db/ctdb/files/autoconf-2.62-fix.patch new file mode 100644 index 00000000000..2f5bc2b77f3 --- /dev/null +++ b/dev-db/ctdb/files/autoconf-2.62-fix.patch @@ -0,0 +1,15 @@ +--- lib/replace/autoconf-2.60.m4.orig 2008-04-19 00:26:33.000000000 -0400 ++++ lib/replace/autoconf-2.60.m4 2008-04-19 00:22:25.000000000 -0400 +@@ -179,6 +179,7 @@ + # ------------------------ + # Enable extensions on systems that normally disable them, + # typically due to standards-conformance issues. ++m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[ + AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], + [ + AC_BEFORE([$0], [AC_COMPILE_IFELSE]) +@@ -208,3 +209,4 @@ + AC_DEFINE([__EXTENSIONS__]) + AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) + ]) ++]) diff --git a/dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch b/dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch new file mode 100644 index 00000000000..c70350c110a --- /dev/null +++ b/dev-db/ctdb/files/ctdb-1.0.114_p1-functions.patch @@ -0,0 +1,77 @@ +diff -Naur ctdb-1.0.114.orig/config/functions ctdb-1.0.114/config/functions +--- ctdb-1.0.114.orig/config/functions 2010-04-04 18:01:18.278707515 +0200 ++++ ctdb-1.0.114/config/functions 2010-04-04 18:08:05.792447032 +0200 +@@ -22,6 +22,8 @@ + . /etc/default/$1 + elif [ -f $CTDB_BASE/sysconfig/$1 ]; then + . $CTDB_BASE/sysconfig/$1 ++ elif [ -f /etc/config.d/$1 ]; then ++ . /etc/config.d/$name + fi + } + +@@ -33,6 +35,8 @@ + + if [ -x /sbin/startproc ]; then + CTDB_INIT_STYLE="suse" ++ elif [ -x /bin/rc-status ] ; then ++ CTDB_INIT_STYLE="gentoo" + elif [ -x /sbin/start-stop-daemon ]; then + CTDB_INIT_STYLE="debian" + else +@@ -356,6 +360,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -380,6 +387,16 @@ + ;; + esac + ;; ++ gentoo) ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS is not supported with ctdb" + exit 1 +@@ -398,6 +415,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -422,6 +442,18 @@ + ;; + esac + ;; ++ gentoo) ++ # for gentoo there is no service for lockmanager ++ # so we instead just shutdown/restart nfs ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS locking is not supported with ctdb" + exit 1 diff --git a/dev-db/ctdb/files/ctdb-1.13-ldflags.patch b/dev-db/ctdb/files/ctdb-1.13-ldflags.patch new file mode 100644 index 00000000000..d5662cadf0c --- /dev/null +++ b/dev-db/ctdb/files/ctdb-1.13-ldflags.patch @@ -0,0 +1,21 @@ +diff -urN ctdb-1.13.old/Makefile.in ctdb-1.13/Makefile.in +--- ctdb-1.13.old/Makefile.in 2012-03-23 11:30:03.321735210 +0100 ++++ ctdb-1.13/Makefile.in 2012-03-23 11:37:03.131704144 +0100 +@@ -151,7 +151,7 @@ + + bin/ltdbtool: tools/ltdbtool.o @TDB_OBJ@ + @echo Linking $@ +- @$(CC) $(CFLAGS) -o $@ $+ ++ @$(CC) $(CFLAGS) -o $@ $+ $(LIB_FLAGS) + + bin/smnotify: utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o utils/smnotify/smnotify.o $(POPT_OBJ) + @echo Linking $@ +@@ -173,7 +173,7 @@ + + bin/ping_pong: utils/ping_pong/ping_pong.o + @echo Linking $@ +- @$(CC) $(CFLAGS) -o $@ utils/ping_pong/ping_pong.o ++ @$(CC) $(CFLAGS) -o $@ utils/ping_pong/ping_pong.o $(LIB_FLAGS) + + bin/pmdactdb: $(CTDB_CLIENT_OBJ) utils/pmda/pmda_ctdb.o + @echo Linking $@ diff --git a/dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch b/dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch new file mode 100644 index 00000000000..6865d899a12 --- /dev/null +++ b/dev-db/ctdb/files/ctdb-41.httpd_gentoo.patch @@ -0,0 +1,13 @@ +--- ./config/events.d/41.httpd 2009-05-29 14:19:30.741662868 +0100 ++++ ./config/events.d/41.httpd 2009-07-28 18:31:48.016042964 +0100 +@@ -19,6 +19,10 @@ + CTDB_SERVICE_HTTP="apache2" + CTDB_CONFIG_HTTP="apache2" + ;; ++ gentoo) ++ CTDB_SERVICE_HTTP="apache2" ++ CTDB_CONFIG_HTTP="apache2" ++ ;; + *) + # should not happen. + # for now use red hat style as default diff --git a/dev-db/ctdb/files/ctdb-50.samba_gentoo.patch b/dev-db/ctdb/files/ctdb-50.samba_gentoo.patch new file mode 100644 index 00000000000..fdd68ffc8d9 --- /dev/null +++ b/dev-db/ctdb/files/ctdb-50.samba_gentoo.patch @@ -0,0 +1,14 @@ +--- ./config/events.d/50.samba 2009-05-29 14:19:30.741662868 +0100 ++++ ./config/events.d/50.samba 2009-07-28 18:27:21.896042994 +0100 +@@ -25,6 +25,11 @@ + CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-""} + CTDB_SERVICE_WINBIND=${CTDB_SERVICE_WINBIND:-winbind} + ;; ++ gentoo) ++ CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-samba} ++ CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-""} ++ CTDB_SERVICE_WINBIND=${CTDB_SERVICE_WINBIND:-""} ++ ;; + *) + # should not happen, but for now use redhat style as default: + CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-smb} diff --git a/dev-db/ctdb/files/ctdb-functions.patch b/dev-db/ctdb/files/ctdb-functions.patch new file mode 100644 index 00000000000..61eda720d6a --- /dev/null +++ b/dev-db/ctdb/files/ctdb-functions.patch @@ -0,0 +1,76 @@ +--- ./config/functions 2009-05-29 14:19:30.741662868 +0100 ++++ ./config/functions 2009-07-29 14:15:19.436043164 +0100 +@@ -10,6 +10,8 @@ + . /etc/default/$name + elif [ -f $CTDB_BASE/sysconfig/$name ]; then + . $CTDB_BASE/sysconfig/$name ++ elif [ -f /etc/config.d/$name ]; then ++ . /etc/config.d/$name + fi + } + +@@ -21,6 +23,8 @@ + + if [ -x /sbin/startproc ]; then + CTDB_INIT_STYLE="suse" ++ elif [ -x /bin/rc-status ]; then ++ CTDB_INIT_STYLE="gentoo" + elif [ -x /sbin/start-stop-daemon ]; then + CTDB_INIT_STYLE="ubuntu" + else +@@ -400,6 +404,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -424,6 +431,16 @@ + ;; + esac + ;; ++ gentoo) ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS is not supported with ctdb" + exit 1 +@@ -442,6 +459,9 @@ + [ -x /etc/init.d/nfslock ] && { + PLATFORM="rhel" + } ++ [ -x etc/init.d/nfs ] && { ++ PLATFORM="gentoo" ++ } + + case $PLATFORM in + sles) +@@ -466,6 +486,18 @@ + ;; + esac + ;; ++ gentoo) ++ # for gentoo there is no service for lockmanager ++ # so we instead just shutdown/restart nfs ++ case $1 in ++ start) ++ service nfs start ++ ;; ++ stop) ++ service nfs stop > /dev/null 2>&1 ++ ;; ++ esac ++ ;; + *) + echo "Unknown platform. NFS locking is not supported with ctdb" + exit 1 diff --git a/dev-db/ctdb/files/ctdb.initd b/dev-db/ctdb/files/ctdb.initd new file mode 100644 index 00000000000..ca96019e22b --- /dev/null +++ b/dev-db/ctdb/files/ctdb.initd @@ -0,0 +1,81 @@ +#!/sbin/runscript + +depend() { + need localmount + need net + before samba + after bootmisc +} + +start() { + ebegin "Starting ctdb" + + [ -z "$CTDB_RECOVERY_LOCK" ] && { + eerror "You must configure the location of the CTDB_RECOVERY_LOCK in /etc/conf.d/ctdb" + return 1 + } + + [ -z "$CTDB_PUBLIC_ADDRESSES" ] && { + eerror "You must configure the location of the CTDB_PUBLIC_ADDRESSES in /etc/conf.d/ctdb" + return 1 + } + + [ -z "$CTDB_PUBLIC_INTERFACE" ] && { + eerror "You must configure the location of the CTDB_PUBLIC_INTERFACE in /etc/conf.d/ctdb" + return 1 + } + + CTDB_OPTIONS="$CTDB_OPTIONS --reclock=$CTDB_RECOVERY_LOCK" + + # build up CTDB_OPTIONS variable from optional parameters + [ -z "$CTDB_LOGFILE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --logfile=$CTDB_LOGFILE" + [ -z "$CTDB_NODES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --nlist=$CTDB_NODES" + [ -z "$CTDB_SOCKET" ] || CTDB_OPTIONS="$CTDB_OPTIONS --socket=$CTDB_SOCKET" + [ -z "$CTDB_PUBLIC_ADDRESSES" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-addresses=$CTDB_PUBLIC_ADDRESSES" + [ -z "$CTDB_PUBLIC_INTERFACE" ] || CTDB_OPTIONS="$CTDB_OPTIONS --public-interface=$CTDB_PUBLIC_INTERFACE" + [ -z "$CTDB_SINGLE_PUBLIC_IP" ] || CTDB_OPTIONS="$CTDB_OPTIONS --single-public-ip=$CTDB_SINGLE_PUBLIC_IP" + [ -z "$CTDB_DBDIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir=$CTDB_DBDIR" + [ -z "$CTDB_DBDIR_PERSISTENT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --dbdir-persistent=$CTDB_DBDIR_PERSISTENT" + [ -z "$CTDB_EVENT_SCRIPT_DIR" ] || CTDB_OPTIONS="$CTDB_OPTIONS --event-script-dir $CTDB_EVENT_SCRIPT_DIR" + [ -z "$CTDB_TRANSPORT" ] || CTDB_OPTIONS="$CTDB_OPTIONS --transport $CTDB_TRANSPORT" + [ -z "$CTDB_DEBUGLEVEL" ] || CTDB_OPTIONS="$CTDB_OPTIONS -d $CTDB_DEBUGLEVEL" + [ -z "$CTDB_START_AS_DISABLED" ] || [ "$CTDB_START_AS_DISABLED" != "yes" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --start-as-disabled" + } + [ -z "$CTDB_CAPABILITY_RECMASTER" ] || [ "$CTDB_CAPABILITY_RECMASTER" != "no" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --no-recmaster" + } + [ -z "$CTDB_CAPABILITY_LMASTER" ] || [ "$CTDB_CAPABILITY_LMASTER" != "no" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --no-lmaster" + } + [ -z "$CTDB_LVS_PUBLIC_IP" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --lvs" + } + [ -z "$CTDB_SCRIPT_LOG_LEVEL" ] || { + CTDB_OPTIONS="$CTDB_OPTIONS --script-log-level=$CTDB_SCRIPT_LOG_LEVEL" + } + + # check all persistent databases that they look ok + PERSISTENT_DB_DIR="/var/ctdb/persistent" + [ -z "$CTDB_DBDIR" ] || { + PERSISTENT_DB_DIR="$CTDB_DBDIR/persistent" + } + mkdir -p $PERSISTENT_DB_DIR 2>/dev/null + for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9] 2>/dev/null`; do + /usr/bin/tdbdump $PDBASE >/dev/null 2>/dev/null || { + eerror "Persistent database $PDBASE is corrupted! CTDB will not start." + return 1 + } + done + + start-stop-daemon --start --background --exec /usr/sbin/ctdbd \ + --pidfile /var/run/ctdbd.pid -- $CTDB_OPTIONS + eend $? + +} + +stop() { + start-stop-daemon --stop --exec /usr/sbin/ctdbd \ + --pidfile /var/run/ctdbd.pid +} + diff --git a/dev-db/ctdb/metadata.xml b/dev-db/ctdb/metadata.xml new file mode 100644 index 00000000000..587dabd73f1 --- /dev/null +++ b/dev-db/ctdb/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>samba</herd> +</pkgmetadata> |