summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorDavid Anders <dave123@abcsinc.com>2006-01-23 18:12:10 +0000
committerDavid Anders <dave123@abcsinc.com>2006-01-23 18:12:10 +0000
commit07d0ca134266bdeb3724b4e5085617cc449fe2ef (patch)
tree0375dd9a5ef03088a717270861fbc4a95ff96bdb /package
parentdd7cf23085aa9a1f2a528130cbd0545858e9035d (diff)
add wipe per case 0000140
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/wipe/Config.in9
-rw-r--r--package/wipe/wipe.mk64
3 files changed, 74 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index a72c6432f..3875819aa 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -127,6 +127,7 @@ source "package/valgrind/Config.in"
source "package/vtun/Config.in"
source "package/wget/Config.in"
source "package/which/Config.in"
+source "package/wipe/Config.in"
source "package/wireless-tools/Config.in"
source "package/xfsprogs/Config.in"
source "package/xorg/Config.in"
diff --git a/package/wipe/Config.in b/package/wipe/Config.in
new file mode 100644
index 000000000..1ba5421ee
--- /dev/null
+++ b/package/wipe/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WIPE
+ bool "wipe"
+ default n
+ help
+ Wipe is a little command for securely erasing files
+ from magnetic media. It compiles under various unix platforms.
+
+ http://abaababa.ouvaton.org/wipe/
+
diff --git a/package/wipe/wipe.mk b/package/wipe/wipe.mk
new file mode 100644
index 000000000..db06c53aa
--- /dev/null
+++ b/package/wipe/wipe.mk
@@ -0,0 +1,64 @@
+#############################################################
+#
+# wipe
+#
+# http://abaababa.ouvaton.org/wipe/wipe-0.20.tar.gz
+#############################################################
+WIPE_SOURCE:=wipe-0.20.tar.gz
+#WIPE_PATCH:=wipe_0.2-19.diff.gz
+WIPE_SITE:=http://abaababa.ouvaton.org/wipe
+WIPE_CAT:=zcat
+WIPE_DIR:=$(BUILD_DIR)/wipe-0.20
+WIPE_BINARY:=wipe
+WIPE_TARGET_BINARY:=bin/wipe
+
+$(DL_DIR)/$(WIPE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(WIPE_SITE)/$(WIPE_SOURCE)
+
+$(DL_DIR)/$(WIPE_PATCH):
+ $(WGET) -P $(DL_DIR) $(WIPE_SITE)/$(WIPE_PATCH)
+
+wipe-source: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
+
+$(WIPE_DIR)/.unpacked: $(DL_DIR)/$(WIPE_SOURCE) $(DL_DIR)/$(WIPE_PATCH)
+ $(WIPE_CAT) $(DL_DIR)/$(WIPE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(WIPE_DIR) $(DL_DIR) $(WIPE_PATCH)
+ touch $(WIPE_DIR)/.unpacked
+
+$(WIPE_DIR)/.configured: $(WIPE_DIR)/.unpacked
+ (cd $(WIPE_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ $(DISABLE_NLS) \
+ );
+ touch $(WIPE_DIR)/.configured
+
+$(WIPE_DIR)/$(WIPE_BINARY): $(WIPE_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(WIPE_DIR)
+
+$(TARGET_DIR)/$(WIPE_TARGET_BINARY): $(WIPE_DIR)/$(WIPE_BINARY)
+ cp -a $(WIPE_DIR)/$(WIPE_BINARY) $(TARGET_DIR)/$(WIPE_TARGET_BINARY)
+
+wipe: uclibc $(TARGET_DIR)/$(WIPE_TARGET_BINARY)
+
+wipe-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(WIPE_DIR) uninstall
+ -$(MAKE) -C $(WIPE_DIR) clean
+
+wipe-dirclean:
+ rm -rf $(WIPE_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_WIPE)),y)
+TARGETS+=wipe
+endif