/[gentoo-x86]/net-analyzer/portbunny/portbunny-1.0_p20080423.ebuild
Gentoo

Contents of /net-analyzer/portbunny/portbunny-1.0_p20080423.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Apr 25 10:45:14 2008 UTC (10 years, 3 months ago) by wschlich
Branch: MAIN
CVS Tags: HEAD
initial import
(Portage version: 2.1.5_rc4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 inherit eutils linux-mod
6
7 MY_PV_SNAP=${PV##*_p}
8 if [[ ${MY_PV_SNAP} != ${PV} ]]; then
9 MY_PV=${MY_PV_SNAP:6:2}${MY_PV_SNAP:4:2}${MY_PV_SNAP:2:2}
10 MY_P=PortBunny${MY_PV}
11 S="${WORKDIR}"/${MY_P}-dev
12 else
13 MY_P=PortBunny-${PV}
14 S="${WORKDIR}"/${MY_P}
15 fi
16
17 MODULE_NAMES="portbunny(kernel:)"
18 BUILD_TARGETS="all"
19
20 DESCRIPTION="A kernel based highspeed TCP SYN port scanner"
21 HOMEPAGE="http://recurity-labs.com/portbunny/"
22 SRC_URI="http://recurity-labs.com/portbunny/${MY_P}.tar.gz"
23
24 LICENSE="GPL-2"
25 SLOT="0"
26 KEYWORDS="~x86"
27 IUSE=""
28
29 DEPEND="dev-lang/python"
30
31 src_install() {
32 insinto /usr/share/portbunny
33 doins UI/share/portbunny/*
34 dosed "s:^\(ETC_SERVICES\)[[:space:]]\+=.*:\1 = '/usr/share/portbunny/services':g" \
35 /usr/share/portbunny/PBunnyServices.py
36 dobin UI/bin/portbunny.py
37 dosym portbunny.py /usr/bin/portbunny
38 dosed "s:^\(PBUNNY_SHARE\)[[:space:]]\+=.*:\1 = '/usr/share/portbunny/':g" \
39 /usr/bin/portbunny.py
40 dosed "s:^\(PBUNNY_SHARE2\)[[:space:]]\+=.*:\1 = '/usr/share/portbunny/':g" \
41 /usr/bin/portbunny.py
42
43 linux-mod_src_install
44 }
45
46 pkg_postinst() {
47 einfo
48 einfo "See http://recurity-labs.com/portbunny/README.pdf"
49 einfo
50 ewarn
51 ewarn "WARNING"
52 ewarn "WARNING: this software may HARM the stability of your system!"
53 ewarn "WARNING: do NOT use this on production machines!"
54 ewarn "WARNING"
55 ewarn
56 ebeep 10
57 }

  ViewVC Help
Powered by ViewVC 1.1.20