summaryrefslogtreecommitdiff
path: root/package/drbd
diff options
context:
space:
mode:
Diffstat (limited to 'package/drbd')
-rw-r--r--package/drbd/Makefile32
-rw-r--r--package/drbd/patches/patch-Makefile_in11
-rw-r--r--package/drbd/patches/patch-drbd_Makefile11
-rw-r--r--package/drbd/patches/patch-drbd_drbd_buildtag_c9
4 files changed, 63 insertions, 0 deletions
diff --git a/package/drbd/Makefile b/package/drbd/Makefile
new file mode 100644
index 000000000..c8d69e2a0
--- /dev/null
+++ b/package/drbd/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= drbd
+PKG_VERSION:= 8.3.8.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 551dae488006af86a33eab1eba407f48
+PKG_DESCR:= DRBD admin tools
+PKG_SECTION:= fs
+PKG_URL:= http://www.drbd.org/
+PKG_SITES:= http://oss.linbit.com/drbd/8.3/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,DRBD,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIGURE_ARGS+= --with-distro=generic \
+ --without-km \
+ --without-xen \
+ --without-udev
+
+post-install:
+ $(INSTALL_DIR) $(IDIR_DRBD)/usr/lib/drbd
+ $(INSTALL_DIR) $(IDIR_DRBD)/usr/sbin
+ $(CP) $(WRKINST)/usr/lib/drbd/* \
+ $(IDIR_DRBD)/usr/lib/drbd/
+ $(INSTALL_BIN) $(WRKINST)/sbin/drbd* \
+ $(IDIR_DRBD)/usr/sbin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/drbd/patches/patch-Makefile_in b/package/drbd/patches/patch-Makefile_in
new file mode 100644
index 000000000..bce8496a1
--- /dev/null
+++ b/package/drbd/patches/patch-Makefile_in
@@ -0,0 +1,11 @@
+--- drbd-8.3.8.1.orig/Makefile.in 2010-07-09 10:13:59.000000000 +0200
++++ drbd-8.3.8.1/Makefile.in 2010-11-26 19:00:49.000000000 +0100
+@@ -47,7 +47,7 @@ WITH_BASHCOMPLETION = @WITH_BASHCOMPLETI
+ # and not in e.g. dash. I'm too lazy to fix it to be compatible.
+ SHELL=/bin/bash
+
+-SUBDIRS = user scripts documentation drbd
++SUBDIRS = user scripts drbd
+
+ REL_VERSION := $(shell $(SED) -ne '/^\#define REL_VERSION/{s/^[^"]*"\([^ "]*\).*/\1/;p;q;}' drbd/linux/drbd_config.h)
+ ifdef FORCE
diff --git a/package/drbd/patches/patch-drbd_Makefile b/package/drbd/patches/patch-drbd_Makefile
new file mode 100644
index 000000000..809caca26
--- /dev/null
+++ b/package/drbd/patches/patch-drbd_Makefile
@@ -0,0 +1,11 @@
+--- drbd-8.3.8.1.orig/drbd/Makefile 2010-07-06 09:47:59.000000000 +0200
++++ drbd-8.3.8.1/drbd/Makefile 2010-11-26 18:59:47.000000000 +0100
+@@ -132,7 +132,7 @@ else
+ echo -e "\treturn \"GIT-hash: $$GITHEAD$$GITDIFF\""; \
+ fi ; \
+ echo -e "\t\t\" build by $$USER@$$HOSTNAME, `date "+%F %T"`\";\n}"; \
+- mv --force $@.new $@
++ mv -f $@.new $@
+
+ kbuild: drbd_buildtag.c
+ @rm -f .drbd_kernelrelease*
diff --git a/package/drbd/patches/patch-drbd_drbd_buildtag_c b/package/drbd/patches/patch-drbd_drbd_buildtag_c
new file mode 100644
index 000000000..7a8358ea7
--- /dev/null
+++ b/package/drbd/patches/patch-drbd_drbd_buildtag_c
@@ -0,0 +1,9 @@
+--- drbd-8.3.8.1.orig/drbd/drbd_buildtag.c 2010-07-09 10:19:05.000000000 +0200
++++ drbd-8.3.8.1/drbd/drbd_buildtag.c 2010-11-26 18:59:58.000000000 +0100
+@@ -3,5 +3,5 @@
+ const char *drbd_buildtag(void)
+ {
+ return "GIT-hash: 0d8589fcc32c874df57c930ca1691399b55ec893"
+- " build by lars@soda, 2010-07-09 10:19:24";
++ " build by wbx@neon.lan, 2010-11-26 18:59:58";
+ }