1 |
commit: b1d47149c083ed60747e2a4fb46aaafdf1bc2781 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 11 21:30:09 2022 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 11 21:30:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1d47149 |
7 |
|
8 |
net-analyzer/sqlninja: Port to EAPI 8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/826818 |
11 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/sqlninja/sqlninja-0.2.6_p1-r1.ebuild | 24 +++++++++++------------ |
14 |
1 file changed, 11 insertions(+), 13 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/sqlninja/sqlninja-0.2.6_p1-r1.ebuild b/net-analyzer/sqlninja/sqlninja-0.2.6_p1-r1.ebuild |
17 |
index a4283bd9f1ac..17366ad59752 100644 |
18 |
--- a/net-analyzer/sqlninja/sqlninja-0.2.6_p1-r1.ebuild |
19 |
+++ b/net-analyzer/sqlninja/sqlninja-0.2.6_p1-r1.ebuild |
20 |
@@ -1,21 +1,21 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=5 |
26 |
-inherit versionator |
27 |
+EAPI=8 |
28 |
|
29 |
-MY_PV="$(replace_version_separator 3 '-')" |
30 |
+MY_PV="${PV//_/-}" |
31 |
MY_PV="${MY_PV/p/r}" |
32 |
MY_P="${PN}-${MY_PV}" |
33 |
|
34 |
DESCRIPTION="A SQL Server injection & takeover tool" |
35 |
HOMEPAGE="http://sqlninja.sourceforge.net/" |
36 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" |
37 |
+S="${WORKDIR}/${MY_P}" |
38 |
+ |
39 |
LICENSE="GPL-2" |
40 |
SLOT="0" |
41 |
KEYWORDS="~amd64 ~x86" |
42 |
IUSE="doc" |
43 |
- |
44 |
RESTRICT="mirror" |
45 |
|
46 |
RDEPEND=" |
47 |
@@ -28,28 +28,26 @@ RDEPEND=" |
48 |
dev-perl/NetPacket |
49 |
" |
50 |
|
51 |
-S="${WORKDIR}/${MY_P}" |
52 |
- |
53 |
src_install() { |
54 |
dodoc sqlninja-howto.html ChangeLog README |
55 |
|
56 |
if use doc; then |
57 |
dodoc -r sources |
58 |
- docompress -x /usr/share/doc/"${P}"/sources |
59 |
+ docompress -x /usr/share/doc/${P}/sources |
60 |
fi |
61 |
|
62 |
- insinto /etc/"${PN}" |
63 |
+ insinto /etc/${PN} |
64 |
doins sqlninja.conf.example |
65 |
|
66 |
rm -r sources sqlninja-howto.html ChangeLog README LICENSE || die |
67 |
rm -r apps || die |
68 |
rm sqlninja.conf.example || die |
69 |
|
70 |
- dodir /usr/lib/"${PN}" |
71 |
- insinto /usr/lib/"${PN}" |
72 |
- exeinto /usr/lib/"${PN}" |
73 |
+ dodir /usr/lib/${PN} |
74 |
+ insinto /usr/lib/${PN} |
75 |
+ exeinto /usr/lib/${PN} |
76 |
doins -r * |
77 |
|
78 |
doexe sqlninja |
79 |
- dosbin "${FILESDIR}"/"${PN}" |
80 |
+ dosbin "${FILESDIR}"/${PN} |
81 |
} |