freebsd-ports/security/secure_delete/files/patch-Makefile
Florent Thoumie 531ab5d4d4 Add secure_delete 3.1, a secure data deletion toolkit.
PR:		ports/69556
Submitted by:	bugghy <bugghy@phenix.rootshell.be>
Approved by:	pav (mentor)
2005-03-07 22:43:09 +00:00

30 lines
1.3 KiB
Text

--- Makefile.orig
+++ Makefile
@@ -1,13 +1,12 @@
-CC=gcc
-OPT=-O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+OPT=${CFLAGS}
#OPT=-Wall -D_DEBUG_ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-INSTALL_DIR=/usr/local/bin
-MAN_DIR=/usr/local/man
-DOC_DIR=/usr/share/doc/secure_delete
+INSTALL_DIR=${PREFIX}/bin
+MAN_DIR=${PREFIX}/man
+DOC_DIR=${PREFIX}/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
+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."
@@ -47,7 +46,7 @@
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 && 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."