1 |
commit: ef9efa708e4eaa3d119825cda0e0ea6acce08082 |
2 |
Author: orbea <orbea <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun Jul 3 02:48:08 2022 +0000 |
4 |
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
5 |
CommitDate: Sun Jul 3 17:47:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=ef9efa70 |
7 |
|
8 |
net-misc/ntp: Remove package |
9 |
|
10 |
Works with libressl-3.5.x and ntp-4.2.8_p15::gentoo. |
11 |
|
12 |
Signed-off-by: orbea <orbea <AT> riseup.net> |
13 |
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> |
14 |
|
15 |
net-misc/ntp/Manifest | 2 - |
16 |
net-misc/ntp/files/man-pages/genmans.sh | 75 ------- |
17 |
net-misc/ntp/files/man-pages/ntp.conf.5.patch | 27 --- |
18 |
net-misc/ntp/files/man-pages/ntp.xsl | 218 --------------------- |
19 |
net-misc/ntp/files/ntp-4.2.8-ipc-caps.patch | 16 -- |
20 |
.../ntp/files/ntp-4.2.8-sntp-test-pthreads.patch | 13 -- |
21 |
...tp-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch | 39 ---- |
22 |
.../ntp/files/ntp-4.2.8_p12-libressl-2.8.patch | 16 -- |
23 |
.../ntp/files/ntp-4.2.8_p14-add_cap_ipc_lock.patch | 13 -- |
24 |
net-misc/ntp/files/ntp-4.2.8_p15-gcc10.patch | 75 ------- |
25 |
net-misc/ntp/files/ntp-client.confd | 21 -- |
26 |
net-misc/ntp/files/ntp-client.rc | 31 --- |
27 |
net-misc/ntp/files/ntp.conf | 54 ----- |
28 |
net-misc/ntp/files/ntpd.confd | 6 - |
29 |
net-misc/ntp/files/ntpd.rc-r1 | 22 --- |
30 |
net-misc/ntp/files/ntpd.service-r2 | 11 -- |
31 |
net-misc/ntp/files/ntpdate.service-r2 | 14 -- |
32 |
net-misc/ntp/files/ntpdate.service.conf | 2 - |
33 |
net-misc/ntp/files/sntp.confd | 4 - |
34 |
net-misc/ntp/files/sntp.rc | 26 --- |
35 |
net-misc/ntp/files/sntp.service-r3 | 14 -- |
36 |
net-misc/ntp/files/sntp.service.conf | 2 - |
37 |
net-misc/ntp/metadata.xml | 23 --- |
38 |
net-misc/ntp/ntp-4.2.8_p15.ebuild | 142 -------------- |
39 |
24 files changed, 866 deletions(-) |
40 |
|
41 |
diff --git a/net-misc/ntp/Manifest b/net-misc/ntp/Manifest |
42 |
deleted file mode 100644 |
43 |
index c618253..0000000 |
44 |
--- a/net-misc/ntp/Manifest |
45 |
+++ /dev/null |
46 |
@@ -1,2 +0,0 @@ |
47 |
-DIST ntp-4.2.8p15-manpages.tar.xz 25700 BLAKE2B 6a225bc19dcebee31cb8e0d621963863d567a882655b57be8b65a16f9d3dd138787c7c6b9ff08853306f2e9b11d65cb76e3215cc5b2262a91c411d437974fc18 SHA512 21721550864b4e7e91bf20ca894109253439b737799dfc803e1496b3454199f34646f40e0156c08a39d5914e5a92f35908cec0245e1e2627c75c0e64939ba028 |
48 |
-DIST ntp-4.2.8p15.tar.gz 7015970 BLAKE2B 5697d6623d79686f9ca9ad907172bf942383067d1e9817117d20db042e9f7410644f236f1a0d77ab6bf6ec468476e12ea65b494a28f0dd8674bf08fc8875cfef SHA512 f5ad765e45fc302263dd40e94c287698fd235b94f3684e49f1d5d09d7d8bdd6b8c0fb96ecdabffea3d233e1e79b3c9687b76dc204ba76bad3f554682f4a97794 |
49 |
|
50 |
diff --git a/net-misc/ntp/files/man-pages/genmans.sh b/net-misc/ntp/files/man-pages/genmans.sh |
51 |
deleted file mode 100755 |
52 |
index bae21e2..0000000 |
53 |
--- a/net-misc/ntp/files/man-pages/genmans.sh |
54 |
+++ /dev/null |
55 |
@@ -1,75 +0,0 @@ |
56 |
-#!/bin/bash |
57 |
-# |
58 |
-# ntpman.sh -- Create man pages for ntp |
59 |
-# |
60 |
- |
61 |
-VERSION=$1 |
62 |
-if [[ -z ${VERSION} ]] ; then |
63 |
- VERSION=$(ls -1d ntp-*/ 2>/dev/null | LC_COLLATE=C sort | sed -n '${s:/::;p;Q}') |
64 |
- if [[ -z ${VERSION} ]] ; then |
65 |
- VERSION=$(ls "${0%/*}"/../../ntp-*.ebuild | LC_COLLATE=C sort | sed -n '${s:.*/::;s:_::;s:[.]ebuild::;p;Q}') |
66 |
- if [[ -z ${VERSION} ]] ; then |
67 |
- echo "Usage: $0 <version>" |
68 |
- exit 1 |
69 |
- fi |
70 |
- fi |
71 |
-fi |
72 |
-[[ ${VERSION} != ntp-* ]] && VERSION="ntp-${VERSION}" |
73 |
- |
74 |
-SRCDIR=${0%/*} |
75 |
-HTMLDIR=${SRCDIR}/${VERSION}/html |
76 |
-DISTFILE=/usr/portage/distfiles/${VERSION}.tar.gz |
77 |
-MANDIR=${SRCDIR}/man |
78 |
- |
79 |
-rm -rf ${SRCDIR}/${VERSION} |
80 |
-if [[ ! -d ${HTMLDIR} ]] ; then |
81 |
- if [[ -f ${DISTFILE} ]] ; then |
82 |
- tar zxf ${DISTFILE} -C ${SRCDIR} || exit 1 |
83 |
- else |
84 |
- echo "ERROR: $HTMLDIR / $DISTFILE does not exist" |
85 |
- exit 1 |
86 |
- fi |
87 |
-fi |
88 |
- |
89 |
-# Process a single HTML file |
90 |
-processfile() { |
91 |
- HTMLFILE=$1 |
92 |
- MANFILE=$2 |
93 |
- echo -n "Processing $HTMLFILE ..." |
94 |
- sed -e "s:<csobj.*<:csobj>/:" $HTMLDIR/$HTMLFILE > .$HTMLFILE |
95 |
- xsltproc --html --stringparam version $VERSION ${SRCDIR}/ntp.xsl .$HTMLFILE > $MANDIR/$MANFILE || exit 1 |
96 |
- rm -f .$HTMLFILE |
97 |
- echo "Done." |
98 |
-} |
99 |
- |
100 |
-# Print information |
101 |
-echo "Generates ntp man files from HTML documentation. Using:" |
102 |
-echo "VERSION: $VERSION" |
103 |
-echo "HTMLDIR: $HTMLDIR" |
104 |
-echo "MANDIR: $MANDIR" |
105 |
-echo "Press enter to continue, or Ctrl-C to cancel." |
106 |
-read |
107 |
- |
108 |
-# Process HTML files |
109 |
-rm -rf ${MANDIR} |
110 |
-mkdir ${MANDIR} |
111 |
-for f in ntp{date,dc,d,q,time,trace,dsim} keygen tickadj ; do |
112 |
- processfile ${f}.html ${f}.8 |
113 |
-done |
114 |
-echo |
115 |
- |
116 |
-cp -vi /usr/local/src/freebsd/src/usr.sbin/ntp/doc/*.5 ${MANDIR} |
117 |
-( |
118 |
-d=${PWD} |
119 |
-cd ${MANDIR} |
120 |
-shopt -s nullglob |
121 |
-for p in $d/*.5.patch ; do |
122 |
- patch -F0 -p0 < $p || exit 1 |
123 |
-done |
124 |
-) || exit 1 |
125 |
-cp -vi ${SRCDIR}/*.patch ${SRCDIR}/genmans.sh ${SRCDIR}/ntp.xsl ${MANDIR} |
126 |
- |
127 |
-tar -jcf ${VERSION}-manpages.tar.bz2 -C ${MANDIR}/.. man |
128 |
-du -b ${VERSION}-manpages.tar.bz2 |
129 |
- |
130 |
-rm -rf ${MANDIR} ${SRCDIR}/${VERSION} |
131 |
|
132 |
diff --git a/net-misc/ntp/files/man-pages/ntp.conf.5.patch b/net-misc/ntp/files/man-pages/ntp.conf.5.patch |
133 |
deleted file mode 100644 |
134 |
index c3d8123..0000000 |
135 |
--- a/net-misc/ntp/files/man-pages/ntp.conf.5.patch |
136 |
+++ /dev/null |
137 |
@@ -1,27 +0,0 @@ |
138 |
---- ntp.conf.5 |
139 |
-+++ ntp.conf.5 |
140 |
-@@ -24,16 +24,6 @@ |
141 |
- .Fl c |
142 |
- command line option). |
143 |
- .Pp |
144 |
--The |
145 |
--.Pa /etc/rc.d/ntpdate |
146 |
--script reads this file to get a list of NTP servers to use if the |
147 |
--variable |
148 |
--.Dq Li ntpdate_hosts |
149 |
--was not declared. |
150 |
--Refer to the |
151 |
--.Xr rc.conf 5 |
152 |
--man page for further info about this. |
153 |
--.Pp |
154 |
- The file format is similar to other |
155 |
- .Ux |
156 |
- configuration files. |
157 |
-@@ -2686,7 +2676,6 @@ |
158 |
- Diffie-Hellman agreement parameters |
159 |
- .El |
160 |
- .Sh SEE ALSO |
161 |
--.Xr rc.conf 5 , |
162 |
- .Xr ntpd 8 , |
163 |
- .Xr ntpdc 8 , |
164 |
- .Xr ntpq 8 |
165 |
|
166 |
diff --git a/net-misc/ntp/files/man-pages/ntp.xsl b/net-misc/ntp/files/man-pages/ntp.xsl |
167 |
deleted file mode 100644 |
168 |
index ed9c1f8..0000000 |
169 |
--- a/net-misc/ntp/files/man-pages/ntp.xsl |
170 |
+++ /dev/null |
171 |
@@ -1,218 +0,0 @@ |
172 |
-<?xml version="1.0" encoding="ISO-8859-1" ?> |
173 |
- |
174 |
-<!-- |
175 |
-Description: |
176 |
- Stylesheet for converting the HTML documentation |
177 |
- for various ntp commands into proper manual pages |
178 |
- (in troff format). |
179 |
- |
180 |
-Author: |
181 |
- Per Cederberg, <per at percederberg dot net> |
182 |
---> |
183 |
- |
184 |
-<!DOCTYPE stylesheet [ |
185 |
-<!ENTITY newline " |
186 |
-"> |
187 |
-]> |
188 |
- |
189 |
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
190 |
- version="1.0"> |
191 |
- |
192 |
- <!-- ### INPUT PARAMETERS ### --> |
193 |
- <xsl:param name="version" select="''" /> |
194 |
- |
195 |
- |
196 |
- <!-- ### OUTPUT DECLARATION ### --> |
197 |
- <xsl:output method="text" |
198 |
- encoding="ISO-8859-1" /> |
199 |
- |
200 |
- <xsl:strip-space elements="html" /> |
201 |
- |
202 |
- |
203 |
- <!-- ### TEMPLATES ### --> |
204 |
- <xsl:template match="/"> |
205 |
- <xsl:text>.\" Automatically generated from HTML source. </xsl:text> |
206 |
- <xsl:text>DO NOT EDIT!&newline;</xsl:text> |
207 |
- <xsl:apply-templates /> |
208 |
- </xsl:template> |
209 |
- |
210 |
- <xsl:template match="head"> |
211 |
- <xsl:text>.TH </xsl:text> |
212 |
- <xsl:value-of select="substring-before(title, ' ')" /> |
213 |
- <xsl:text> 1 "" "ntp </xsl:text> |
214 |
- <xsl:value-of select="$version" /> |
215 |
- <xsl:text>"</xsl:text> |
216 |
- <xsl:text>&newline;</xsl:text> |
217 |
- <xsl:text>.SH NAME</xsl:text> |
218 |
- <xsl:text>&newline;</xsl:text> |
219 |
- <xsl:value-of select="title" /> |
220 |
- <xsl:text>&newline;</xsl:text> |
221 |
- </xsl:template> |
222 |
- |
223 |
- <xsl:template match="body"> |
224 |
- <xsl:apply-templates select="*[preceding-sibling::hr]" /> |
225 |
- </xsl:template> |
226 |
- |
227 |
- <xsl:template match="h3"> |
228 |
- </xsl:template> |
229 |
- |
230 |
- <xsl:template match="h4"> |
231 |
- <xsl:variable name="text"> |
232 |
- <xsl:call-template name="stringToUpper"> |
233 |
- <xsl:with-param name="str" select="." /> |
234 |
- </xsl:call-template> |
235 |
- </xsl:variable> |
236 |
- <xsl:if test="name(preceding-sibling::*[1]) = 'tt'"> |
237 |
- <xsl:text>&newline;</xsl:text> |
238 |
- </xsl:if> |
239 |
- <xsl:text>.SH </xsl:text> |
240 |
- <xsl:value-of select="$text" /> |
241 |
- <xsl:text>&newline;</xsl:text> |
242 |
- </xsl:template> |
243 |
- |
244 |
- <xsl:template match="address"> |
245 |
- <xsl:text>.SH AUTHOR</xsl:text> |
246 |
- <xsl:text>&newline;</xsl:text> |
247 |
- <xsl:apply-templates /> |
248 |
- </xsl:template> |
249 |
- |
250 |
- <xsl:template match="p"> |
251 |
- <xsl:variable name="text"> |
252 |
- <xsl:apply-templates /> |
253 |
- </xsl:variable> |
254 |
- <xsl:if test="starts-with($text, 'Disclaimer:')"> |
255 |
- <xsl:text>&newline;</xsl:text> |
256 |
- </xsl:if> |
257 |
- <xsl:text>.P</xsl:text> |
258 |
- <xsl:text>&newline;</xsl:text> |
259 |
- <xsl:value-of select="$text" /> |
260 |
- <xsl:text>&newline;</xsl:text> |
261 |
- </xsl:template> |
262 |
- |
263 |
- <xsl:template match="dd/p"> |
264 |
- <xsl:text>&newline;</xsl:text> |
265 |
- <xsl:text>&newline;</xsl:text> |
266 |
- <xsl:apply-templates /> |
267 |
- </xsl:template> |
268 |
- |
269 |
- <xsl:template match="hr"> |
270 |
- </xsl:template> |
271 |
- |
272 |
- <xsl:template match="pre"> |
273 |
- <xsl:text>&newline;</xsl:text> |
274 |
- <xsl:text>.ft CW</xsl:text> |
275 |
- <xsl:text>&newline;</xsl:text> |
276 |
- <xsl:text>.nf</xsl:text> |
277 |
- <xsl:text>&newline;</xsl:text> |
278 |
- <xsl:call-template name="trim-newlines"> |
279 |
- <xsl:with-param name="str" select="." /> |
280 |
- </xsl:call-template> |
281 |
- <xsl:text>&newline;</xsl:text> |
282 |
- <xsl:text>.ft R</xsl:text> |
283 |
- <xsl:text>&newline;</xsl:text> |
284 |
- <xsl:text>.fi</xsl:text> |
285 |
- <xsl:text>&newline;</xsl:text> |
286 |
- </xsl:template> |
287 |
- |
288 |
- <xsl:template match="ul"> |
289 |
- </xsl:template> |
290 |
- |
291 |
- <xsl:template match="nobr"> |
292 |
- <xsl:text> </xsl:text> |
293 |
- <xsl:apply-templates /> |
294 |
- <xsl:text> </xsl:text> |
295 |
- </xsl:template> |
296 |
- |
297 |
- <xsl:template match="dl"> |
298 |
- <xsl:apply-templates /> |
299 |
- </xsl:template> |
300 |
- |
301 |
- <xsl:template match="dt"> |
302 |
- <xsl:text>.TP&newline;</xsl:text> |
303 |
- <xsl:text>.B </xsl:text> |
304 |
- <xsl:value-of select="normalize-space(.)" /> |
305 |
- <xsl:text>&newline;</xsl:text> |
306 |
- </xsl:template> |
307 |
- |
308 |
- <xsl:template match="dd"> |
309 |
- <xsl:apply-templates /> |
310 |
- <xsl:text>&newline;</xsl:text> |
311 |
- </xsl:template> |
312 |
- |
313 |
- <xsl:template match="tr"> |
314 |
- <xsl:if test="position() > 1"> |
315 |
- <xsl:apply-templates /> |
316 |
- <xsl:text>&newline;</xsl:text> |
317 |
- <xsl:text>&newline;</xsl:text> |
318 |
- </xsl:if> |
319 |
- </xsl:template> |
320 |
- |
321 |
- <xsl:template match="tt"> |
322 |
- <xsl:text>&newline;</xsl:text> |
323 |
- <xsl:text>\fB</xsl:text> |
324 |
- <xsl:apply-templates /> |
325 |
- <xsl:text>\fR </xsl:text> |
326 |
- </xsl:template> |
327 |
- |
328 |
- <xsl:template match="i"> |
329 |
- <xsl:text>&newline;</xsl:text> |
330 |
- <xsl:text>\fI</xsl:text> |
331 |
- <xsl:apply-templates /> |
332 |
- <xsl:text>\fR </xsl:text> |
333 |
- </xsl:template> |
334 |
- |
335 |
- <xsl:template match="a"> |
336 |
- <xsl:text> </xsl:text> |
337 |
- <xsl:apply-templates /> |
338 |
- <xsl:text> </xsl:text> |
339 |
- </xsl:template> |
340 |
- |
341 |
- <xsl:template match="br"> |
342 |
- <xsl:text>&newline;</xsl:text> |
343 |
- </xsl:template> |
344 |
- |
345 |
- <xsl:template match="text()"> |
346 |
- <xsl:value-of select="normalize-space(.)" /> |
347 |
- </xsl:template> |
348 |
- |
349 |
- |
350 |
- <!-- ### HELPER FUNCTIONS ### --> |
351 |
- <xsl:template name="stringToUpper"> |
352 |
- <xsl:param name="str" /> |
353 |
- <xsl:value-of select="translate($str, |
354 |
- 'abcdefghijklmnopqrstuvwxyz', |
355 |
- 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')" /> |
356 |
- </xsl:template> |
357 |
- |
358 |
- <xsl:template name="trim-newlines"> |
359 |
- <xsl:param name="str" /> |
360 |
- <xsl:choose> |
361 |
- <xsl:when test="starts-with($str,'&newline;')"> |
362 |
- <xsl:call-template name="trim-newlines"> |
363 |
- <xsl:with-param name="str" select="substring($str, 2)" /> |
364 |
- </xsl:call-template> |
365 |
- </xsl:when> |
366 |
- <xsl:otherwise> |
367 |
- <xsl:call-template name="trim-newlines-tail"> |
368 |
- <xsl:with-param name="str" select="$str" /> |
369 |
- </xsl:call-template> |
370 |
- </xsl:otherwise> |
371 |
- </xsl:choose> |
372 |
- </xsl:template> |
373 |
- |
374 |
- <xsl:template name="trim-newlines-tail"> |
375 |
- <xsl:param name="str" /> |
376 |
- <xsl:variable name="len" select="string-length($str)" /> |
377 |
- <xsl:choose> |
378 |
- <xsl:when test="substring($str,$len) = '&newline;'"> |
379 |
- <xsl:call-template name="trim-newlines-tail"> |
380 |
- <xsl:with-param name="str" select="substring($str, 1, $len - 1)" /> |
381 |
- </xsl:call-template> |
382 |
- </xsl:when> |
383 |
- <xsl:otherwise> |
384 |
- <xsl:value-of select="$str" /> |
385 |
- </xsl:otherwise> |
386 |
- </xsl:choose> |
387 |
- </xsl:template> |
388 |
- |
389 |
-</xsl:stylesheet> |
390 |
|
391 |
diff --git a/net-misc/ntp/files/ntp-4.2.8-ipc-caps.patch b/net-misc/ntp/files/ntp-4.2.8-ipc-caps.patch |
392 |
deleted file mode 100644 |
393 |
index a1e5580..0000000 |
394 |
--- a/net-misc/ntp/files/ntp-4.2.8-ipc-caps.patch |
395 |
+++ /dev/null |
396 |
@@ -1,16 +0,0 @@ |
397 |
-http://bugs.ntp.org/show_bug.cgi?id=2646 |
398 |
-https://bugs.gentoo.org/533966 |
399 |
- |
400 |
---- a/ntpd/ntpd.c |
401 |
-+++ a/ntpd/ntpd.c |
402 |
-@@ -971,8 +971,8 @@ getgroup: |
403 |
- char *captext; |
404 |
- |
405 |
- captext = (0 != interface_interval) |
406 |
-- ? "cap_sys_time,cap_net_bind_service=pe" |
407 |
-- : "cap_sys_time=pe"; |
408 |
-+ ? "cap_ipc_lock,cap_sys_time,cap_net_bind_service=pe" |
409 |
-+ : "cap_ipc_lock,cap_sys_time=pe"; |
410 |
- caps = cap_from_text(captext); |
411 |
- if (!caps) { |
412 |
- msyslog(LOG_ERR, |
413 |
|
414 |
diff --git a/net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch b/net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch |
415 |
deleted file mode 100644 |
416 |
index 4f8d15f..0000000 |
417 |
--- a/net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch |
418 |
+++ /dev/null |
419 |
@@ -1,13 +0,0 @@ |
420 |
-https://bugs.gentoo.org/563922 |
421 |
-http://bugs.ntp.org/show_bug.cgi?id=2906 |
422 |
- |
423 |
---- a/sntp/tests/Makefile.in |
424 |
-+++ b/sntp/tests/Makefile.in |
425 |
-@@ -783,6 +783,7 @@ base_LDADD = \ |
426 |
- $(LIBOPTS_LDADD) \ |
427 |
- $(LDADD_LIBEVENT) \ |
428 |
- $(top_builddir)/../libntp/libntp.a \ |
429 |
-+ $(PTHREAD_LIBS) \ |
430 |
- $(LDADD_LIBNTP) \ |
431 |
- $(LDADD_NTP) \ |
432 |
- $(NULL) |
433 |
|
434 |
diff --git a/net-misc/ntp/files/ntp-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch b/net-misc/ntp/files/ntp-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch |
435 |
deleted file mode 100644 |
436 |
index 1b532c6..0000000 |
437 |
--- a/net-misc/ntp/files/ntp-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch |
438 |
+++ /dev/null |
439 |
@@ -1,39 +0,0 @@ |
440 |
-Fix building with libressl or without SSL. |
441 |
- |
442 |
-Origin: http://bugs.ntp.org/attachment.cgi?id=1481 |
443 |
- |
444 |
-LibreSSL fix from Joe Kappus (https://bugs.gentoo.org/show_bug.cgi?id=600668#c2) |
445 |
- |
446 |
---- a/include/libssl_compat.h |
447 |
-+++ b/include/libssl_compat.h |
448 |
-@@ -37,7 +37,7 @@ |
449 |
- #endif |
450 |
- |
451 |
- /* ----------------------------------------------------------------- */ |
452 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000L |
453 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
454 |
- /* ----------------------------------------------------------------- */ |
455 |
- |
456 |
- # include <openssl/objects.h> |
457 |
---- a/libntp/libssl_compat.c |
458 |
-+++ b/libntp/libssl_compat.c |
459 |
-@@ -26,7 +26,7 @@ |
460 |
- /* ----------------------------------------------------------------- */ |
461 |
- |
462 |
- /* ----------------------------------------------------------------- */ |
463 |
--#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L |
464 |
-+#if defined(OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)) |
465 |
- /* ----------------------------------------------------------------- */ |
466 |
- |
467 |
- #include "libssl_compat.h" |
468 |
---- a/libntp/ssl_init.c |
469 |
-+++ b/libntp/ssl_init.c |
470 |
-@@ -21,7 +21,7 @@ |
471 |
- |
472 |
- int ssl_init_done; |
473 |
- |
474 |
--#if OPENSSL_VERSION_NUMBER < 0x10100000L |
475 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
476 |
- |
477 |
- static void |
478 |
- atexit_ssl_cleanup(void) |
479 |
|
480 |
diff --git a/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch b/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch |
481 |
deleted file mode 100644 |
482 |
index 182fcef..0000000 |
483 |
--- a/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch |
484 |
+++ /dev/null |
485 |
@@ -1,16 +0,0 @@ |
486 |
---- ntp-4.2.8p12.orig/include/libssl_compat.h 2018-12-08 01:14:58.434733497 +0000 |
487 |
-+++ ntp-4.2.8p12/include/libssl_compat.h 2018-12-08 01:42:04.479474757 +0000 |
488 |
-@@ -107,10 +107,13 @@ |
489 |
- |
490 |
- #define OpenSSL_version_num SSLeay |
491 |
- #define OpenSSL_version SSLeay_version |
492 |
-+ |
493 |
-+# if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x20800000L |
494 |
- #define X509_get0_notBefore X509_get_notBefore |
495 |
- #define X509_getm_notBefore X509_get_notBefore |
496 |
- #define X509_get0_notAfter X509_get_notAfter |
497 |
- #define X509_getm_notAfter X509_get_notAfter |
498 |
-+#endif /* !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x20800000L */ |
499 |
- |
500 |
- /* ----------------------------------------------------------------- */ |
501 |
- #endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */ |
502 |
|
503 |
diff --git a/net-misc/ntp/files/ntp-4.2.8_p14-add_cap_ipc_lock.patch b/net-misc/ntp/files/ntp-4.2.8_p14-add_cap_ipc_lock.patch |
504 |
deleted file mode 100644 |
505 |
index 183b6d8..0000000 |
506 |
--- a/net-misc/ntp/files/ntp-4.2.8_p14-add_cap_ipc_lock.patch |
507 |
+++ /dev/null |
508 |
@@ -1,13 +0,0 @@ |
509 |
-https://bugs.gentoo.org/711530 |
510 |
- |
511 |
---- ntp-4.2.8p14/ntpd/ntpd.c |
512 |
-+++ ntp-4.2.8p14/ntpd/ntpd.c |
513 |
-@@ -1189,7 +1189,7 @@ |
514 |
- * drop privileges in this case. |
515 |
- */ |
516 |
- cap_t caps; |
517 |
-- caps = cap_from_text("cap_sys_time,cap_setuid,cap_setgid,cap_sys_chroot,cap_net_bind_service=pe"); |
518 |
-+ caps = cap_from_text("cap_ipc_lock,cap_sys_time,cap_setuid,cap_setgid,cap_sys_chroot,cap_net_bind_service=pe"); |
519 |
- if ( ! caps) { |
520 |
- msyslog( LOG_ERR, "cap_from_text() failed: %m" ); |
521 |
- exit(-1); |
522 |
|
523 |
diff --git a/net-misc/ntp/files/ntp-4.2.8_p15-gcc10.patch b/net-misc/ntp/files/ntp-4.2.8_p15-gcc10.patch |
524 |
deleted file mode 100644 |
525 |
index 619ea07..0000000 |
526 |
--- a/net-misc/ntp/files/ntp-4.2.8_p15-gcc10.patch |
527 |
+++ /dev/null |
528 |
@@ -1,75 +0,0 @@ |
529 |
- |
530 |
-Source: |
531 |
-https://bugs.ntp.org/show_bug.cgi?id=3688 |
532 |
- |
533 |
-Juergen Perlinger 2020-12-24 07:10:49 UTC |
534 |
-Created attachment 1760 [details] |
535 |
-ultimate patch, v00 |
536 |
- |
537 |
---- a/sntp/log.c 2020-12-24 08:02:05.206004072 +0100 |
538 |
-+++ a/sntp/log.c 2020-12-24 08:02:05.206004072 +0100 |
539 |
-@@ -2,7 +2,7 @@ |
540 |
- |
541 |
- #include "log.h" |
542 |
- |
543 |
--const char *progname; /* for msyslog use too */ |
544 |
-+extern const char *progname; /* for msyslog use too */ |
545 |
- |
546 |
- static int counter = 0; |
547 |
- |
548 |
---- a/sntp/main.c 2020-12-24 08:02:05.210003956 +0100 |
549 |
-+++ a/sntp/main.c 2020-12-24 08:02:05.210003956 +0100 |
550 |
-@@ -20,7 +20,6 @@ |
551 |
- #include "log.h" |
552 |
- #include "libntp.h" |
553 |
- |
554 |
-- |
555 |
- int shutting_down; |
556 |
- int time_derived; |
557 |
- int time_adjusted; |
558 |
---- a/sntp/main.h 2020-12-24 08:02:05.210003956 +0100 |
559 |
-+++ a/sntp/main.h 2020-12-24 08:02:05.210003956 +0100 |
560 |
-@@ -16,6 +16,14 @@ |
561 |
- |
562 |
- #include "crypto.h" |
563 |
- |
564 |
-+/* !Attention! 'progname' must de instantiated in any program that wants |
565 |
-+ * to use this library. Putting it into the library breaks a lot of |
566 |
-+ * things, since many programs define it itself and then the symbol |
567 |
-+ * might end up twice in the linker. |
568 |
-+ */ |
569 |
-+extern const char * progname; |
570 |
-+ |
571 |
-+ |
572 |
- void set_li_vn_mode(struct pkt *spkt, char leap, char version, char mode); |
573 |
- extern int sntp_main(int argc, char **argv, const char *); |
574 |
- int generate_pkt(struct pkt *x_pkt, const struct timeval *tv_xmt, |
575 |
---- a/sntp/sntp.c 2020-12-24 08:02:05.210003956 +0100 |
576 |
-+++ a/sntp/sntp.c 2020-12-24 08:02:05.210003956 +0100 |
577 |
-@@ -2,6 +2,8 @@ |
578 |
- |
579 |
- #include "main.h" |
580 |
- |
581 |
-+const char * progname; |
582 |
-+ |
583 |
- int |
584 |
- main ( |
585 |
- int argc, |
586 |
---- a/sntp/tests/t-log.c 2020-12-24 08:02:05.210003956 +0100 |
587 |
-+++ a/sntp/tests/t-log.c 2020-12-24 08:02:05.210003956 +0100 |
588 |
-@@ -3,7 +3,6 @@ |
589 |
- #include "ntp_types.h" |
590 |
- |
591 |
- |
592 |
--//#include "log.h" |
593 |
- #include "log.c" |
594 |
- |
595 |
- void setUp(void); |
596 |
---- a/tests/libntp/test-libntp.h 2020-12-24 08:02:05.210003956 +0100 |
597 |
-+++ a/tests/libntp/test-libntp.h 2020-12-24 08:02:05.210003956 +0100 |
598 |
-@@ -5,4 +5,4 @@ |
599 |
- |
600 |
- time_t timefunc(time_t *ptr); |
601 |
- void settime(int y, int m, int d, int H, int M, int S); |
602 |
--time_t nowtime; |
603 |
-+extern time_t nowtime; |
604 |
|
605 |
diff --git a/net-misc/ntp/files/ntp-client.confd b/net-misc/ntp/files/ntp-client.confd |
606 |
deleted file mode 100644 |
607 |
index 786004d..0000000 |
608 |
--- a/net-misc/ntp/files/ntp-client.confd |
609 |
+++ /dev/null |
610 |
@@ -1,21 +0,0 @@ |
611 |
-# /etc/conf.d/ntp-client |
612 |
- |
613 |
-# Command to run to set the clock initially |
614 |
-# Most people should just leave this line alone ... |
615 |
-# however, if you know what you're doing, and you |
616 |
-# want to use ntpd to set the clock, change this to 'ntpd' |
617 |
-NTPCLIENT_CMD="ntpdate" |
618 |
- |
619 |
-# Options to pass to the above command |
620 |
-# This default setting should work fine but you should |
621 |
-# change the default 'pool.ntp.org' to something closer |
622 |
-# to your machine. See http://www.pool.ntp.org/ or |
623 |
-# try running `netselect -s 3 pool.ntp.org`. |
624 |
-NTPCLIENT_OPTS="-s -b -u \ |
625 |
- 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org \ |
626 |
- 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org" |
627 |
- |
628 |
-# If you use hostnames above, then you should depend on dns |
629 |
-# being up & running before we try to run. Otherwise, you |
630 |
-# can disable this. |
631 |
-rc_use="dns" |
632 |
|
633 |
diff --git a/net-misc/ntp/files/ntp-client.rc b/net-misc/ntp/files/ntp-client.rc |
634 |
deleted file mode 100644 |
635 |
index b3e3a81..0000000 |
636 |
--- a/net-misc/ntp/files/ntp-client.rc |
637 |
+++ /dev/null |
638 |
@@ -1,31 +0,0 @@ |
639 |
-#!/sbin/openrc-run |
640 |
-# Copyright 1999-2021 Gentoo Authors |
641 |
-# Distributed under the terms of the GNU General Public License v2 |
642 |
- |
643 |
-depend() { |
644 |
- before cron portmap |
645 |
- after net |
646 |
- use dns logger |
647 |
-} |
648 |
- |
649 |
-checkconfig() { |
650 |
- if ! type "${NTPCLIENT_CMD}" >/dev/null 2>&1 ; then |
651 |
- eerror "Please edit /etc/conf.d/ntp-client" |
652 |
- eerror "Unable to locate the client command ${NTPCLIENT_CMD}!" |
653 |
- return 1 |
654 |
- fi |
655 |
- if [ -z "${NTPCLIENT_OPTS}" ] ; then |
656 |
- eerror "Please edit /etc/conf.d/ntp-client" |
657 |
- eerror "I need to know what server/options to use!" |
658 |
- return 1 |
659 |
- fi |
660 |
- return 0 |
661 |
-} |
662 |
- |
663 |
-start() { |
664 |
- checkconfig || return $? |
665 |
- |
666 |
- ebegin "Setting clock via the NTP client '${NTPCLIENT_CMD}'" |
667 |
- "${NTPCLIENT_CMD}" ${NTPCLIENT_OPTS} |
668 |
- eend $? "Failed to set clock" |
669 |
-} |
670 |
|
671 |
diff --git a/net-misc/ntp/files/ntp.conf b/net-misc/ntp/files/ntp.conf |
672 |
deleted file mode 100644 |
673 |
index 97bed8d..0000000 |
674 |
--- a/net-misc/ntp/files/ntp.conf |
675 |
+++ /dev/null |
676 |
@@ -1,54 +0,0 @@ |
677 |
-# NOTES: |
678 |
-# DHCP clients can append or replace NTP configuration files. |
679 |
-# You should consult your DHCP client documentation about its |
680 |
-# default behaviour and how to change it. |
681 |
- |
682 |
-# Name of the servers ntpd should sync with |
683 |
-# Please respect the access policy as stated by the responsible person. |
684 |
-#server ntp.example.tld iburst |
685 |
- |
686 |
-# Common pool for random people |
687 |
-#server pool.ntp.org |
688 |
- |
689 |
-# Pools for Gentoo users |
690 |
-server 0.gentoo.pool.ntp.org |
691 |
-server 1.gentoo.pool.ntp.org |
692 |
-server 2.gentoo.pool.ntp.org |
693 |
-server 3.gentoo.pool.ntp.org |
694 |
- |
695 |
-## |
696 |
-# A list of available servers can be found here: |
697 |
-# http://www.pool.ntp.org/ |
698 |
-# http://www.pool.ntp.org/#use |
699 |
-# A good way to get servers for your machine is: |
700 |
-# netselect -s 3 pool.ntp.org |
701 |
-## |
702 |
- |
703 |
-# you should not need to modify the following paths |
704 |
-driftfile /var/lib/ntp/ntp.drift |
705 |
- |
706 |
-#server ntplocal.example.com prefer |
707 |
-#server timeserver.example.org |
708 |
- |
709 |
-# Warning: Using default NTP settings will leave your NTP |
710 |
-# server accessible to all hosts on the Internet. |
711 |
- |
712 |
-# If you want to deny all machines (including your own) |
713 |
-# from accessing the NTP server, uncomment: |
714 |
-#restrict default ignore |
715 |
- |
716 |
- |
717 |
-# Default configuration: |
718 |
-# - Allow only time queries, at a limited rate, sending KoD when in excess. |
719 |
-# - Allow all local queries (IPv4, IPv6) |
720 |
-restrict default nomodify nopeer noquery limited kod |
721 |
-restrict 127.0.0.1 |
722 |
-restrict [::1] |
723 |
- |
724 |
- |
725 |
-# To allow machines within your network to synchronize |
726 |
-# their clocks with your server, but ensure they are |
727 |
-# not allowed to configure the server or used as peers |
728 |
-# to synchronize against, uncomment this line. |
729 |
-# |
730 |
-#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap |
731 |
|
732 |
diff --git a/net-misc/ntp/files/ntpd.confd b/net-misc/ntp/files/ntpd.confd |
733 |
deleted file mode 100644 |
734 |
index 2b74282..0000000 |
735 |
--- a/net-misc/ntp/files/ntpd.confd |
736 |
+++ /dev/null |
737 |
@@ -1,6 +0,0 @@ |
738 |
-# /etc/conf.d/ntpd |
739 |
- |
740 |
-# Options to pass to the ntpd process |
741 |
-# Most people should leave this line alone ... |
742 |
-# however, if you know what you're doing, feel free to tweak |
743 |
-NTPD_OPTS="-g -u ntp:ntp" |
744 |
|
745 |
diff --git a/net-misc/ntp/files/ntpd.rc-r1 b/net-misc/ntp/files/ntpd.rc-r1 |
746 |
deleted file mode 100644 |
747 |
index e6e7aa1..0000000 |
748 |
--- a/net-misc/ntp/files/ntpd.rc-r1 |
749 |
+++ /dev/null |
750 |
@@ -1,22 +0,0 @@ |
751 |
-#!/sbin/openrc-run |
752 |
-# Copyright 1999-2021 Gentoo Authors |
753 |
-# Distributed under the terms of the GNU General Public License v2 |
754 |
- |
755 |
-description="ntpd - the network time protocol daemon" |
756 |
-pidfile="/var/run/ntpd.pid" |
757 |
-command="/usr/sbin/ntpd" |
758 |
-command_args="-p ${pidfile} ${NTPD_OPTS}" |
759 |
-start_stop_daemon_args="--pidfile ${pidfile}" |
760 |
- |
761 |
-depend() { |
762 |
- use net dns logger |
763 |
- after ntp-client |
764 |
-} |
765 |
- |
766 |
-start_pre() { |
767 |
- if [ ! -f /etc/ntp.conf ] ; then |
768 |
- eerror "Please create /etc/ntp.conf" |
769 |
- return 1 |
770 |
- fi |
771 |
- return 0 |
772 |
-} |
773 |
|
774 |
diff --git a/net-misc/ntp/files/ntpd.service-r2 b/net-misc/ntp/files/ntpd.service-r2 |
775 |
deleted file mode 100644 |
776 |
index 5f11b27..0000000 |
777 |
--- a/net-misc/ntp/files/ntpd.service-r2 |
778 |
+++ /dev/null |
779 |
@@ -1,11 +0,0 @@ |
780 |
-[Unit] |
781 |
-Description=Network Time Service |
782 |
-After=ntpdate.service sntp.service |
783 |
-Conflicts=systemd-timesyncd.service |
784 |
- |
785 |
-[Service] |
786 |
-ExecStart=/usr/sbin/ntpd -g -n |
787 |
-PrivateTmp=true |
788 |
- |
789 |
-[Install] |
790 |
-WantedBy=multi-user.target |
791 |
|
792 |
diff --git a/net-misc/ntp/files/ntpdate.service-r2 b/net-misc/ntp/files/ntpdate.service-r2 |
793 |
deleted file mode 100644 |
794 |
index 7ad294e..0000000 |
795 |
--- a/net-misc/ntp/files/ntpdate.service-r2 |
796 |
+++ /dev/null |
797 |
@@ -1,14 +0,0 @@ |
798 |
-[Unit] |
799 |
-Description=Set time via NTP using ntpdate |
800 |
-After=network-online.target nss-lookup.target |
801 |
-Before=time-sync.target |
802 |
-Wants=network-online.target time-sync.target |
803 |
-Conflicts=systemd-timesyncd.service |
804 |
- |
805 |
-[Service] |
806 |
-Type=oneshot |
807 |
-ExecStart=/usr/sbin/ntpdate -b -u $SERVER |
808 |
-RemainAfterExit=yes |
809 |
- |
810 |
-[Install] |
811 |
-WantedBy=multi-user.target |
812 |
|
813 |
diff --git a/net-misc/ntp/files/ntpdate.service.conf b/net-misc/ntp/files/ntpdate.service.conf |
814 |
deleted file mode 100644 |
815 |
index 75e4f41..0000000 |
816 |
--- a/net-misc/ntp/files/ntpdate.service.conf |
817 |
+++ /dev/null |
818 |
@@ -1,2 +0,0 @@ |
819 |
-[Service] |
820 |
-Environment="SERVER=0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org" |
821 |
|
822 |
diff --git a/net-misc/ntp/files/sntp.confd b/net-misc/ntp/files/sntp.confd |
823 |
deleted file mode 100644 |
824 |
index d11983a..0000000 |
825 |
--- a/net-misc/ntp/files/sntp.confd |
826 |
+++ /dev/null |
827 |
@@ -1,4 +0,0 @@ |
828 |
-# /etc/conf.d/sntp |
829 |
- |
830 |
-# Options to pass to sntp |
831 |
-SNTP_OPTS="-s 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org" |
832 |
|
833 |
diff --git a/net-misc/ntp/files/sntp.rc b/net-misc/ntp/files/sntp.rc |
834 |
deleted file mode 100644 |
835 |
index cbe9911..0000000 |
836 |
--- a/net-misc/ntp/files/sntp.rc |
837 |
+++ /dev/null |
838 |
@@ -1,26 +0,0 @@ |
839 |
-#!/sbin/openrc-run |
840 |
-# Copyright 1999-2021 Gentoo Authors |
841 |
-# Distributed under the terms of the GNU General Public License v2 |
842 |
- |
843 |
-command="/usr/bin/sntp" |
844 |
- |
845 |
-depend() { |
846 |
- before cron portmap |
847 |
- after net |
848 |
- use dns logger |
849 |
-} |
850 |
- |
851 |
-start_pre() { |
852 |
- if [ -z "${SNTP_OPTS}" ] ; then |
853 |
- eerror "Please edit /etc/conf.d/sntp" |
854 |
- eerror "I need to know what server/options to use!" |
855 |
- return 1 |
856 |
- fi |
857 |
- return 0 |
858 |
-} |
859 |
- |
860 |
-start() { |
861 |
- ebegin "Setting clock via SNTP" |
862 |
- ${command} ${SNTP_OPTS} |
863 |
- eend $? "Failed to set clock" |
864 |
-} |
865 |
|
866 |
diff --git a/net-misc/ntp/files/sntp.service-r3 b/net-misc/ntp/files/sntp.service-r3 |
867 |
deleted file mode 100644 |
868 |
index 2ab722f..0000000 |
869 |
--- a/net-misc/ntp/files/sntp.service-r3 |
870 |
+++ /dev/null |
871 |
@@ -1,14 +0,0 @@ |
872 |
-[Unit] |
873 |
-Description=Set time via SNTP |
874 |
-After=network.target network-online.target nss-lookup.target |
875 |
-Before=time-sync.target |
876 |
-Wants=network-online.target time-sync.target |
877 |
-Conflicts=systemd-timesyncd.service |
878 |
- |
879 |
-[Service] |
880 |
-Type=oneshot |
881 |
-ExecStart=/usr/bin/sntp -s $SERVER |
882 |
-RemainAfterExit=yes |
883 |
- |
884 |
-[Install] |
885 |
-WantedBy=multi-user.target |
886 |
|
887 |
diff --git a/net-misc/ntp/files/sntp.service.conf b/net-misc/ntp/files/sntp.service.conf |
888 |
deleted file mode 100644 |
889 |
index 75e4f41..0000000 |
890 |
--- a/net-misc/ntp/files/sntp.service.conf |
891 |
+++ /dev/null |
892 |
@@ -1,2 +0,0 @@ |
893 |
-[Service] |
894 |
-Environment="SERVER=0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org" |
895 |
|
896 |
diff --git a/net-misc/ntp/metadata.xml b/net-misc/ntp/metadata.xml |
897 |
deleted file mode 100644 |
898 |
index 88e81f1..0000000 |
899 |
--- a/net-misc/ntp/metadata.xml |
900 |
+++ /dev/null |
901 |
@@ -1,23 +0,0 @@ |
902 |
-<?xml version="1.0" encoding="UTF-8"?> |
903 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
904 |
-<pkgmetadata> |
905 |
- <maintainer type="project"> |
906 |
- <email>base-system@g.o</email> |
907 |
- <name>Gentoo Base System</name> |
908 |
- </maintainer> |
909 |
- <longdescription> |
910 |
-NTP is a protocol designed to synchronize the clocks of computers over a network. NTP |
911 |
-version 3 is an internet draft standard, formalized in RFC 1305. NTP version 4 is a |
912 |
-significant revision of the NTP standard, and is the current development version, but |
913 |
-has not been formalized in an RFC. Simple NTP (SNTP) version 4 is described in RFC |
914 |
-2030. |
915 |
-</longdescription> |
916 |
- <use> |
917 |
- <flag name="openntpd">Allow ntp to be installed alongside openntpd</flag> |
918 |
- <flag name="parse-clocks">Add support for PARSE clocks</flag> |
919 |
- <flag name="samba">Provide support for Samba's signing daemon (needed for Active Directory domain controllers)</flag> |
920 |
- </use> |
921 |
- <upstream> |
922 |
- <remote-id type="cpe">cpe:/a:ntp:ntp</remote-id> |
923 |
- </upstream> |
924 |
-</pkgmetadata> |
925 |
|
926 |
diff --git a/net-misc/ntp/ntp-4.2.8_p15.ebuild b/net-misc/ntp/ntp-4.2.8_p15.ebuild |
927 |
deleted file mode 100644 |
928 |
index 605ca1a..0000000 |
929 |
--- a/net-misc/ntp/ntp-4.2.8_p15.ebuild |
930 |
+++ /dev/null |
931 |
@@ -1,142 +0,0 @@ |
932 |
-# Copyright 1999-2021 Gentoo Authors |
933 |
-# Distributed under the terms of the GNU General Public License v2 |
934 |
- |
935 |
-EAPI=7 |
936 |
- |
937 |
-inherit autotools toolchain-funcs flag-o-matic systemd |
938 |
- |
939 |
-MY_P=${P/_p/p} |
940 |
-DESCRIPTION="Network Time Protocol suite/programs" |
941 |
-HOMEPAGE="http://www.ntp.org/" |
942 |
-SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz |
943 |
- https://dev.gentoo.org/~polynomial-c/${MY_P}-manpages.tar.xz" |
944 |
- |
945 |
-LICENSE="HPND BSD ISC" |
946 |
-SLOT="0" |
947 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux" |
948 |
-IUSE="caps debug ipv6 openntpd parse-clocks readline samba selinux snmp ssl +threads vim-syntax zeroconf" |
949 |
- |
950 |
-COMMON_DEPEND="readline? ( >=sys-libs/readline-4.1:0= ) |
951 |
- >=dev-libs/libevent-2.0.9:=[threads?] |
952 |
- kernel_linux? ( caps? ( sys-libs/libcap ) ) |
953 |
- zeroconf? ( net-dns/avahi[mdnsresponder-compat] ) |
954 |
- snmp? ( net-analyzer/net-snmp ) |
955 |
- ssl? ( dev-libs/openssl:0= ) |
956 |
- parse-clocks? ( net-misc/pps-tools )" |
957 |
-BDEPEND="virtual/pkgconfig |
958 |
- acct-group/ntp |
959 |
- acct-user/ntp" |
960 |
-DEPEND="${COMMON_DEPEND}" |
961 |
-RDEPEND="${COMMON_DEPEND} |
962 |
- acct-group/ntp |
963 |
- acct-user/ntp |
964 |
- selinux? ( sec-policy/selinux-ntp ) |
965 |
- vim-syntax? ( app-vim/ntp-syntax ) |
966 |
- !net-misc/ntpsec |
967 |
- !openntpd? ( !net-misc/openntpd ) |
968 |
-" |
969 |
-PDEPEND="openntpd? ( net-misc/openntpd )" |
970 |
- |
971 |
-S="${WORKDIR}/${MY_P}" |
972 |
- |
973 |
-PATCHES=( |
974 |
- "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966 |
975 |
- "${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922 |
976 |
- "${FILESDIR}"/${PN}-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch |
977 |
- "${FILESDIR}"/${PN}-4.2.8_p12-libressl-2.8.patch |
978 |
- "${FILESDIR}"/${PN}-4.2.8_p14-add_cap_ipc_lock.patch #711530 |
979 |
- "${FILESDIR}"/${PN}-4.2.8_p15-gcc10.patch #759409 |
980 |
-) |
981 |
- |
982 |
-src_prepare() { |
983 |
- default |
984 |
- append-cppflags -D_GNU_SOURCE #264109 |
985 |
- # Make sure every build uses the same install layout. #539092 |
986 |
- find sntp/loc/ -type f '!' -name legacy -delete || die |
987 |
- eautoreconf #622754 |
988 |
- # Disable pointless checks. |
989 |
- touch .checkChangeLog .gcc-warning FRC.html html/.datecheck |
990 |
-} |
991 |
- |
992 |
-src_configure() { |
993 |
- # avoid libmd5/libelf |
994 |
- export ac_cv_search_MD5Init=no ac_cv_header_md5_h=no |
995 |
- export ac_cv_lib_elf_nlist=no |
996 |
- # blah, no real configure options #176333 |
997 |
- export ac_cv_header_dns_sd_h=$(usex zeroconf) |
998 |
- export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h} |
999 |
- local myeconfargs=( |
1000 |
- --with-lineeditlibs=readline,edit,editline |
1001 |
- --with-yielding-select |
1002 |
- --disable-local-libevent |
1003 |
- # Increase the default memlimit from 32MiB to 128MiB. #533232 |
1004 |
- --with-memlock=256 |
1005 |
- $(use_enable caps linuxcaps) |
1006 |
- $(use_enable parse-clocks) |
1007 |
- $(use_enable ipv6) |
1008 |
- $(use_enable debug debugging) |
1009 |
- $(use_with readline lineeditlibs readline) |
1010 |
- $(use_enable samba ntp-signd) |
1011 |
- $(use_with snmp ntpsnmpd) |
1012 |
- $(use_with ssl crypto) |
1013 |
- $(use_enable threads thread-support) |
1014 |
- ) |
1015 |
- econf "${myeconfargs[@]}" |
1016 |
-} |
1017 |
- |
1018 |
-src_install() { |
1019 |
- default |
1020 |
- # move ntpd/ntpdate to sbin #66671 |
1021 |
- dodir /usr/sbin |
1022 |
- mv "${ED}"/usr/bin/{ntpd,ntpdate} "${ED}"/usr/sbin/ || die "move to sbin" |
1023 |
- |
1024 |
- dodoc INSTALL WHERE-TO-START |
1025 |
- doman "${WORKDIR}"/man/*.[58] |
1026 |
- |
1027 |
- insinto /etc |
1028 |
- doins "${FILESDIR}"/ntp.conf |
1029 |
- use ipv6 || sed -i '/^restrict .*::1/d' "${ED}"/etc/ntp.conf #524726 |
1030 |
- newinitd "${FILESDIR}"/ntpd.rc-r1 ntpd |
1031 |
- newconfd "${FILESDIR}"/ntpd.confd ntpd |
1032 |
- newinitd "${FILESDIR}"/ntp-client.rc ntp-client |
1033 |
- newconfd "${FILESDIR}"/ntp-client.confd ntp-client |
1034 |
- newinitd "${FILESDIR}"/sntp.rc sntp |
1035 |
- newconfd "${FILESDIR}"/sntp.confd sntp |
1036 |
- if ! use caps ; then |
1037 |
- sed -i "s|-u ntp:ntp||" "${ED}"/etc/conf.d/ntpd || die |
1038 |
- fi |
1039 |
- sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die |
1040 |
- |
1041 |
- keepdir /var/lib/ntp |
1042 |
- use prefix || fowners ntp:ntp /var/lib/ntp |
1043 |
- |
1044 |
- if use openntpd ; then |
1045 |
- cd "${ED}" || die |
1046 |
- rm usr/sbin/ntpd || die |
1047 |
- rm -r var/lib || die |
1048 |
- rm etc/{conf,init}.d/ntpd || die |
1049 |
- rm usr/share/man/*/ntpd.8 || die |
1050 |
- else |
1051 |
- systemd_newunit "${FILESDIR}"/ntpd.service-r2 ntpd.service |
1052 |
- if use caps ; then |
1053 |
- sed -i '/ExecStart/ s|$| -u ntp:ntp|' \ |
1054 |
- "${D}$(systemd_get_systemunitdir)"/ntpd.service \ |
1055 |
- || die |
1056 |
- fi |
1057 |
- systemd_enable_ntpunit 60-ntpd ntpd.service |
1058 |
- fi |
1059 |
- |
1060 |
- systemd_newunit "${FILESDIR}"/ntpdate.service-r2 ntpdate.service |
1061 |
- systemd_install_serviced "${FILESDIR}"/ntpdate.service.conf |
1062 |
- systemd_newunit "${FILESDIR}"/sntp.service-r3 sntp.service |
1063 |
- systemd_install_serviced "${FILESDIR}"/sntp.service.conf |
1064 |
-} |
1065 |
- |
1066 |
-pkg_postinst() { |
1067 |
- if grep -qs '^[^#].*notrust' "${EROOT}"/etc/ntp.conf ; then |
1068 |
- eerror "The notrust option was found in your /etc/ntp.conf!" |
1069 |
- ewarn "If your ntpd starts sending out weird responses," |
1070 |
- ewarn "then make sure you have keys properly setup and see" |
1071 |
- ewarn "https://bugs.gentoo.org/41827" |
1072 |
- fi |
1073 |
-} |