diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-05-26 18:54:58 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-05-26 18:54:58 +0200 |
commit | 475513d53a83680f7b7c5722115449084ad782d3 (patch) | |
tree | 3480f868b1f9d029edb1d8dda30cee0729454d70 | |
parent | 025d7bd800a666876ae420c212b9e5df76251cd5 (diff) |
drbd-utils: rename package and update
-rw-r--r-- | package/drbd-utils/Makefile | 39 | ||||
-rw-r--r-- | package/drbd-utils/files/drbd.conf | 21 | ||||
-rw-r--r-- | package/drbd-utils/files/drbd.conffiles | 1 |
3 files changed, 61 insertions, 0 deletions
diff --git a/package/drbd-utils/Makefile b/package/drbd-utils/Makefile new file mode 100644 index 000000000..26445fbe7 --- /dev/null +++ b/package/drbd-utils/Makefile @@ -0,0 +1,39 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(ADK_TOPDIR)/rules.mk + +PKG_NAME:= drbd-utils +PKG_VERSION:= 8.9.6 +PKG_RELEASE:= 1 +PKG_HASH:= 297b77c9b3f88de2e7dae459234f2753ea4fc2805282b2d276e35cf51e292913 +PKG_DESCR:= admin tools for drbd-utils +PKG_SECTION:= sys/fs +PKG_SITES:= http://oss.linbit.com/drbd/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz + +include $(ADK_TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,DRBD_UTILS,drbd-utils,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +XAKE_FLAGS+= GENETLINK_H=$(STAGING_TARGET_DIR)/usr/include/linux/genetlink.h +CONFIGURE_ARGS+= --with-distro=generic \ + --without-manual \ + --with-pacemaker \ + --without-heartbeat \ + --without-km \ + --without-xen \ + --without-udev + +drbd-utils-install: + $(INSTALL_DIR) $(IDIR_DRBD_UTILS)/etc + $(CP) ./files/drbd.conf $(IDIR_DRBD_UTILS)/etc + $(INSTALL_DIR) $(IDIR_DRBD_UTILS)/usr/lib/drbd + $(INSTALL_DIR) $(IDIR_DRBD_UTILS)/usr/sbin + $(CP) $(WRKINST)/usr/lib/drbd/* \ + $(IDIR_DRBD_UTILS)/usr/lib/drbd/ + $(INSTALL_BIN) $(WRKINST)/usr/sbin/drbd* \ + $(IDIR_DRBD_UTILS)/usr/sbin + +include ${ADK_TOPDIR}/mk/pkg-bottom.mk diff --git a/package/drbd-utils/files/drbd.conf b/package/drbd-utils/files/drbd.conf new file mode 100644 index 000000000..8eb55e497 --- /dev/null +++ b/package/drbd-utils/files/drbd.conf @@ -0,0 +1,21 @@ +#resource r1 { +# protocol C; +# +# startup { wfc-timeout 0; degr-wfc-timeout 120; } +# disk { on-io-error detach; } +# net { timeout 60; connect-int 10; ping-int 10; +# max-buffers 2048; max-epoch-size 2048; } +# syncer { rate 5M; } # sync when r0 and r1 are finished syncing. +# on alice { +# address 192.168.1.1:7790; +# disk /dev/sdb1; +# device /dev/drbd1; +# meta-disk "internal"; +# } +# on bob { +# address 192.168.1.2:7790; +# disk "/dev/sdb1"; +# device "/dev/drbd2"; +# meta-disk "internal"; +# } +#} diff --git a/package/drbd-utils/files/drbd.conffiles b/package/drbd-utils/files/drbd.conffiles new file mode 100644 index 000000000..9096001bf --- /dev/null +++ b/package/drbd-utils/files/drbd.conffiles @@ -0,0 +1 @@ +/etc/drbd.conf |