summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/drbd/files')
-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
5 files changed, 102 insertions, 0 deletions
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