/[gentoo-x86]/dev-util/skipfish/skipfish-2.10_beta.ebuild
Gentoo

Contents of /dev-util/skipfish/skipfish-2.10_beta.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jan 5 11:13:31 2013 UTC (18 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Version bump, thanks to Georgy Kovtunov

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/skipfish/skipfish-2.09_beta.ebuild,v 1.1 2012/09/25 13:55:29 pinkbyte Exp $
4
5 EAPI=5
6 inherit toolchain-funcs versionator
7
8 MY_P="$PN-$(get_version_component_range 1-2)b"
9
10 DESCRIPTION="A fully automated, active web application security reconnaissance tool"
11 HOMEPAGE="http://code.google.com/p/skipfish/"
12 SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tgz"
13
14 LICENSE="Apache-2.0 LGPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="debug"
18
19 RDEPEND="dev-libs/openssl:0
20 dev-libs/libpcre
21 net-dns/libidn
22 sys-libs/zlib"
23 DEPEND="${RDEPEND}"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_prepare() {
28 sed -i \
29 -e '/CFLAGS_GEN/s:-g -ggdb::' \
30 -e '/CFLAGS_OPT/s:-O3::' \
31 Makefile || die
32
33 sed -i \
34 -e "/ASSETS_DIR/s:assets:/usr/share/doc/${PF}/html:" \
35 -e "/SIG_FILE/s:signatures/:/etc/skipfish/signatures/:" \
36 src/config.h || die
37
38 sed -i \
39 -e "s:signatures/:/etc/skipfish/signatures/:g" \
40 signatures/signatures.conf || die
41 }
42
43 src_compile() {
44 tc-export CC
45
46 local _debug
47 use debug && _debug=debug
48
49 emake ${_debug}
50 }
51
52 src_install() {
53 dobin ${PN}
54 doman doc/${PN}.1
55
56 insinto /etc/skipfish
57 doins -r signatures
58
59 insinto /usr/share/${PN}/dictionaries
60 doins dictionaries/*.wl
61
62 dohtml assets/*
63
64 dodoc ChangeLog README doc/*.txt
65 }

  ViewVC Help
Powered by ViewVC 1.1.20