Skip to contentSkip to conversation

package/scrub: new package

PATCH New Samuel Martin 2 participants 3 messages Jan 17, 2016 – Jan 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/scrub: new package

---
 package/Config.in        |  1 +
 package/scrub/Config.in  |  7 +++++++
 package/scrub/scrub.hash |  2 ++
 package/scrub/scrub.mk   | 18 ++++++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/scrub/Config.in
 create mode 100644 package/scrub/scrub.hash
 create mode 100644 package/scrub/scrub.mk
package/Config.in +1 -0
index 06ed4a8..0f6a61c 100644
@@ -1585,6 +1585,7 @@ endif
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/rsyslog/Config.in"
 endif
+	source "package/scrub/Config.in"
 	source "package/scrypt/Config.in"
 	source "package/smack/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
package/scrub/Config.in new file +7 -0
new file mode 100644
index 0000000..3c7d28b
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_SCRUB
+	bool "scrub"
+	help
+	  Scrub iteratively writes patterns on files or disk devices to make
+	  retrieving the data more difficult.
+
+	  https://code.google.com/p/diskscrub/
package/scrub/scrub.hash new file +2 -0
new file mode 100644
index 0000000..42f7b2f
@@ -0,0 +1,2 @@
+# Locally computed
+sha256  838b061b2e1932b342fb9695c5579cdff5d2d72506cb41d6d8032eba18aed969  scrub-2.6.1.tar.gz
package/scrub/scrub.mk new file +18 -0
new file mode 100644
index 0000000..92837a1
@@ -0,0 +1,18 @@
+################################################################################
+#
+# scrub
+#
+################################################################################
+
+SCRUB_VERSION = 2.6.1
+SCRUB_SITE = $(call github,chaos,scrub,$(SCRUB_VERSION))
+SCRUB_LICENSE = GPLv2+
+SCRUB_LICENSE_FILES = COPYING
+
+# tarball of the git repo, but autoreconf does not work as expected, so:
+define SCRUB_AUTOCONF_HOOK
+	( cd $(@D) && PATH=$(BR_PATH) $(@D)/autogen.sh )
+endef
+SCRUB_PRE_CONFIGURE_HOOKS += SCRUB_AUTOCONF_HOOK
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/1 package/scrub: new package

Samuel,

Quoted 8 lines · Samuel Martin
package/scrub/scrub.mk new file +2 -0
new file mode 100644
index 0000000..92837a1
@@ -0,0 +1,18 @@
+################################################################################
+#

package/scrub/scrub.mk line 12

Quoted 10 lines
package/scrub/scrub.mk new file +10 -0
+# scrub
+#
+################################################################################
+
+SCRUB_VERSION = 2.6.1
+SCRUB_SITE = $(call github,chaos,scrub,$(SCRUB_VERSION))
+SCRUB_LICENSE = GPLv2+
+SCRUB_LICENSE_FILES = COPYING
+
+# tarball of the git repo, but autoreconf does not work as expected, so:

"tarball of the git repo" is unclear, you should rather say: "Fetching from the git repo, no configure/Makefile generated".

Also, how is it broken?

package/scrub/scrub.mk line 16

Quoted 4 lines
package/scrub/scrub.mk new file +4 -0
+define SCRUB_AUTOCONF_HOOK
+	( cd $(@D) && PATH=$(BR_PATH) $(@D)/autogen.sh )
+endef
+SCRUB_PRE_CONFIGURE_HOOKS += SCRUB_AUTOCONF_HOOK

This is broken if you don't depend on host-automake, host-libtool, host-autoconf.

Best regards,

Thomas

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

PATCH 1/1 package/scrub: new package

Hi Thomas,

Quoted 17 lines · Thomas Petazzoni

Samuel,

Quoted 13 lines · Samuel Martin
package/scrub/scrub.mk new file +7 -0
new file mode 100644
index 0000000..92837a1
@@ -0,0 +1,18 @@
+################################################################################
+#
+# scrub
+#
+################################################################################
+
+SCRUB_VERSION = 2.6.1
Quoted 8 lines

package/scrub/scrub.mk line 12

Quoted 5 lines
package/scrub/scrub.mk new file +5 -0
+SCRUB_SITE = $(call github,chaos,scrub,$(SCRUB_VERSION))
+SCRUB_LICENSE = GPLv2+
+SCRUB_LICENSE_FILES = COPYING
+
+# tarball of the git repo, but autoreconf does not work as expected, so:

"tarball of the git repo" is unclear, you should rather say: "Fetching from the git repo, no configure/Makefile generated".

Indeed, this is a much better wording :-)

Quoted 2 lines

Also, how is it broken?

I'll give more detail in the respin.

Quoted 8 lines

package/scrub/scrub.mk line 16

Quoted 5 lines
package/scrub/scrub.mk new file +4 -0
+define SCRUB_AUTOCONF_HOOK
+     ( cd $(@D) && PATH=$(BR_PATH) $(@D)/autogen.sh )
+endef
+SCRUB_PRE_CONFIGURE_HOOKS += SCRUB_AUTOCONF_HOOK

This is broken if you don't depend on host-automake, host-libtool, host-autoconf.

Hmm, good to know!
I somehow thought that every autotools packages would depend on these packages...
But it totally make sense they only depend on them when autoreconf is enabled.

Regards,

Signature · 1 line
Samuel