All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Duffy <charles@dyfis.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] introduce nwipe package
Date: Tue, 13 Oct 2015 23:28:38 -0500	[thread overview]
Message-ID: <1444796918-22912-1-git-send-email-chaduffy@cisco.com> (raw)

From: Charles Duffy <charles@dyfis.net>

Signed-off-by: Charles Duffy <chaduffy@cisco.com>
---
 package/Config.in       |  1 +
 package/nwipe/Config.in |  9 +++++++++
 package/nwipe/nwipe.mk  | 27 +++++++++++++++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 package/nwipe/Config.in
 create mode 100644 package/nwipe/nwipe.mk

diff --git a/package/Config.in b/package/Config.in
index 8e3c64a..32affcc 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1496,6 +1496,7 @@ endif
 	source "package/ncdu/Config.in"
 	source "package/numactl/Config.in"
 	source "package/nut/Config.in"
+	source "package/nwipe/Config.in"
 	source "package/openvmtools/Config.in"
 	source "package/polkit/Config.in"
 	source "package/powerpc-utils/Config.in"
diff --git a/package/nwipe/Config.in b/package/nwipe/Config.in
new file mode 100644
index 0000000..0cecd25
--- /dev/null
+++ b/package/nwipe/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_NWIPE
+	bool "nwipe"
+	depends on BR2_USE_MMU # fork()
+	select BR2_PACKAGE_NCURSES
+	help
+	  nwipe thoroughly overwrites block devices, forked from a component at
+	  the core of the venerable DBAN.
+	
+	  https://github.com/martijnvanbrummelen/nwipe
diff --git a/package/nwipe/nwipe.mk b/package/nwipe/nwipe.mk
new file mode 100644
index 0000000..18efb22
--- /dev/null
+++ b/package/nwipe/nwipe.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# nwipe
+#
+################################################################################
+
+NWIPE_VERSION = 0.17
+NWIPE_SITE = https://github.com/martijnvanbrummelen/nwipe
+NWIPE_SITE_METHOD = git
+NWIPE_DEPENDENCIES = ncurses parted
+NWIPE_CONF_OPTS = --bindir=/bin
+NWIPE_LICENSE = GPL
+NWIPE_LICENSE_FILES = LICENCE
+
+define NWIPE_RUN_AUTOGEN
+	cd $(@D) && { printf '%s\n' '44a' 'AC_CHECK_LIB([intl], [libintl_dgettext]) # needed by static builds of libparted' 'AC_CHECK_LIB([uuid], [uuid_generate]) # needed by static builds of libparted' '.' 'w' | edit configure.ac; }
+	cd $(@D) && PATH=$(BR_PATH) ./init.sh
+endef
+NWIPE_PRE_CONFIGURE_HOOKS += NWIPE_RUN_AUTOGEN
+
+# to fix support for MUSL
+define NWIPE_USE_OFF64T
+	cd $(@D) && find . -type f -name '*.[ch]' -exec sed -i -r -e 's/loff_t/off64_t/g' -- '{}' +
+endef
+NWIPE_PRE_CONFIGURE_HOOKS += NWIPE_USE_OFF64T
+
+$(eval $(autotools-package))
-- 
2.0.0

             reply	other threads:[~2015-10-14  4:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14  4:28 Charles Duffy [this message]
2015-10-14 21:43 ` [Buildroot] [PATCH 1/1] introduce nwipe package Thomas Petazzoni

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=1444796918-22912-1-git-send-email-chaduffy@cisco.com \
    --to=charles@dyfis.net \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.