diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2015-11-05 09:47:30 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-11-06 17:53:58 +0100 |
commit | f0fa58e2c5b6e5e0b9be3bdbd3100f773e17dacf (patch) | |
tree | 3803f2deab5591379d938d1e2b66e71955423b4e /meta-oe/recipes-extended/wipe | |
parent | 105e117645cfd1068db8d3522732dd9e76fc6953 (diff) | |
download | meta-openembedded-contrib-f0fa58e2c5b6e5e0b9be3bdbd3100f773e17dacf.tar.gz |
wipe: add version 0.23
Wipe is a little command for securely erasing files from magnetic media.
We do not support native, because wipe needs root permission.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/wipe')
-rw-r--r-- | meta-oe/recipes-extended/wipe/files/support-cross-compile-for-linux.patch | 36 | ||||
-rw-r--r-- | meta-oe/recipes-extended/wipe/wipe_git.bb | 26 |
2 files changed, 62 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/wipe/files/support-cross-compile-for-linux.patch b/meta-oe/recipes-extended/wipe/files/support-cross-compile-for-linux.patch new file mode 100644 index 0000000000..fb3aee8067 --- /dev/null +++ b/meta-oe/recipes-extended/wipe/files/support-cross-compile-for-linux.patch @@ -0,0 +1,36 @@ +From 35f14bd5aba2ed6cee258e11eab42c408afc04d0 Mon Sep 17 00:00:00 2001 +From: Hongxu Jia <hongxu.jia@windriver.com> +Date: Wed, 4 Nov 2015 02:29:05 -0500 +Subject: [PATCH] Makefile: support cross compile for linux + +Upstream-Status: Pending +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> +--- + Makefile | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 17d9758..9e74cdf 100644 +--- a/Makefile ++++ b/Makefile +@@ -41,7 +41,7 @@ + # Linux 2.0.x + # + +-CC_LINUX=gcc ++CC_LINUX=$(CC) + CCO_LINUX=-Wall -DHAVE_DEV_URANDOM -DHAVE_OSYNC -DHAVE_STRCASECMP -DHAVE_RANDOM -DWEAK_RC6 -DSYNC_WAITS_FOR_SYNC -DFIND_DEVICE_SIZE_BY_BLKGETSIZE -DSIXTYFOUR -D__USE_LARGEFILE -D_FILE_OFFSET_BITS=64 + # default should be to turn off debugging and to turn on optimization. + #CCO_LINUX+=-O9 -pipe -fomit-frame-pointer -finline-functions -funroll-loops -fstrength-reduce +@@ -185,6 +185,7 @@ clean : + rm -f wipe $(OBJECTS) wipe.tr-asc.1 version.h + + install: +- install -m755 -o root -g root wipe $(DESTDIR)/usr/bin ++ [ -e $(DESTDIR)$(bindir) ] || mkdir -p $(DESTDIR)$(bindir) ++ install -m755 -o root -g root wipe $(DESTDIR)$(bindir) + + .PHONY: always clean install +-- +1.9.1 + diff --git a/meta-oe/recipes-extended/wipe/wipe_git.bb b/meta-oe/recipes-extended/wipe/wipe_git.bb new file mode 100644 index 0000000000..70229f014e --- /dev/null +++ b/meta-oe/recipes-extended/wipe/wipe_git.bb @@ -0,0 +1,26 @@ +SUMMARY = "A UNIX tool for secure deletion" +DESCRIPTION = "Wipe is a little command for securely erasing files from \ +magnetic media. It compiles under various unix platforms, \ +including Linux 2. * , (Open, Net, Free)BSD, aix 4.1, SunOS \ +5.5.1, Solaris 2.6. wipe is released under the GPL. Pre-compiled \ +packages are available on most Linux distributions. \ +Under Debian, the package name is wipe" +HOMEPAGE = "http://lambda-diode.com/software/wipe/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://GPL;md5=0636e73ff0215e8d672dc4c32c317bb3" + +SRC_URI = "git://github.com/berke/wipe.git;branch=master \ + file://support-cross-compile-for-linux.patch \ + " +SRCREV = "d9c100c9cd0b1cbbe4359e4d6c9a035d11e7597c" +PV = "0.23+git${SRCPV}" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = "linux" + +do_install() { + make install DESTDIR=${D} +} + +do_configure[noexec] = "1" |