* [ptxdist] [PATCH] NBD: Add nbd-server and nbd-client as NBD package
@ 2015-10-26 11:08 Markus Pargmann
0 siblings, 0 replies; only message in thread
From: Markus Pargmann @ 2015-10-26 11:08 UTC (permalink / raw)
To: ptxdist; +Cc: Markus Pargmann
This adds a new NBD package for the latest nbd utils.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
rules/nbd.in | 7 +++++++
rules/nbd.make | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
create mode 100644 rules/nbd.in
create mode 100644 rules/nbd.make
diff --git a/rules/nbd.in b/rules/nbd.in
new file mode 100644
index 000000000000..25160963bda0
--- /dev/null
+++ b/rules/nbd.in
@@ -0,0 +1,7 @@
+## SECTION=networking
+
+config NBD
+ tristate
+ prompt "NBD server and client"
+ help
+ NBD client and server utils.
diff --git a/rules/nbd.make b/rules/nbd.make
new file mode 100644
index 000000000000..20ad79153df8
--- /dev/null
+++ b/rules/nbd.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Markus Pargmann <mpa@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NBD) += nbd
+
+#
+# Paths and names
+#
+NBD_VERSION := 3.11
+NBD_MD5 := 73d11644a28b9f335292cdb3bdc4b74b
+NBD := nbd-$(NBD_VERSION)
+NBD_SUFFIX := tar.xz
+NBD_URL := http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION)/$(NBD).$(NBD_SUFFIX)
+NBD_SOURCE := $(SRCDIR)/$(NBD).$(NBD_SUFFIX)
+NBD_DIR := $(BUILDDIR)/$(NBD)
+NBD_LICENSE := GPLv2
+
+#
+# autoconf
+#
+NBD_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/nbd.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, nbd)
+ @$(call install_fixup, nbd,PRIORITY,optional)
+ @$(call install_fixup, nbd,SECTION,base)
+ @$(call install_fixup, nbd,AUTHOR,"Markus Pargmann <mpa@pengutronix.de>")
+ @$(call install_fixup, nbd,DESCRIPTION,missing)
+
+ @$(call install_copy, nbd, 0, 0, 0755, $(NBD_DIR)/nbd-client, /bin/nbd-client)
+ @$(call install_copy, nbd, 0, 0, 0755, $(NBD_DIR)/nbd-server, /bin/nbd-server)
+
+ @$(call install_finish, nbd)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.6.1
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-26 11:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 11:08 [ptxdist] [PATCH] NBD: Add nbd-server and nbd-client as NBD package Markus Pargmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox