summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Imhof <tantive@gentoo.org>2003-09-02 15:46:35 +0000
committerMichael Imhof <tantive@gentoo.org>2003-09-02 15:46:35 +0000
commitee91ea5f4b7b2402843a1ce9af40fbaf89e0e441 (patch)
tree7d5bc7114e534ae9c000d7b7e9f05b9624c7d154 /sys-cluster
parentEbuild for 2.4.22 added, older ebuilds cleaned out (diff)
downloadgentoo-2-ee91ea5f4b7b2402843a1ce9af40fbaf89e0e441.tar.gz
gentoo-2-ee91ea5f4b7b2402843a1ce9af40fbaf89e0e441.tar.bz2
gentoo-2-ee91ea5f4b7b2402843a1ce9af40fbaf89e0e441.zip
Initial import. Should close #27626
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/drbd/ChangeLog24
-rw-r--r--sys-cluster/drbd/Manifest7
-rw-r--r--sys-cluster/drbd/drbd-0.6.6-r2.ebuild74
-rw-r--r--sys-cluster/drbd/files/0.6.6-Makefile.vars.patch23
-rw-r--r--sys-cluster/drbd/files/0.6.6-drbd-Makefile.patch21
-rw-r--r--sys-cluster/drbd/files/0.6.6-init19
-rw-r--r--sys-cluster/drbd/files/0.6.6-scripts-Makefile.patch38
-rw-r--r--sys-cluster/drbd/files/digest-drbd-0.6.6-r21
8 files changed, 207 insertions, 0 deletions
diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog
new file mode 100644
index 000000000000..2a9bcc760d4c
--- /dev/null
+++ b/sys-cluster/drbd/ChangeLog
@@ -0,0 +1,24 @@
+# ChangeLog for sys-cluster/drdb
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/ChangeLog,v 1.1 2003/09/02 15:46:16 tantive Exp $
+
+*drbd-0.6.6-r2.ebuild (02 Sep 2003)
+
+ 02 Sep 2003; Jan Krueger <jk@microgalaxy.net>
+ gentoo-ish init script, a wrapper for the original drbd init script
+ better portage-ification of ebuild
+ tweaks to the drbd installation process for better gentoo integration
+ modular patches for enhanced patch reusability
+
+*drbd-0.6.6-r1.ebuild (01 Sep 2003)
+
+ 01 Sep 2003; Jan Krueger <jk@microgalaxy.net>
+ proper handling of /var/lib/drbd
+ install some basic documentation
+
+*drbd-0.6.6.ebuild (31 Aug 2003)
+
+ 31 Aug 2003; Jan Krueger <jk@microgalaxy.net>
+ initial Version
+ we depend on vanilla-sources
+ only minor tweaks to Makefiles of orininal source tree
diff --git a/sys-cluster/drbd/Manifest b/sys-cluster/drbd/Manifest
new file mode 100644
index 000000000000..c12cd84cd70e
--- /dev/null
+++ b/sys-cluster/drbd/Manifest
@@ -0,0 +1,7 @@
+MD5 94a6b1d8678614a444ac8bc6bf018d8d drbd-0.6.6-r2.ebuild 1940
+MD5 99d12a470d38947f92555212692eedfa ChangeLog 873
+MD5 545a301fed86260ef910d0874f31bb2d files/0.6.6-Makefile.vars.patch 936
+MD5 54de4ff29f16698f6d1aa861935f7a53 files/0.6.6-drbd-Makefile.patch 816
+MD5 ce7682bc39b5263e80bea51b039e7252 files/0.6.6-init 256
+MD5 0fd7f6bf10cd5fc99f2c79c88355ea8c files/0.6.6-scripts-Makefile.patch 1008
+MD5 7fccd0c1159fb79cd60fc45ace182a56 files/digest-drbd-0.6.6-r2 62
diff --git a/sys-cluster/drbd/drbd-0.6.6-r2.ebuild b/sys-cluster/drbd/drbd-0.6.6-r2.ebuild
new file mode 100644
index 000000000000..db529159a1d4
--- /dev/null
+++ b/sys-cluster/drbd/drbd-0.6.6-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-0.6.6-r2.ebuild,v 1.1 2003/09/02 15:46:17 tantive Exp $
+
+LICENSE="GPL-2"
+KEYWORDS="x86"
+
+DESCRIPTION="mirror/replicate block-devices across a network-connection"
+SRC_URI="http://www.linbit.com/en/filemanager/download/44/drbd-${PV}.tar.gz"
+HOMEPAGE="http://www.drbd.org"
+
+IUSE=""
+
+DEPEND="=sys-kernel/vanilla-sources-2.4*"
+RDEPEND="=sys-cluster/heartbeat-1.0*"
+SLOT="0"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/0.6.6-Makefile.vars.patch
+ epatch ${FILESDIR}/0.6.6-drbd-Makefile.patch
+ epatch ${FILESDIR}/0.6.6-scripts-Makefile.patch
+}
+
+src_compile() {
+ check_KV
+ einfo ""
+ einfo "Your kernel-sources in /usr/src/linux-${KV} must be properly configured"
+ einfo "and match the currently running kernel version ${KV}"
+ einfo "If otherwise -> build will fail."
+ einfo ""
+ cd ${S}
+ emake || die
+}
+
+src_install() {
+ cd ${S}
+ make PREFIX=${D} install
+
+ # gentoo-ish init-script
+ dodir /etc
+ dodir /etc/init.d
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/0.6.6-init drbd
+
+ # needed by drbd startup script
+ dodir /var/lib/drbd
+ keepdir /var/lib/drbd
+
+ # docs
+ dodoc README ChangeLog COPYING
+ dodoc documentation/NFS-Server-README.txt
+ # we put drbd.conf into docs
+ # it doesnt make sense to install a default conf in /etc
+ # put it to the docs
+ dodoc scripts/drbd.conf
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "upgrading module dependencies ... "
+ /sbin/depmod -a -F /lib/modules/${KV}/build/System.map
+ einfo "... done"
+ einfo ""
+ einfo "Please remember to re-emerge drbd when you upgrade your kernel!"
+ einfo ""
+ einfo "Please copy and gunzip the configuration file"
+ einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc"
+ einfo "and edit it to your needs. Helpful commands:"
+ einfo "man 5 drbd.conf"
+ einfo "man 8 drbdsetup"
+ einfo ""
+}
diff --git a/sys-cluster/drbd/files/0.6.6-Makefile.vars.patch b/sys-cluster/drbd/files/0.6.6-Makefile.vars.patch
new file mode 100644
index 000000000000..2672b7b1ba52
--- /dev/null
+++ b/sys-cluster/drbd/files/0.6.6-Makefile.vars.patch
@@ -0,0 +1,23 @@
+--- ../drbd-cvs/drbd/Makefile.vars 2003-07-28 15:02:47.000000000 +0200
++++ Makefile.vars 2003-08-30 23:58:14.000000000 +0200
+@@ -49,7 +49,8 @@
+ $(if $(wildcard /etc/redhat-release),redhat,\
+ $(if $(wildcard /etc/slackware-version),slackware,\
+ $(if $(wildcard /etc/ROCK-VERSION),rock,\
+- $(if $(wildcard /var/lib/YaST*),suse,))))))
++ $(if $(wildcard /var/lib/YaST*),suse,\
++ $(if $(wildcard /etc/gentoo-release),gentoo,)))))))
+ SMPFLAG := \
+ $(shell if uname -a | grep SMP > /dev/null; then echo "-D__SMP__"; fi)
+ # do we need to check against kernel .config, too?
+--- ../drbd-cvs/drbd/Makefile.vars 2003-08-31 01:02:15.000000000 +0200
++++ Makefile.vars 2003-08-31 02:15:38.000000000 +0200
+@@ -23,7 +23,7 @@
+ # export all variables not explicitly _un_exported
+ export
+
+-PREFIX := /
++#PREFIX := /
+ #DEBUGFLAGS := -g -DDBG_ALL_SYMBOLS -DDBG_PRINTKS_RCV -DDBG_PRINTKS_SYNC
+ DEBUGFLAGS :=
+
diff --git a/sys-cluster/drbd/files/0.6.6-drbd-Makefile.patch b/sys-cluster/drbd/files/0.6.6-drbd-Makefile.patch
new file mode 100644
index 000000000000..312b3752715a
--- /dev/null
+++ b/sys-cluster/drbd/files/0.6.6-drbd-Makefile.patch
@@ -0,0 +1,21 @@
+--- ../drbd-cvs/drbd/drbd/Makefile 2003-05-22 14:19:16.000000000 +0200
++++ drbd/Makefile 2003-08-31 02:30:19.000000000 +0200
+@@ -155,12 +155,12 @@
+ install -d $(PREFIX)lib/modules/$(KERNVER)/$(KSUBD)
+ install -m 644 drbd.o $(PREFIX)lib/modules/$(KERNVER)/$(KSUBD)
+ install -d $(PREFIX)var/lib/drbd
+-ifeq ($(shell uname -r),$(KERNVER))
+- /sbin/depmod -a || depmod -e drbd.o 2>&1 >/dev/null || true
+-else
+- [ -e $(LINUX)/System.map ] && \
+- /sbin/depmod -F $(LINUX)/System.map -e drbd.o 2>&1 >/dev/null || true
+-endif
++#ifeq ($(shell uname -r),$(KERNVER))
++# /sbin/depmod -a || depmod -e drbd.o 2>&1 >/dev/null || true
++#else
++# [ -e $(LINUX)/System.map ] && \
++# /sbin/depmod -F $(LINUX)/System.map -e drbd.o 2>&1 >/dev/null || true
++#endif
+
+ uninstall:
+ rm $(PREFIX)lib/modules/$(KERNVER)/$(KSUBD)/drbd.o
diff --git a/sys-cluster/drbd/files/0.6.6-init b/sys-cluster/drbd/files/0.6.6-init
new file mode 100644
index 000000000000..f893172db3df
--- /dev/null
+++ b/sys-cluster/drbd/files/0.6.6-init
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+depend() {
+ use net
+ after logger
+ before nfs
+}
+
+start() {
+ ebegin "Starting drbd"
+ /sbin/drbd start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping drbd"
+ /sbin/drbd stop
+ eend $?
+}
diff --git a/sys-cluster/drbd/files/0.6.6-scripts-Makefile.patch b/sys-cluster/drbd/files/0.6.6-scripts-Makefile.patch
new file mode 100644
index 000000000000..dfee65212754
--- /dev/null
+++ b/sys-cluster/drbd/files/0.6.6-scripts-Makefile.patch
@@ -0,0 +1,38 @@
+--- ../drbd-cvs/drbd/scripts/Makefile 2003-07-14 10:43:25.000000000 +0200
++++ scripts/Makefile 2003-09-01 17:32:03.000000000 +0200
+@@ -42,6 +42,9 @@
+ INITD=$(PREFIX)etc/rc.d/init.d/
+ endif
+
++ifeq ($(DIST),gentoo)
++ INITD=$(PREFIX)sbin/
++endif
+
+ all:
+ ln -sf drbd datadisk
+@@ -52,16 +55,16 @@
+ mkdir -p $(PREFIX)etc/ha.d/resource.d
+ install -d $(INITD)
+ install -m 755 drbd $(INITD)
+- @ if [ ! -e $(PREFIX)etc/drbd.conf ]; then \
+- install -d $(PREFIX)etc/; \
+- install -m 644 drbd.conf $(PREFIX)etc/; \
+- fi
++# @ if [ ! -e $(PREFIX)etc/drbd.conf ]; then \
++# install -d $(PREFIX)etc/; \
++# install -m 644 drbd.conf $(PREFIX)etc/; \
++# fi
+ ln -f $(INITD)drbd $(PREFIX)etc/ha.d/resource.d/datadisk
+-ifeq ($(DIST),suse)
+- ln -sf $(INITD)drbd $(PREFIX)sbin/rcdrbd
+-endif
+- @ echo
+- @ echo "Don't forget to run update-rc.d or chkconfig"
++#ifeq ($(DIST),suse)
++# ln -sf $(INITD)drbd $(PREFIX)sbin/rcdrbd
++#endif
++# @ echo
++# @ echo "Don't forget to run update-rc.d or chkconfig"
+
+ clean:
+ rm -f *~
diff --git a/sys-cluster/drbd/files/digest-drbd-0.6.6-r2 b/sys-cluster/drbd/files/digest-drbd-0.6.6-r2
new file mode 100644
index 000000000000..104eaf7ad52b
--- /dev/null
+++ b/sys-cluster/drbd/files/digest-drbd-0.6.6-r2
@@ -0,0 +1 @@
+MD5 5e716f1616afa03cc5df898969df0b4a drbd-0.6.6.tar.gz 158633