blob: 14b43d045cf353af47590bfb972e98bde7048381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/secure-delete/secure-delete-2.3.ebuild,v 1.3 2003/02/13 09:09:00 vapier Exp $
DESCRIPTION="Secure file/disk/swap/memory erasure utlities"
HOMEPAGE="http://www.thehackerschoice.com/"
SRC_URI="http://www.thehackerschoice.com/releases/${PN//-/_}-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
S="${WORKDIR}/${PN//-/_}-${PV}"
src_unpack() {
unpack ${A}
cd ${S}
mv Makefile Makefile.orig
sed <Makefile.orig >Makefile \
-e "s|^OPT=-O2|OPT=${CFLAGS} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64|" \
-e "s|^INSTALL_DIR=.*|INSTALL_DIR=${D}/usr/bin|" \
-e "s|^MAN_DIR=.*|MAN_DIR=${D}/usr/share/man|"
mv sfill.c sfill.c.orig
sed <sfill.c.orig >sfill.c \
-e 's|mktemp|mkstemp|g'
}
src_compile() {
emake || die "compile problem"
}
src_install() {
make install || die
dodoc secure_delete.doc usenix6-gutmann.doc
}
pkg_postinst() {
einfo "sfill and srm are useless on journalling filesystems, such as reiserfs or XFS."
einfo "See documentation for more information."
}
|