1 |
commit: 40383a04ef95327b961084eecd00076f2e47233b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 16 04:33:21 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 16 04:40:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40383a04 |
7 |
|
8 |
net-analyzer/nmap: use live template |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/nmap/nmap-7.91-r2.ebuild | 29 ++++++++++++++++++++++------- |
13 |
net-analyzer/nmap/nmap-9999.ebuild | 25 +++++++++++++++++++++---- |
14 |
net-misc/chrony/chrony-9999.ebuild | 11 +++++++---- |
15 |
3 files changed, 50 insertions(+), 15 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/nmap/nmap-7.91-r2.ebuild b/net-analyzer/nmap/nmap-7.91-r2.ebuild |
18 |
index 6778cf91051..492355ccf04 100644 |
19 |
--- a/net-analyzer/nmap/nmap-7.91-r2.ebuild |
20 |
+++ b/net-analyzer/nmap/nmap-7.91-r2.ebuild |
21 |
@@ -5,17 +5,29 @@ EAPI=7 |
22 |
|
23 |
LUA_COMPAT=( lua5-3 ) |
24 |
LUA_REQ_USE="deprecated" |
25 |
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nmap.asc |
26 |
-inherit autotools lua-single toolchain-funcs verify-sig |
27 |
+inherit autotools lua-single toolchain-funcs |
28 |
|
29 |
DESCRIPTION="Network exploration tool and security / port scanner" |
30 |
HOMEPAGE="https://nmap.org/" |
31 |
-SRC_URI="https://nmap.org/dist/${P}.tar.bz2" |
32 |
-SRC_URI+=" verify-sig? ( https://nmap.org/dist/sigs/${P}.tar.bz2.asc )" |
33 |
+if [[ ${PV} == *9999* ]] ; then |
34 |
+ inherit git-r3 |
35 |
+ |
36 |
+ EGIT_REPO_URI="https://github.com/nmap/nmap" |
37 |
+ |
38 |
+ # Just in case for now as future seems undecided. |
39 |
+ LICENSE="NPSL" |
40 |
+else |
41 |
+ VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nmap.asc |
42 |
+ inherit verify-sig |
43 |
+ |
44 |
+ SRC_URI="https://nmap.org/dist/${P}.tar.bz2" |
45 |
+ SRC_URI+=" verify-sig? ( https://nmap.org/dist/sigs/${P}.tar.bz2.asc )" |
46 |
+ |
47 |
+ LICENSE="|| ( NPSL GPL-2 )" |
48 |
+ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
49 |
+fi |
50 |
|
51 |
-LICENSE="|| ( NPSL GPL-2 )" |
52 |
SLOT="0" |
53 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
54 |
IUSE="ipv6 libressl libssh2 ncat nping +nse ssl +system-lua" |
55 |
REQUIRED_USE="system-lua? ( nse ${LUA_REQUIRED_USE} )" |
56 |
|
57 |
@@ -35,7 +47,10 @@ RDEPEND=" |
58 |
system-lua? ( ${LUA_DEPS} ) |
59 |
" |
60 |
DEPEND="${RDEPEND}" |
61 |
-BDEPEND+="verify-sig? ( app-crypt/openpgp-keys-nmap )" |
62 |
+ |
63 |
+if [[ ${PV} != *9999* ]] ; then |
64 |
+ BDEPEND+="verify-sig? ( app-crypt/openpgp-keys-nmap )" |
65 |
+fi |
66 |
|
67 |
PATCHES=( |
68 |
"${FILESDIR}"/${PN}-5.10_beta1-string.patch |
69 |
|
70 |
diff --git a/net-analyzer/nmap/nmap-9999.ebuild b/net-analyzer/nmap/nmap-9999.ebuild |
71 |
index 0b9f3ddf365..fa6114906f2 100644 |
72 |
--- a/net-analyzer/nmap/nmap-9999.ebuild |
73 |
+++ b/net-analyzer/nmap/nmap-9999.ebuild |
74 |
@@ -5,15 +5,28 @@ EAPI=7 |
75 |
|
76 |
LUA_COMPAT=( lua5-3 ) |
77 |
LUA_REQ_USE="deprecated" |
78 |
- |
79 |
-inherit autotools git-r3 lua-single toolchain-funcs |
80 |
+inherit autotools lua-single toolchain-funcs |
81 |
|
82 |
DESCRIPTION="Network exploration tool and security / port scanner" |
83 |
HOMEPAGE="https://nmap.org/" |
84 |
+if [[ ${PV} == *9999* ]] ; then |
85 |
+ inherit git-r3 |
86 |
+ |
87 |
+ EGIT_REPO_URI="https://github.com/nmap/nmap" |
88 |
+ |
89 |
+ # Just in case for now as future seems undecided. |
90 |
+ LICENSE="NPSL" |
91 |
+else |
92 |
+ VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nmap.asc |
93 |
+ inherit verify-sig |
94 |
|
95 |
-EGIT_REPO_URI="https://github.com/nmap/nmap" |
96 |
+ SRC_URI="https://nmap.org/dist/${P}.tar.bz2" |
97 |
+ SRC_URI+=" verify-sig? ( https://nmap.org/dist/sigs/${P}.tar.bz2.asc )" |
98 |
+ |
99 |
+ LICENSE="|| ( NPSL GPL-2 )" |
100 |
+ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
101 |
+fi |
102 |
|
103 |
-LICENSE="NPSL" |
104 |
SLOT="0" |
105 |
IUSE="ipv6 libressl libssh2 ncat nping +nse ssl +system-lua" |
106 |
REQUIRED_USE="system-lua? ( nse ${LUA_REQUIRED_USE} )" |
107 |
@@ -35,6 +48,10 @@ RDEPEND=" |
108 |
" |
109 |
DEPEND="${RDEPEND}" |
110 |
|
111 |
+if [[ ${PV} != *9999* ]] ; then |
112 |
+ BDEPEND+="verify-sig? ( app-crypt/openpgp-keys-nmap )" |
113 |
+fi |
114 |
+ |
115 |
PATCHES=( |
116 |
"${FILESDIR}"/${PN}-5.10_beta1-string.patch |
117 |
"${FILESDIR}"/${PN}-5.21-python.patch |
118 |
|
119 |
diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild |
120 |
index 0b13721b537..5287ba540c7 100644 |
121 |
--- a/net-misc/chrony/chrony-9999.ebuild |
122 |
+++ b/net-misc/chrony/chrony-9999.ebuild |
123 |
@@ -3,8 +3,7 @@ |
124 |
|
125 |
EAPI=7 |
126 |
|
127 |
-VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/mlichvar.asc |
128 |
-inherit systemd tmpfiles toolchain-funcs verify-sig |
129 |
+inherit systemd tmpfiles toolchain-funcs |
130 |
|
131 |
DESCRIPTION="NTP client and server programs" |
132 |
HOMEPAGE="https://chrony.tuxfamily.org/ https://git.tuxfamily.org/chrony/chrony.git" |
133 |
@@ -13,6 +12,9 @@ if [[ ${PV} == "9999" ]]; then |
134 |
inherit git-r3 |
135 |
EGIT_REPO_URI="https://git.tuxfamily.org/chrony/chrony.git" |
136 |
else |
137 |
+ VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/mlichvar.asc |
138 |
+ inherit verify-sig |
139 |
+ |
140 |
SRC_URI="https://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz" |
141 |
SRC_URI+=" verify-sig? ( https://download.tuxfamily.org/chrony/${P}-tar-gz-asc.txt -> ${P}.tar.gz.asc )" |
142 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
143 |
@@ -37,13 +39,14 @@ RESTRICT="test" |
144 |
|
145 |
BDEPEND=" |
146 |
nettle? ( virtual/pkgconfig ) |
147 |
- verify-sig? ( app-crypt/openpgp-keys-mlichvar ) |
148 |
" |
149 |
|
150 |
if [[ ${PV} == "9999" ]]; then |
151 |
# Needed for doc generation in 9999 |
152 |
- BDEPEND+=" virtual/w3m" |
153 |
REQUIRED_USE+=" html" |
154 |
+ BDEPEND+=" virtual/w3m" |
155 |
+else |
156 |
+ BDEPEND+=" verify-sig? ( app-crypt/openpgp-keys-mlichvar )" |
157 |
fi |
158 |
|
159 |
DEPEND=" |