Skip to contentSkip to conversation

drbd-utils: new package

PATCH New Christophe Vu-Brugier 2 participants 2 messages Mar 12, 2015 – Apr 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drbd-utils: new package

DRBD utilities to manage the DRBD kernel module.

---
 package/Config.in                |  1 +
 package/drbd-utils/Config.in     |  8 ++++++++
 package/drbd-utils/drbd-utils.mk | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+)
 create mode 100644 package/drbd-utils/Config.in
 create mode 100644 package/drbd-utils/drbd-utils.mk
package/Config.in +1 -0
index a37e519..6b68427 100644
@@ -1090,6 +1090,7 @@ endif
 	source "package/dhcpcd/Config.in"
 	source "package/dhcpdump/Config.in"
 	source "package/dnsmasq/Config.in"
+	source "package/drbd-utils/Config.in"
 	source "package/dropbear/Config.in"
 	source "package/ebtables/Config.in"
 	source "package/ejabberd/Config.in"
package/drbd-utils/Config.in new file +8 -0
new file mode 100644
index 0000000..a8a0d34
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_DRBD_UTILS
+	bool "drbd-utils"
+	depends on BR2_LARGEFILE
+	depends on BR2_USE_MMU # needs fork()
+	help
+	  DRBD utilities to manage the DRBD kernel module.
+
+	  http://oss.linbit.com/drbd/
package/drbd-utils/drbd-utils.mk new file +34 -0
new file mode 100644
index 0000000..0da4b1f
@@ -0,0 +1,34 @@
+################################################################################
+#
+# drbd-utils
+#
+################################################################################
+
+DRBD_UTILS_VERSION = 8.9.1
+DRBD_UTILS_SITE = http://oss.linbit.com/drbd/
+DRBD_UTILS_LICENSE = GPLv2+
+DRBD_UTILS_LICENSE_FILES = COPYING
+
+DRBD_UTILS_CONF_OPTS = --with-distro=generic
+
+ifeq ($(BR2_INIT_SYSTEMD),y)
+DRBD_UTILS_CONF_OPTS += --with-initscripttype=systemd
+DRDB_UTILS_DEPENDENCIES += systemd
+else
+DRBD_UTILS_CONF_OPTS += --with-initscripttype=sysv
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+DRBD_UTILS_CONF_OPTS += --with-udev=yes
+DRDB_UTILS_DEPENDENCIES += udev
+else
+DRBD_UTILS_CONF_OPTS += --with-udev=no
+endif
+
+# Do not build the documentation because it requires docbook
+define DRBD_UTILS_DISABLE_DOCS
+	$(SED) 's/user scripts documentation/user scripts/' $(@D)/Makefile.in
+endef
+DRBD_UTILS_POST_PATCH_HOOKS += DRBD_UTILS_DISABLE_DOCS
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 drbd-utils: new package

Christophe,

Quoted 6 lines · Christophe Vu-Brugier
package/drbd-utils/Config.in new file +0 -0
new file mode 100644
index 0000000..a8a0d34

package/drbd-utils/Config.in line 8

Quoted 8 lines
package/drbd-utils/Config.in new file +8 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_DRBD_UTILS
+	bool "drbd-utils"
+	depends on BR2_LARGEFILE
+	depends on BR2_USE_MMU # needs fork()
+	help
+	  DRBD utilities to manage the DRBD kernel module.
+
+	  http://oss.linbit.com/drbd/

There should have been a comment about the BR2_LARGEFILE dependency here. But in the mean time, we entirely removed the BR2_LARGEFILE
option: from now on, we assume all toolchains have largefile support.

So I've simply removed the depends on BR2_LARGEFILE line.

Other than that, applied! Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com