#!/bin/sh

name="wipe"
title="wipe"
package="wipe"
version="0.16"
build="1"
noarch="n"
build_info="Standard build."

info="Cryptographically secure file wiping utility."
desc="Wipe is a tool for cryptographically secure file deletion from
magnetic media, to prevent using advanced recovery techniques
like magnetic force microscopy (MFM). Wipe will repeadetly
overwrites special patterns to the files to be destroyed, using
the fsync() call and/or the O_SYNC bit to force disk access.
In normal mode, 34 patterns are used (of which 8 are random)."
category="tools/fs"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="BUGS,CHANGES,GPL,README,secure_del.html"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source http://gsu.linux.org.tr/$name/$name-$version.tar.gz

replace_regexp $src1/Makefile '\-O9' '-O2 -g $(AM_CFLAGS)'

make_option linux

parent_package="$package"
write_info main

cd $src1

do_make

copy wipe $pkg_main/usr/bin
copy wipe.1 $pkg_main/usr/man/man1
copy examples/wipefd0 $pkg_main/usr/doc/$name-$version/examples
copy examples/wswap.pl $pkg_main/usr/doc/$name-$version/examples

change_mod main usr/doc/$name-$version/examples/wipefd0 644
change_mod main usr/doc/$name-$version/examples/wswap.pl 644

make_docs

make_package main

clean_up
