mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Markus Pargmann <mpa@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Markus Pargmann <mpa@pengutronix.de>
Subject: [ptxdist] [PATCH] NBD: Add nbd-server and nbd-client as NBD package
Date: Mon, 26 Oct 2015 12:08:59 +0100	[thread overview]
Message-ID: <1445857739-9049-1-git-send-email-mpa@pengutronix.de> (raw)

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

                 reply	other threads:[~2015-10-26 11:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445857739-9049-1-git-send-email-mpa@pengutronix.de \
    --to=mpa@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox