diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2006-01-05 04:34:52 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2006-01-05 04:34:52 +0800 |
commit | 146a757d435521dcf78fae73497eb2c2ae818300 (patch) | |
tree | 409a29d5247cdb26aff35567522d96272dda4b39 /sysutils | |
parent | 8d012a98f04a5b2f6e7cb0811c367b12e2a9fa09 (diff) | |
download | freebsd-ports-gnome-146a757d435521dcf78fae73497eb2c2ae818300.tar.gz freebsd-ports-gnome-146a757d435521dcf78fae73497eb2c2ae818300.tar.zst freebsd-ports-gnome-146a757d435521dcf78fae73497eb2c2ae818300.zip |
Add zeroer, a command line utility for wiping unallocated space on
a filesystem.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/zeroer/Makefile | 38 | ||||
-rw-r--r-- | sysutils/zeroer/distinfo | 3 | ||||
-rw-r--r-- | sysutils/zeroer/pkg-descr | 10 |
4 files changed, 52 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 449c2c491441..03bc571acc63 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -634,6 +634,7 @@ SUBDIR += xwipower SUBDIR += xwlans SUBDIR += yawho + SUBDIR += zeroer SUBDIR += zidrav SUBDIR += zisofs-tools diff --git a/sysutils/zeroer/Makefile b/sysutils/zeroer/Makefile new file mode 100644 index 000000000000..95a32feb21dc --- /dev/null +++ b/sysutils/zeroer/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: zeroer +# Date created: 2 Jan 2006 +# Whom: Emanuel Haupt <ehaupt@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= zeroer +PORTVERSION= 0.1 +CATEGORIES= sysutils +MASTER_SITES= http://critical.ch/${PORTNAME}/ + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= A command line utility for wiping unallocated space on a filesystem + +LIB_DEPENDS= popt:${PORTSDIR}/devel/popt + +MAN1= zeroer.1 +PLIST_FILES= bin/zeroer +PORTDOCS= README + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lpopt + +do-build: + ${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.c \ + -o ${WRKSRC}/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/sysutils/zeroer/distinfo b/sysutils/zeroer/distinfo new file mode 100644 index 000000000000..b28972636b30 --- /dev/null +++ b/sysutils/zeroer/distinfo @@ -0,0 +1,3 @@ +MD5 (zeroer-0.1.tar.gz) = 7e48ba06395f77dd93824006ce4f805f +SHA256 (zeroer-0.1.tar.gz) = be97127fa77979c41f0fedbd4deb0a2942df569becd3223cbe474a8ed1a35408 +SIZE (zeroer-0.1.tar.gz) = 10383 diff --git a/sysutils/zeroer/pkg-descr b/sysutils/zeroer/pkg-descr new file mode 100644 index 000000000000..aaf30892a655 --- /dev/null +++ b/sysutils/zeroer/pkg-descr @@ -0,0 +1,10 @@ +The zeroer utility can be used to wipe empty space on a disk. In contrary to dd, +zeroer does not wipe existing files on a partition. It overwrites the +unallocated disk space around existing files, which means that deleted files +cannot be restored after processing a certain partition with zeroer. + +The utility's principle consists in writing huge zero-padded memory blocks to a +file. To a certain extent this works similar to dd, however zeroer dynamically +reduces the blockwriter's buffer size when the filesystem is going to be full. + +WWW: http://critical.ch/zeroer/ |