Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=17139e80a0c5ead2860c47f7e1ade22322c6106e

commit 17139e80a0c5ead2860c47f7e1ade22322c6106e
Author: exceed <exceed.ced...@gmail.com>
Date:   Sun Oct 11 23:57:25 2009 +0200

secure-delete-3.1-1-i686

* New package
* Closes FS#3837

diff --git a/source/apps-extra/secure-delete/FrugalBuild 
b/source/apps-extra/secure-delete/FrugalBuild
new file mode 100644
index 0000000..d6ae60b
--- /dev/null
+++ b/source/apps-extra/secure-delete/FrugalBuild
@@ -0,0 +1,19 @@
+# Compiling Time: 0 SBU
+# Maintainer: exceed <exceed.ced...@gmail.com>
+
+pkgname=secure-delete
+_F_archive_name=secure_delete
+pkgver=3.1
+pkgrel=1
+pkgdesc="Secure data deletion toolkit"
+url="http://freeworld.thc.org/releases.php?q=securedelete";
+depends=('glibc')
+groups=('apps-extra')
+archs=('i686')
+conflicts=('srm')
+up2date="Flasttar $url"
+source=(http://www.packetstormsecurity.org/groups/thc/$_F_archive_name-$pkgver.tar.gz
 gcc.patch)
+sha1sums=('f08b536bcd7244ce8868356a1e3bd1d94ac3e213' \
+          '6a96f7b3a19783b9180be4321ad94b1f4bbad7dc')
+
+# optimization OK
diff --git a/source/apps-extra/secure-delete/gcc.patch 
b/source/apps-extra/secure-delete/gcc.patch
new file mode 100644
index 0000000..a6e50ca
--- /dev/null
+++ b/source/apps-extra/secure-delete/gcc.patch
@@ -0,0 +1,61 @@
+--- secure-delete-3.1.orig/Makefile
++++ secure-delete-3.1/Makefile
+@@ -1,19 +1,19 @@
+ CC=gcc
+-OPT=-O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
++OPT=$(CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+ #OPT=-Wall -D_DEBUG_ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+-INSTALL_DIR=/usr/local/bin
++INSTALL_DIR=$(prefix)/bin
+ MAN_DIR=/usr/local/man
+ DOC_DIR=/usr/share/doc/secure_delete
+ OPT_MOD=-D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -pipe 
-mpreferred-stack-boundary=2
+ #LD_MOD=-r
+
+-all: sdel-lib.o srm sfill sswap smem sdel-mod.o
+-      @echo
+-      @echo "A Puritan is someone who is deathly afraid that someone, 
somewhere, is"
+-      @echo "having fun."
+-      @echo
+-      @echo "I hope YOU have fun!"
+-      @echo
++all: sdel-lib.o srm sfill sswap smem
++#     @echo
++#     @echo "A Puritan is someone who is deathly afraid that someone, 
somewhere, is"
++#     @echo "having fun."
++#     @echo
++#     @echo "I hope YOU have fun!"
++#     @echo
+
+ sdel-mod.o: sdel-mod.c
+       $(CC) $(OPT) $(OPT_MOD) $(LD_MOD) -I/lib/modules/`uname 
-r`/build/include -c sdel-mod.c
+@@ -39,16 +39,16 @@
+
+ install: all
+       mkdir -p -m 755 ${INSTALL_DIR} 2> /dev/null
+-      rm -f sdel && ln -s srm sdel
+-      cp -f sdel srm sfill sswap smem the_cleaner.sh ${INSTALL_DIR}
+-      chmod 711 ${INSTALL_DIR}/srm ${INSTALL_DIR}/sfill ${INSTALL_DIR}/sswap 
${INSTALL_DIR}/smem ${INSTALL_DIR}/the_cleaner.sh
+-      mkdir -p -m 755 ${MAN_DIR}/man1 2> /dev/null
+-      cp -f srm.1 sfill.1 sswap.1 smem.1 ${MAN_DIR}/man1
+-      chmod 644 ${MAN_DIR}/man1/srm.1 ${MAN_DIR}/man1/sfill.1 
${MAN_DIR}/man1/sswap.1 ${MAN_DIR}/man1/smem.1
+-      mkdir -p -m 755 ${DOC_DIR} 2> /dev/null
+-      cp -f CHANGES FILES README secure_delete.doc usenix6-gutmann.doc 
${DOC_DIR}
+-      -test -e sdel-mod.o && cp -f sdel-mod.o /lib/modules/`uname 
-r`/kernel/drivers/char
++#     rm -f sdel && ln -s srm sdel
++      cp -f srm sfill sswap smem ${INSTALL_DIR}
++      chmod 711 ${INSTALL_DIR}/srm ${INSTALL_DIR}/sfill ${INSTALL_DIR}/sswap 
${INSTALL_DIR}/smem
++#     mkdir -p -m 755 ${MAN_DIR}/man1 2> /dev/null
++#     cp -f srm.1 sfill.1 sswap.1 smem.1 ${MAN_DIR}/man1
++#     chmod 644 ${MAN_DIR}/man1/srm.1 ${MAN_DIR}/man1/sfill.1 
${MAN_DIR}/man1/sswap.1 ${MAN_DIR}/man1/smem.1
++#     mkdir -p -m 755 ${DOC_DIR} 2> /dev/null
++#     cp -f CHANGES FILES README secure_delete.doc usenix6-gutmann.doc 
${DOC_DIR}
++#     -test -e sdel-mod.o && cp -f sdel-mod.o /lib/modules/`uname 
-r`/kernel/drivers/char
+ #     @-test '!' -e sdel-mod.o -a `uname -s` = 'Linux' && echo "type \"make 
sdel-mod install\" to compile and install the Linux loadable kernel module for 
secure delete"
+-      @echo
+-      @echo "If men could get pregnant, abortion would be a sacrament."
+-      @echo
++#     @echo
++#     @echo "If men could get pregnant, abortion would be a sacrament."
++#     @echo
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to