blob: a4283bd9f1acd46dd5de6fe3344ff7b6ebf8c7d8 (
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
53
54
55
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit versionator
MY_PV="$(replace_version_separator 3 '-')"
MY_PV="${MY_PV/p/r}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="A SQL Server injection & takeover tool"
HOMEPAGE="http://sqlninja.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RESTRICT="mirror"
RDEPEND="
dev-lang/perl
dev-perl/IO-Socket-SSL
dev-perl/List-MoreUtils
dev-perl/Net-DNS
dev-perl/Net-Pcap
dev-perl/Net-RawIP
dev-perl/NetPacket
"
S="${WORKDIR}/${MY_P}"
src_install() {
dodoc sqlninja-howto.html ChangeLog README
if use doc; then
dodoc -r sources
docompress -x /usr/share/doc/"${P}"/sources
fi
insinto /etc/"${PN}"
doins sqlninja.conf.example
rm -r sources sqlninja-howto.html ChangeLog README LICENSE || die
rm -r apps || die
rm sqlninja.conf.example || die
dodir /usr/lib/"${PN}"
insinto /usr/lib/"${PN}"
exeinto /usr/lib/"${PN}"
doins -r *
doexe sqlninja
dosbin "${FILESDIR}"/"${PN}"
}
|