pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/wipe Import wipe from pkgsrc-wip. Packaged b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/66bd88eb6dfe
branches:  trunk
changeset: 479548:66bd88eb6dfe
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon Aug 16 20:15:54 2004 +0000

description:
Import wipe from pkgsrc-wip.  Packaged by pancake and modified by me.

Wipe is a secure file wiping utility.

There are some low level issues that must be taken into consideration.
One of these is that there must be some sort of write barrier between
passes.  Wipe uses fdatasync(2) (or fsync(2)) as a write barrier, or
if fsync(2) isn't available, the file is opened with the O_DSYNC or
O_SYNC flag.  For wipe to be effective, each pass must be completely
written.  To ensure this, the drive must support some form of a write
barrier, write cache flush, or write cache disabling.  SCSI supports
ordered command tags, has a force media access bit for commands, and
write cache can be disable on mode page 8.  IDE/ATA drives support
write cache flushes and write cache disabling.

Unfortunately, not all drives actually disable write cache when asked
to.  Those drives are broken.  Write caching should always be
disabled, unless your system is battery backed and always powers down
cleanly.

diffstat:

 sysutils/wipe/DESCR            |  17 +++++++++++++++++
 sysutils/wipe/Makefile         |  18 ++++++++++++++++++
 sysutils/wipe/PLIST            |  11 +++++++++++
 sysutils/wipe/distinfo         |   5 +++++
 sysutils/wipe/patches/patch-aa |  26 ++++++++++++++++++++++++++
 5 files changed, 77 insertions(+), 0 deletions(-)

diffs (97 lines):

diff -r 9b511791d568 -r 66bd88eb6dfe sysutils/wipe/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/wipe/DESCR       Mon Aug 16 20:15:54 2004 +0000
@@ -0,0 +1,17 @@
+Wipe is a secure file wiping utility.
+
+There are some low level issues that must be taken into consideration.
+One of these is that there must be some sort of write barrier between
+passes.  Wipe uses fdatasync(2) (or fsync(2)) as a write barrier, or
+if fsync(2) isn't available, the file is opened with the O_DSYNC or
+O_SYNC flag.  For wipe to be effective, each pass must be completely
+written.  To ensure this, the drive must support some form of a write
+barrier, write cache flush, or write cache disabling.  SCSI supports
+ordered command tags, has a force media access bit for commands, and
+write cache can be disable on mode page 8.  IDE/ATA drives support
+write cache flushes and write cache disabling.
+
+Unfortunately, not all drives actually disable write cache when asked
+to.  Those drives are broken.  Write caching should always be
+disabled, unless your system is battery backed and always powers down
+cleanly.
diff -r 9b511791d568 -r 66bd88eb6dfe sysutils/wipe/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/wipe/Makefile    Mon Aug 16 20:15:54 2004 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/08/16 20:15:54 minskim Exp $
+#
+
+DISTNAME=              wipe-2.2.0
+CATEGORIES=            sysutils
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=wipe/}
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            pancake%phreaker.net@localhost
+HOMEPAGE=              http://wipe.sourceforge.net/
+COMMENT=               Secure data destruction
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+USE_BUILDLINK3=                yes
+GNU_CONFIGURE=         yes
+
+.include "../../mk/bsd.pkg.mk"
diff -r 9b511791d568 -r 66bd88eb6dfe sysutils/wipe/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/wipe/PLIST       Mon Aug 16 20:15:54 2004 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/16 20:15:54 minskim Exp $
+bin/wipe
+man/man1/wipe.1
+share/doc/wipe/CHANGES
+share/doc/wipe/INSTALL
+share/doc/wipe/LICENSE
+share/doc/wipe/README
+share/doc/wipe/TESTING
+share/doc/wipe/TODO
+share/doc/wipe/copyright
+@dirrm share/doc/wipe
diff -r 9b511791d568 -r 66bd88eb6dfe sysutils/wipe/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/wipe/distinfo    Mon Aug 16 20:15:54 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/08/16 20:15:54 minskim Exp $
+
+SHA1 (wipe-2.2.0.tar.bz2) = 4dd18f260ecd91b726336b2788fa33db04d6691a
+Size (wipe-2.2.0.tar.bz2) = 70134 bytes
+SHA1 (patch-aa) = d40a3324eb5e8473d7a3a6acbc307c2ab63d60de
diff -r 9b511791d568 -r 66bd88eb6dfe sysutils/wipe/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/wipe/patches/patch-aa    Mon Aug 16 20:15:54 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/08/16 20:15:54 minskim Exp $
+
+--- Makefile.in.orig   2003-08-30 20:18:03.000000000 -0500
++++ Makefile.in
+@@ -57,15 +57,15 @@ info:   $(BIN_OUT)
+       @ldd $(BIN_OUT)
+ 
+ install: $(BIN_OUT)
+-      $(INSTALL_BIN) -d $(bindir)
+-      $(INSTALL_BIN) -s $(BIN_OUT) $(bindir)
+-      $(INSTALL) -d $(mandir)/man1
+-      $(INSTALL) -o root -m 0644 wipe.1 $(mandir)/man1/
++      $(BSD_INSTALL_PROGRAM_DIR) $(bindir)
++      $(BSD_INSTALL_PROGRAM) $(BIN_OUT) $(bindir)
++      $(BSD_INSTALL_MAN_DIR) $(mandir)/man1
++      $(BSD_INSTALL_MAN) wipe.1 $(mandir)/man1/
+       rm -rf $(datadir)/doc/wipe*
+-      $(INSTALL) -d $(datadir)/doc/wipe
++      $(BSD_INSTALL_DATA_DIR) $(datadir)/doc/wipe
+ 
+       for file in $(DOCS); do \
+-              $(INSTALL) -o root -m 0644 $$file $(datadir)/doc/wipe/; \
++              $(BSD_INSTALL_DATA) $$file $(datadir)/doc/wipe/; \
+       done
+ 
+ install_home: $(BIN_OUT)



Home | Main Index | Thread Index | Old Index