* [Buildroot] [PATCH] package/scrub: new package
@ 2016-01-17 22:04 Samuel Martin
2016-01-18 9:23 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Martin @ 2016-01-17 22:04 UTC (permalink / raw)
To: buildroot
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
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
diff --git a/package/Config.in b/package/Config.in
index 06ed4a8..0f6a61c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
diff --git a/package/scrub/Config.in b/package/scrub/Config.in
new file mode 100644
index 0000000..3c7d28b
--- /dev/null
+++ b/package/scrub/Config.in
@@ -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/
diff --git a/package/scrub/scrub.hash b/package/scrub/scrub.hash
new file mode 100644
index 0000000..42f7b2f
--- /dev/null
+++ b/package/scrub/scrub.hash
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 838b061b2e1932b342fb9695c5579cdff5d2d72506cb41d6d8032eba18aed969 scrub-2.6.1.tar.gz
diff --git a/package/scrub/scrub.mk b/package/scrub/scrub.mk
new file mode 100644
index 0000000..92837a1
--- /dev/null
+++ b/package/scrub/scrub.mk
@@ -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))
--
2.7.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/scrub: new package
2016-01-17 22:04 [Buildroot] [PATCH] package/scrub: new package Samuel Martin
@ 2016-01-18 9:23 ` Thomas Petazzoni
2016-01-18 10:37 ` Samuel Martin
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-01-18 9:23 UTC (permalink / raw)
To: buildroot
Samuel,
On Sun, 17 Jan 2016 23:04:53 +0100, Samuel Martin wrote:
> diff --git a/package/scrub/scrub.mk b/package/scrub/scrub.mk
> new file mode 100644
> index 0000000..92837a1
> --- /dev/null
> +++ b/package/scrub/scrub.mk
> @@ -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:
"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?
> +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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/scrub: new package
2016-01-18 9:23 ` Thomas Petazzoni
@ 2016-01-18 10:37 ` Samuel Martin
0 siblings, 0 replies; 3+ messages in thread
From: Samuel Martin @ 2016-01-18 10:37 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, Jan 18, 2016 at 10:23 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Samuel,
>
> On Sun, 17 Jan 2016 23:04:53 +0100, Samuel Martin wrote:
>
>> diff --git a/package/scrub/scrub.mk b/package/scrub/scrub.mk
>> new file mode 100644
>> index 0000000..92837a1
>> --- /dev/null
>> +++ b/package/scrub/scrub.mk
>> @@ -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:
>
> "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 :-)
>
> Also, how is it broken?
I'll give more detail in the respin.
>
>> +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,
--
Samuel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-18 10:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-17 22:04 [Buildroot] [PATCH] package/scrub: new package Samuel Martin
2016-01-18 9:23 ` Thomas Petazzoni
2016-01-18 10:37 ` Samuel Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox