blob: d80d23c42828e2e1c229cad2246f9a93828aec66 (
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
43
44
45
46
47
48
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/bcwipe/bcwipe-1.9.1.ebuild,v 1.3 2009/05/31 16:36:55 maekke Exp $
EAPI="2"
inherit eutils versionator
MY_PV="$(replace_version_separator 2 -)"
DESCRIPTION="BCWipe secure file removal utility"
HOMEPAGE="http://www.jetico.com/"
SRC_URI="http://www.jetico.com/linux/BCWipe-${MY_PV}.tar.gz
doc? ( http://www.jetico.com/linux/BCWipe.doc.tgz )"
LICENSE="bestcrypt"
SLOT="0"
IUSE="doc"
KEYWORDS="amd64 ppc ~sparc x86"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${PN}-${MY_PV}"
src_prepare() {
epatch "${FILESDIR}/${P}-fix_warnings.patch"
}
src_test() {
echo "abc123" >> testfile
./bcwipe -f testfile || die "bcwipe test failed"
[ -f testfile ] && die "test file still exists. bcwipe should have deleted it"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
if use doc ; then
dohtml -r ../bcwipe-help || die "dohtml failed"
fi
}
pkg_postinst() {
ewarn "The BestCrypt drivers are not free - Please purchace a license from "
ewarn "http://www.jetico.com/"
ewarn "full details /usr/share/doc/${PF}/html/bcwipe-help/wu_licen.htm"
}
|