blob: 17c82189ceea80024621b861d85a194b3d2d4e76 (
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
49
50
51
52
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit
MY_PV=${PV/_beta/b}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Web application security scanner"
HOMEPAGE="http://code.google.com/p/skipfish/"
SRC_URI="http://skipfish.googlecode.com/files/${MY_P}.tgz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="net-dns/libidn"
RDEPEND="${DEPEND}"
#src_prepare() {
# epatch "${FILESDIR}"/${PN}-4.3.3-install.patch
# eautoreconf
#}
S=${WORKDIR}/${PN}
src_prepare() {
# Change assets path
sed -i 's/assets\//\/usr\/share\/skipfish\/assets\//g' report.c skipfish.c || die "sed failed"
}
src_install() {
dobin skipfish
insinto /usr/share/${PN}/dictionaries
doins dictionaries/*
insinto /usr/share/${PN}/assets
doins assets/*
dodoc README ChangeLog
}
pkg_postinst() {
echo
elog "See README-FIRST in /usr/share/skipfish/dictionaries/ to pick a dictionary and use with -W option:"
elog " skipfish -W /usr/share/skipfish/dictionaries/<dictionary_name>"
echo
}
|