summaryrefslogtreecommitdiff
path: root/net-misc/ntpsec
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
commit129160ec854dca4c3fedb5bcfbcb56930371da0f (patch)
tree53bf797418ac5e9b99c41ca0382c87b82421e5de /net-misc/ntpsec
parent441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff)
gentoo new year resync : 01.01.2021
Diffstat (limited to 'net-misc/ntpsec')
-rw-r--r--net-misc/ntpsec/Manifest8
-rw-r--r--net-misc/ntpsec/files/ntpd.service15
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.1.7-make-sure-logrotate-config-has-missingok.patch28
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.1.8-externalize-sys_maxclock-fix-for-bug-708522.patch23
-rw-r--r--net-misc/ntpsec/files/ntpsec-1.1.8-fix-asciidoc-version-detect.patch372
-rw-r--r--net-misc/ntpsec/ntpsec-1.1.7-r1.ebuild159
-rw-r--r--net-misc/ntpsec/ntpsec-1.1.8.ebuild167
7 files changed, 0 insertions, 772 deletions
diff --git a/net-misc/ntpsec/Manifest b/net-misc/ntpsec/Manifest
index 9ea8ad5fb105..ca97b0b5cfe2 100644
--- a/net-misc/ntpsec/Manifest
+++ b/net-misc/ntpsec/Manifest
@@ -2,18 +2,10 @@ AUX ntp.conf 727 BLAKE2B 1b37cee807c41593ffc44994e390c98406c49154477bc2a603ba403
AUX ntpd-r1.service 613 BLAKE2B 9e0d0fdefa670c2ac25142bfb37880ce4ba0662f70f7cf9acb02f9016bfeabd94a043e92d1b1be11e74b838e9cc91d7d7c1144539917c927537e67f92b45003e SHA512 cdfbc735e157306597ff3c37b5aea34d64c66a69bbb9dbfba6c7eb57d6b201c9d2e86969e5be9b8331e75e1de8eaa17ee4d8f72bed9bc058a6198bf5a2d717c6
AUX ntpd.confd 90 BLAKE2B 980ea88c97b1deff65f53c13410fe46bc1e19a80140776002ae2fdc0a3ad18c9855b74a70f1a89eb31854bbdad6729753c3a199cddb25b58178a79a0ea0a7050 SHA512 a2fdf88f6f55bcf0a6545db77817e3a740dba50bf56b4fdd80d335e8c909d0880fbd962041754d7f5fb3946ed131d9a739ec72008bacab9f1f47ff82dc74c542
AUX ntpd.rc-r2 484 BLAKE2B 826a3ee09486d912525fe6d44b967e25d8b31485d89a80987afcf459ea335058ff8a7835f3931017505aad6c5ba60e546b608ce26a51ad38f5972675d0a47559 SHA512 dc89a58edf6f83878d42522a015f2c3e12db9505ea3d6bc4b04e6e82947a7be6e8d143e8808bb58644641dd754744fd4be20c8b944a4261b460c30b95436fc31
-AUX ntpd.service 299 BLAKE2B 307dbf3a8569cdd1d54095bdb9b409986a9de3c7ec98405b4544f1df565828da2b685ce408061bc03f9a7991fbd61a9b42577c4e6db06bd2a4a012949cafe2dc SHA512 b625e993bbeba5da9c0f14ec8ff9d256575d9590a6c506436e834a9dc17877bfd57920b008bd01409d47de71acfb221a0d92c0203e2aacca33083e196466faf9
-AUX ntpsec-1.1.7-make-sure-logrotate-config-has-missingok.patch 736 BLAKE2B 63188a7fc1350b1ba4230f9d5080f81f703bd8bbb1fd59c1d79610fd0a650ee47c5f0679fa7679bc12daddfb7d12727b95099c46ede7d7b11718c16fbc225b5b SHA512 74807a33b59be2d65421b8a8bd1f83ec2861066740f8ede07e3424316f23528c4d23cd3850b04721f11af755163edf5217e4bf8b7005c915209ac703694e40d8
-AUX ntpsec-1.1.8-externalize-sys_maxclock-fix-for-bug-708522.patch 854 BLAKE2B dc063775eee0248e24c174056581979582dd1dbc4e4fd0901add3f26b63cbb342469598f1fd2be8af8c1da561c1f225349cec258fcfb4af9355d47e33bcf77eb SHA512 a5c6d652c4d696af126f199df7ec1e8a9c33f55b3a0d02b5576898d34016780f51e06aa4e0e84a1d2862f57d08fd4285dd0888bac5aac9fec94c26a2e9b99043
-AUX ntpsec-1.1.8-fix-asciidoc-version-detect.patch 14369 BLAKE2B 5f2152463b0a551202f07b535bcd14ef8a94a599643ab5e6dedf481eacc97ba7f8e7491ead10473b2988b07cef41a65c6c3612b564a155df4a01fb6df7bdb0db SHA512 b171e5b0f3f493db6a2d10b0e9ecacf3cd8b6ed49f363d431c8d4a5fc3314acdbc4c82882967f4ef72193c6e3851a3aed5d667820175f75e43b413a277f31a19
AUX ntpsec-1.1.8-fix-missing-scmp_sys-on-aarch64.patch 536 BLAKE2B cac17041a05d0ec22b8d95dbb16118d7603c74a7d4c873422de65451f5ddd74b7d9aceb51714d842ef7c4a37ea638212487d6db99ebfa201b01b9654b732538c SHA512 c54b3304ca467e8434e29d312e5839c788becd8ae9068737ec9725a42f22073ea0e86355999dc6d606c12f4c733497cbe48bd49b6e150c39e6540e581df6087e
AUX ntpsec-1.1.9-remove-asciidoctor-from-config.patch 680 BLAKE2B 7204a831b3dc0dba7f268febd10fa7599ef6b9bee30199ce10529d2d326719f5b376d301aabfef3beacecd4af813bcef1d6a65d61ab00996d72f1240f83ef8e3 SHA512 3e012ad70507f440ed3a4aca4886a96e40d49a0dd7c14572f664633a56139cb7767e07ee1bb5e8295fc32052914364660c928d11369b6f80193ae7e190e5a48e
AUX ntpsec-no-bsd.patch 1538 BLAKE2B 6abb7acf23149a5a47f8e479bff090966e7e6161fc0d5bca1f9e5b9396d90898a783e7d309d6cdbdf689ea12314c804aa7a39f05b3f11d75a95eb337cea95b55 SHA512 7ddb346c7f0c9b30ea08ac28eaa39cf86e3d6cee7eaeba3bc7fe0883acd5087966e4e7beb298cee02607dfa3198a8c1dfcd9ce43ead820de3bb7014cefe75302
-DIST ntpsec-1.1.7.tar.gz 2534524 BLAKE2B 5777ecca4ceb988632fadc0e7124530993a7758cdf335e8cd90f0ec1a8b643be89b67c0e2bf49d6d7193bf92ded138af0df4b5856c0d113f552ef22dd8a6cadf SHA512 734b12820539e655e504dd5071a58b9d1f80c0b0c3c7458c797ba7ada23d8e446751fbcbddd9832d9151a3ba9464749878db9e77e23cdd5f6215ab9e1d908ae9
-DIST ntpsec-1.1.8.tar.gz 2589363 BLAKE2B e7e11a7d980599ac598f084608160d3f6f6cf8e2aab5fb45cc15cabca30462bd03db7b9ecc140826c5d7b5e26f49b48f7f2b6043bdc2ffa1d73167347fb8123f SHA512 0920f25adf68f1b8ccd1734c5d61ba1c858cd86b342db7b5155dd9b58e538aa96aad3fd4058597f079ec3df63cb51d2900ac8e6d9c84d6f2bd4a3a22cc0c967c
DIST ntpsec-1.1.9.tar.gz 2606066 BLAKE2B bbc482333c7f86936fa20751df1b427bc24be159969050caf5751e26724714bbf6491b120986563497f015c96ac9cdbdf0e999c6446a68798aff23076f631ecc SHA512 e04267aa675a5b528f3478d00329a569ecb9bbe2b6ad18697020854d2ee451bc188c4603cd5f420a08a7e3bf047d2db1301416f57f9156df23aceb1f57303b0b
-EBUILD ntpsec-1.1.7-r1.ebuild 4157 BLAKE2B 9c992edfdb1ce011c07190c1f91da6eae3f8dada516587a94ea9a5aa2feedfc904583b63bca288df2301d8b2ae58d7353a822ee9ece4c34c99243076f776b0a2 SHA512 8afda370b45d2048f10c7f3122d67af4c45204b021a5ad62e686c35c79c59fed627cedb6d39653560354b692614222bbafd46938a2620a423defa6816f170f13
-EBUILD ntpsec-1.1.8.ebuild 4345 BLAKE2B 5912cebcb1f7315538293b3c0c332abaa43525b2d78c89d8d1bdda102bdfbcfb2c01a48ce599911952708ffac64a25607844d198d0f2bd43175f749fcf96a3bb SHA512 239de4704281175438c76099ecb03726ce467c811077e2d11b11671ebde6d102ecdf50838eaeae94484daa4af48bee5b2e336df440888f64fc4e599d8da69702
EBUILD ntpsec-1.1.9.ebuild 4197 BLAKE2B 956af55af711b07390c1d600a6b3ad6b4ddd3effdd0f295c85e4b7a1c0ec3b9fd70286a772140afb4cb94fd292ae5be2fc843dad6e7fd34cc2dfc2b92eae4be8 SHA512 ed39608122eb5d414ddabc35e63676d40e0b1d0375247442a9a19383c0069f37530c1985d6cd3589a05468e16418464d5e53a6c6482998ea28f968e77730a2a6
EBUILD ntpsec-9999.ebuild 4056 BLAKE2B c47d9c0fe4c01f1d66f1dc115f801cf95a6d8a7646f621c6e127b898581eb211520ea63e2eef43999039c32d6cc2eafd15fe8721ef4a5484e3528658ab11385f SHA512 c64b7cac7418191e75aa827e800f535a193165f5395215ffa3aca99a6ed0675d5a5c060eb5a3ed662882f2b3911977b918fe9366b49c7a7053f2f186ec60c1d5
MISC metadata.xml 2078 BLAKE2B c15f3c9143653044f1da8fdf1e36298df819a6266ca369c511a9d4247cf32d93377b26f4898070c60d59b4737581b22b27a1097de38c314ec03cc908a18a31d3 SHA512 691f4b463d437616d897d979538e20726eda0a4835f3209639ef0ae7ecbcea6fd01c7bfd1849b91bfdd37e71b8306daa07cf6223a08848c7e45f8128135fa6fc
diff --git a/net-misc/ntpsec/files/ntpd.service b/net-misc/ntpsec/files/ntpd.service
deleted file mode 100644
index a551bb7b1307..000000000000
--- a/net-misc/ntpsec/files/ntpd.service
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=Network Time Service
-After=network.target nss-lookup.target
-Conflicts=systemd-timesyncd.service
-
-[Service]
-Type=forking
-PrivateTmp=true
-EnvironmentFile=-/etc/conf.d/ntp
-ExecStart=/usr/sbin/ntpd ${NTPD_OPTS}
-Restart=always
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-misc/ntpsec/files/ntpsec-1.1.7-make-sure-logrotate-config-has-missingok.patch b/net-misc/ntpsec/files/ntpsec-1.1.7-make-sure-logrotate-config-has-missingok.patch
deleted file mode 100644
index 4556d7a50f7d..000000000000
--- a/net-misc/ntpsec/files/ntpsec-1.1.7-make-sure-logrotate-config-has-missingok.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 252a301aba9a685b5b6df7824c576f52cc19fb81 Mon Sep 17 00:00:00 2001
-From: Stephen Arnold <nerdboy@gentoo.org>
-Date: Fri, 8 Nov 2019 16:41:16 -0800
-Subject: [PATCH] etc/logrotate-config.ntpd: make sure it has missingok
-
-* note master branch does not need this, but all the releases do
-
-Signed-off-by: Stephen Arnold <nerdboy@gentoo.org>
----
- etc/logrotate-config.ntpd | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/etc/logrotate-config.ntpd b/etc/logrotate-config.ntpd
-index e5d8616bf..a49129d45 100644
---- a/etc/logrotate-config.ntpd
-+++ b/etc/logrotate-config.ntpd
-@@ -5,6 +5,8 @@
-
- /var/log/ntpd.log {
- monthly
-+ notifempty
-+ missingok
- postrotate
- /usr/bin/killall -HUP ntpd
- endscript
---
-2.21.0
-
diff --git a/net-misc/ntpsec/files/ntpsec-1.1.8-externalize-sys_maxclock-fix-for-bug-708522.patch b/net-misc/ntpsec/files/ntpsec-1.1.8-externalize-sys_maxclock-fix-for-bug-708522.patch
deleted file mode 100644
index caeaf1824cc5..000000000000
--- a/net-misc/ntpsec/files/ntpsec-1.1.8-externalize-sys_maxclock-fix-for-bug-708522.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From ccdd9d4b941b30fc44b301595e42809dbe48628d Mon Sep 17 00:00:00 2001
-From: James Browning <JamesB.fe80@gmail.com>
-Date: Sun, 26 Jan 2020 09:58:36 -0800
-Subject: [PATCH] Externalize sys_maxclock from include/ntpd.h ...
-
-I think this will shut up the Fedora Rawhide runners
----
- include/ntpd.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/include/ntpd.h b/include/ntpd.h
-index c4f9b9e45..ee16678e1 100644
---- a/include/ntpd.h
-+++ b/include/ntpd.h
-@@ -369,7 +369,7 @@ extern int peer_associations; /* mobilized associations */
- * System variables are declared here. See Section 3.2 of the
- * specification.
- */
--int sys_maxclock; /* maximum candidates */
-+extern int sys_maxclock; /* maximum candidates */
- struct system_variables {
- uint8_t sys_leap; /* system leap indicator */
- uint8_t sys_stratum; /* system stratum */
diff --git a/net-misc/ntpsec/files/ntpsec-1.1.8-fix-asciidoc-version-detect.patch b/net-misc/ntpsec/files/ntpsec-1.1.8-fix-asciidoc-version-detect.patch
deleted file mode 100644
index aabd83654334..000000000000
--- a/net-misc/ntpsec/files/ntpsec-1.1.8-fix-asciidoc-version-detect.patch
+++ /dev/null
@@ -1,372 +0,0 @@
-diff --git a/wafhelpers/asciidoc.py b/wafhelpers/asciidoc.py
-index b6aa1f116..a2218bb69 100644
---- a/wafhelpers/asciidoc.py
-+++ b/wafhelpers/asciidoc.py
-@@ -1,73 +1,173 @@
--import re
--
--from waflib import Task
--from waflib.TaskGen import extension
--
--# asciidoc -b html5 -a linkcss -a stylesdir=/mnt/devel/ntp/commit/docs \
--# -o asd driver32.adoc
--
--# Borrowed from waf/docs/book/wscript in the Waf Project.
--re_xi = re.compile('''^(include|image)::(.*?.(adoc|\\{PIC\\}))\[''', re.M)
--
--
--def ascii_doc_scan(self):
-- p = self.inputs[0].parent
-- node_lst = [self.inputs[0]]
-- seen = []
-- depnodes = []
--
-- while node_lst:
-- nd = node_lst.pop(0)
-- if nd in seen:
-- continue
-- seen.append(nd)
--
-- code = nd.read()
-- for m in re_xi.finditer(code):
-- name = m.group(2)
-- if m.group(3) == '{PIC}':
--
-- ext = '.eps'
-- if self.generator.rule.rfind('A2X') > 0:
-- ext = '.png'
--
-- k = p.find_resource(name.replace('{PIC}', ext))
-- if k:
-- depnodes.append(k)
-- else:
-- k = self.inputs[0].find_resource(name)
-- if k:
-- depnodes.append(k)
-- node_lst.append(k)
-- return [depnodes, ()]
-+'''Most of the functionality for building HTML and man pages from AsciiDoc.'''
-
-+import re
-
--# ASCIIDOC_FLAGS are almost always needed and need to be set by the user.
--class asciidoc(Task.Task):
-- color = "BLUE"
-- run_str = '${BIN_ASCIIDOC} -b html5 -a linkcss ${ASCIIDOC_FLAGS} ' \
-- '-o ${TGT[0].name} ${SRC[0].abspath()}'
-- ext_out = ".html"
-+from waflib import Task # pylint: disable=import-error
-+from waflib.TaskGen import extension # pylint: disable=import-error
-+
-+
-+def options(opt):
-+ 'Add command line options for AsciiDoc processing.'
-+ grp = opt.add_option_group('NTP documentation configure options')
-+ grp.add_option('--disable-doc', action='store_true',
-+ default=False, help='Disable HTML document building.')
-+ grp.add_option('--enable-doc', action='store_true',
-+ default=False, help='Enable HTML document building.')
-+ grp.add_option('--disable-manpage', action='store_true',
-+ default=False, help='Disable manpage building.')
-+ grp.add_option('--enable-manpage', action='store_true',
-+ default=False, help='Enable manpage building.')
-+
-+
-+def configure(ctx):
-+ 'Set options from the extended environment and command line arguments.'
-+
-+ if ctx.options.disable_doc and ctx.options.enable_doc:
-+ ctx.fatal('--disable-doc and --enable-doc conflict.')
-+ if ctx.options.disable_manpage and ctx.options.enable_manpage:
-+ ctx.fatal('--disable-manpage and --enable-manpage conflict.')
-+
-+ ctx.env.BUILD_DOC = False
-+ ctx.env.BUILD_MAN = False
-+ if ctx.options.disable_doc and ctx.options.disable_manpage:
-+ ctx.msg('AsciiDoc processor', 'unnecessary')
-+ return
-+
-+ # asciidoctor versions < 1.5.8 throw warnings for manpages and driver_shm.
-+ # asciidoc versions 8.6.5-8.6.7 throw warnings for warp.adoc and versions
-+ # < 8.6.4 have no HTML5 backend.
-+ # asciidoc3 versions < 3.0.2 throw errors.
-+ adoc_list = [['asciidoctor', (1, 5, 8)],
-+ ['asciidoc', (8, 6, 8)],
-+ ['asciidoc3', (3, 0, 2)],
-+ ]
-+ for progname, asciidocminver in adoc_list:
-+ if 'BIN_ASCIIDOC' not in ctx.env or ctx.env.BIN_ASCIIDOC == []:
-+ # used to make man and HTML pages
-+ ctx.find_program(progname, var='BIN_ASCIIDOC', mandatory=False)
-+ # make sure asciidoc is new enough.
-+ # based on check_python_version() from waf
-+
-+ if ctx.env.BIN_ASCIIDOC:
-+ # https://lists.ntpsec.org/pipermail/devel/2016-July/001778.html
-+ # Get asciidoc version string
-+ cmd = ctx.env.BIN_ASCIIDOC + ['--version']
-+ # example output: asciidoc 8.6.9
-+ version_string = ctx.cmd_and_log(cmd).split()[1]
-+ match = re.match(r'^(\d+)\.(\d+)\.(\d+)', version_string)
-+ if match:
-+ version_tuple = tuple(map(int, match.groups()))
-+ if version_tuple >= asciidocminver:
-+ if progname == 'asciidoc':
-+ ctx.find_program('a2x', var='BIN_A2X', mandatory=False)
-+ ctx.find_program('xsltproc', var='BIN_XSLTPROC',
-+ mandatory=False)
-+ elif progname == 'asciidoc3':
-+ ctx.find_program('a2x3', var='BIN_A2X', mandatory=False)
-+ ctx.find_program('xsltproc', var='BIN_XSLTPROC',
-+ mandatory=False)
-+
-+ if version_tuple >= asciidocminver:
-+ color = 'GREEN'
-+ else:
-+ color = 'YELLOW'
-+ ctx.env.BIN_ASCIIDOC = []
-+ ctx.msg('Checking for %s version >= %s' %
-+ (progname, '%d.%d.%d' % asciidocminver),
-+ version_string, color=color)
-+
-+ if not ctx.env.BIN_ASCIIDOC:
-+ if not (ctx.options.enable_doc or ctx.options.enable_manpage):
-+ # The user did not require either, so this is fine.
-+ return
-+
-+ error = 'no AsciiDoc processor qualified'
-+ if ctx.options.enable_doc:
-+ error += ', remove --enable-doc'
-+ if ctx.options.enable_manpage:
-+ error += ', remove --enable-manpage'
-+ ctx.fatal(error)
-+
-+ ctx.env.BUILD_DOC = not ctx.options.disable_doc
-+ ctx.env.BUILD_MAN = not ctx.options.disable_manpage
-+
-+ if 'asciidoctor' in ctx.env.BIN_ASCIIDOC[0]:
-+ ctx.env.ARGS_DOC = [
-+ ctx.env.BIN_ASCIIDOC[0],
-+ '-a', 'attribute-missing=warn',
-+ # To eliminate compat-mode:
-+ # 'italics' needs to be changed to _italics_
-+ # +monospace+ needs to be changed to `monospace`
-+ # https://asciidoctor.org/docs/migration/#migration-cheatsheet
-+ '-a', 'compat-mode',
-+ ]
-+ ctx.env.ARGS_MAN = ctx.env.ARGS_DOC + [
-+ '-b', 'manpage',
-+ ]
-+ ctx.env.ARGS_DOC += [
-+ '-b', 'xhtml5', '-a', 'linkcss',
-+ '-a', 'stylesheet=asciidoc.css',
-+ ]
-+ elif 'asciidoc' in ctx.env.BIN_ASCIIDOC[0]:
-+ ctx.env.ARGS_DOC = [
-+ ctx.env.BIN_ASCIIDOC[0],
-+ '-a', 'attribute-missing=warn',
-+ '-b', 'html5', '-a', 'linkcss',
-+ '-a', 'stylesheet=asciidoc.css',
-+ ]
-+ if ctx.env.BIN_A2X and ctx.env.BIN_XSLTPROC:
-+ ctx.env.ARGS_MAN = [
-+ ctx.env.BIN_A2X[0],
-+ '-a', 'attribute-missing=warn',
-+ '-f', 'manpage', '--no-xmllint',
-+ ]
-+ else:
-+ if ctx.options.enable_manpage:
-+ ctx.fatal('a2x/xsltproc not found, remove --enable-manpage')
-+ ctx.env.BUILD_MAN = False
-+
-+
-+def build(ctx):
-+ 'Set processor noise level and set HTML pages to build.'
-+ from waflib.Logs import verbose # pylint: disable=import-error
-+ if verbose > 1: # Pass verbosity to AsciiDoc toolchain
-+ if ctx.env.ARGS_DOC:
-+ ctx.env.ARGS_DOC += ['-v']
-+ if ctx.env.ARGS_MAN:
-+ ctx.env.ARGS_MAN += ['-v']
-+ if ctx.env.BUILD_DOC and ctx.variant == 'main':
-+ ctx.recurse('docs')
-+
-+
-+class html(Task.Task):
-+ 'Define HTML build process.'
-+ # Optional weight to tune the priority for task instances.
-+ # The higher, the earlier. The weight only applies to single task objects.
-+ weight = 3 # set arbitrarily high to be first as to not slow down later tasks
-+ run_str = '${ARGS_DOC} -o ${TGT[0].name} ${SRC[0].abspath()}'
-+ ext_out = '.html'
-+
-+
-+class man(Task.Task):
-+ 'Define manpage build process.'
-+ weight = 2 # set arbitrarily high to be second as to not slow down later tasks (Failed)
-+ run_str = '${ARGS_MAN} ${SRC[0].abspath()}'
-
-
- @extension('.adoc')
--def run_asciidoc(self, node):
-- out = node.change_ext(".html")
-- tsk = self.create_task("asciidoc", node, [out])
-+def run_html(self, node):
-+ 'Add HTML build caller function.'
-+ out = node.change_ext('.html')
-+ tsk = self.create_task('html', node, [out])
- tsk.cwd = node.parent.get_bld().abspath()
-
-
--class a2x(Task.Task):
-- color = "YELLOW"
-- shell = True
-- run_str = '${BIN_A2X} ${A2X_FLAGS} ${SRC[0].abspath()}'
-- scan = ascii_doc_scan
--
--
- @extension('.man-tmp')
--def run_a2x(self, node):
-+def run_manpage(self, node):
-+ 'Add manpage build caller function.'
- n_file = node.path_from(self.bld.bldnode)
-- out = "%s.%s" % (n_file.replace("-man.adoc.man-tmp", ""), self.section)
-+ out = '%s.%s' % (n_file.replace('-man.adoc.man-tmp', ''), self.section)
- out_n = self.bld.path.find_or_declare(out)
-- self.create_task('a2x', node, out_n)
-- self.bld.install_files("${MANDIR}/man%s/" % self.section, out_n)
-+ self.create_task('man', node, out_n)
-+ self.bld.install_files('${MANDIR}/man%s/' % self.section, out_n)
-+ weight = 3
-diff --git a/wafhelpers/waf.py b/wafhelpers/waf.py
-index 96f753ecb..4f2d562a4 100644
---- a/wafhelpers/waf.py
-+++ b/wafhelpers/waf.py
-@@ -41,10 +41,7 @@ def manpage_subst_fun(self, code):
- @conf
- def manpage(ctx, section, source):
-
-- # ctx.install_files('${MANDIR}' + "/man%s/" % section,
-- # source.replace("-man.adoc", ".%s" % section))
--
-- if not ctx.env.ENABLE_DOC or ctx.env.DISABLE_MANPAGE:
-+ if not ctx.env.BUILD_MAN:
- return
-
- ctx(features="subst",
-diff --git a/wscript b/wscript
-index c7c5468b1..601edaacd 100644
---- a/wscript
-+++ b/wscript
-@@ -55,10 +55,12 @@ Usage: waf <command>
-
- def options(ctx):
- options_cmd(ctx, config)
-+ ctx.load('asciidoc', tooldir='wafhelpers/')
- ctx.recurse("pylib")
-
-
- def configure(ctx):
-+ ctx.load('asciidoc', tooldir='wafhelpers/')
- class oc(Build.BuildContext):
- cmd = 'oc'
-
-@@ -93,7 +95,6 @@ def configure(ctx):
- ctx.run_build_cls = 'check'
- ctx.load('waf', tooldir='wafhelpers/')
- ctx.load('waf_unit_test')
-- ctx.load('pytest')
- ctx.load('gnu_dirs')
-
- with open("VERSION", "r") as f:
-@@ -148,55 +149,6 @@ def configure(ctx):
- ctx.find_program("awk", var="BIN_AWK", mandatory=False)
- ctx.find_program("sh", var="BIN_SH", mandatory=False)
-
-- # used to make man and html pages
-- ctx.find_program("asciidoc", var="BIN_ASCIIDOC", mandatory=False)
-- # make sure asciidoc is new enough.
-- # based on check_python_version() from waf
-- if ctx.env.BIN_ASCIIDOC:
-- # https://lists.ntpsec.org/pipermail/devel/2016-July/001778.html
-- asciidocminver = (8, 6, 0)
-- # Get asciidoc version string
-- cmd = ctx.env.BIN_ASCIIDOC + ['--version']
-- # example output: asciidoc 8.6.9
-- lines = ctx.cmd_and_log(cmd).split()[1].split(".")
-- assert len(lines) == 3, "found %r lines, expected 3: %r" \
-- % (len(lines), lines)
-- asciidocver_tuple = (int(lines[0]), int(lines[1]), int(lines[2]))
--
-- # Compare asciidoc version with the minimum required
-- result = (asciidocver_tuple >= asciidocminver)
--
-- asciidocver_full = '.'.join(map(str, asciidocver_tuple[:3]))
-- asciidocminver_str = '.'.join(map(str, asciidocminver))
-- ctx.msg('Checking for asciidoc version >= %s' % (asciidocminver_str,),
-- asciidocver_full, color=result and 'GREEN' or 'YELLOW')
--
-- if not result:
-- del ctx.env.BIN_ASCIIDOC
-- ctx.find_program("a2x", var="BIN_A2X", mandatory=False)
-- ctx.find_program("xsltproc", var="BIN_XSLTPROC", mandatory=False)
--
-- ctx.env.ENABLE_DOC = False
-- if ctx.env.BIN_ASCIIDOC and ctx.env.BIN_XSLTPROC and ctx.env.BIN_A2X:
-- ctx.env.ENABLE_DOC = True
--
-- if ctx.options.enable_doc and not ctx.env.ENABLE_DOC:
-- ctx.fatal("asciidoc and xsltproc are required in order "
-- "to build documentation")
-- elif ctx.options.enable_doc:
-- ctx.env.ASCIIDOC_FLAGS = []
-- ctx.env.ENABLE_DOC_USER = ctx.options.enable_doc
--
-- # XXX: conditionally build this with --disable-man?
-- # Should it build without docs enabled?
-- ctx.env.A2X_FLAGS = ["--format", "manpage"]
-- if not ctx.options.enable_a2x_xmllint:
-- ctx.env.A2X_FLAGS += ["--no-xmllint"]
--
-- # Disable manpages within build()
-- if ctx.options.disable_manpage:
-- ctx.env.DISABLE_MANPAGE = True
--
- ctx.check_cfg(
- package='systemd', variables=['systemdsystemunitdir'],
- uselib_store='SYSTEMD', mandatory=False,
-@@ -662,7 +614,7 @@ int main(int argc, char **argv) {
- ('strlcat', ["string.h"])
- )
- for ft in optional_functions:
-- probe_function(ctx, function=ft[0], prerequisites=ft[1])
-+ probe_function(ctx, function=ft[0], prerequisites=ft[1])
-
- # This area is still work in progress
- # Need to disable making symbols
-@@ -897,8 +848,8 @@ int main(int argc, char **argv) {
- msg_setting("Droproot Support", droproot_type)
- msg_setting("Debug Support", yesno(ctx.options.enable_debug))
- msg_setting("Refclocks", ", ".join(sorted(ctx.env.REFCLOCK_LIST)))
-- msg_setting("Build Manpages",
-- yesno(ctx.env.ENABLE_DOC and not ctx.env.DISABLE_MANPAGE))
-+ msg_setting("Build Docs", yesno(ctx.env.BUILD_DOC))
-+ msg_setting("Build Manpages", yesno(ctx.env.BUILD_MAN))
-
- ctx.recurse("pylib")
- # Convert the Python directories to absolute paths.
-@@ -1035,14 +986,6 @@ def build(ctx):
- # the build directory never happens. This is how we foil that.
- ctx.add_pre_fun(lambda ctx: ctx.exec_command("rm -f pylib/*.py[co]"))
-
-- if verbose > 0: # Pass Verbosity to asciidoc and a2x
-- ctx.env.A2X_FLAGS += ["-v"]
-- ctx.env.ASCIIDOC_FLAGS += ["-v"]
--
-- if ctx.env.ENABLE_DOC_USER:
-- if ctx.variant != "main":
-- ctx.recurse("docs")
--
- if ctx.variant == "host":
- ctx.recurse("ntpd")
- return
diff --git a/net-misc/ntpsec/ntpsec-1.1.7-r1.ebuild b/net-misc/ntpsec/ntpsec-1.1.7-r1.ebuild
deleted file mode 100644
index c739bc481134..000000000000
--- a/net-misc/ntpsec/ntpsec-1.1.7-r1.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_6 )
-PYTHON_REQ_USE='threads(+)'
-
-inherit flag-o-matic python-r1 waf-utils systemd
-
-if [[ ${PV} == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
- BDEPEND=""
-else
- SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${PN}-${PV}.tar.gz"
- RESTRICT="mirror"
- BDEPEND=""
- KEYWORDS="amd64 arm arm64 ~x86"
-fi
-
-DESCRIPTION="The NTP reference implementation, refactored"
-HOMEPAGE="https://www.ntpsec.org/"
-
-NTPSEC_REFCLOCK=(
- oncore trimble truetime gpsd jjy generic spectracom
- shm pps hpgps zyfer arbiter nmea neoclock modem
- local)
-
-IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
-
-LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
-SLOT="0"
-IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear tests" #ionice
-REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
-
-# net-misc/pps-tools oncore,pps
-CDEPEND="${PYTHON_DEPS}
- ${BDEPEND}
- sys-libs/libcap
- dev-python/psutil[${PYTHON_USEDEP}]
- libbsd? ( dev-libs/libbsd:0= )
- dev-libs/openssl:0=
- seccomp? ( sys-libs/libseccomp )
-"
-RDEPEND="${CDEPEND}
- ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
- !net-misc/ntp
- !net-misc/openntpd
- acct-group/ntp
- acct-user/ntp
-"
-DEPEND="${CDEPEND}
- app-text/asciidoc
- dev-libs/libxslt
- app-text/docbook-xsl-stylesheets
- sys-devel/bison
- rclock_oncore? ( net-misc/pps-tools )
- rclock_pps? ( net-misc/pps-tools )
-"
-
-WAF_BINARY="${S}/waf"
-
-src_prepare() {
- default
- # Remove autostripping of binaries
- sed -i -e '/Strip binaries/d' wscript
- eapply "${FILESDIR}/${P}"-make-sure-logrotate-config-has-missingok.patch
- if ! use libbsd ; then
- epatch "${FILESDIR}/${PN}-no-bsd.patch"
- fi
- python_copy_sources
-}
-
-src_configure() {
- is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
-
- local string_127=""
- local rclocks="";
- local CLOCKSTRING=""
-
- for refclock in ${NTPSEC_REFCLOCK[@]} ; do
- if use rclock_${refclock} ; then
- string_127+="$refclock,"
- fi
- done
- CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
-
- local myconf=(
- --nopyc
- --nopyo
- --refclock="${CLOCKSTRING}"
- --build-epoch="$(date +%s)"
- $(use doc && echo "--enable-doc")
- $(use early && echo "--enable-early-droproot")
- $(use gdb && echo "--enable-debug-gdb")
- $(use samba && echo "--enable-mssntp")
- $(use seccomp && echo "--enable-seccomp")
- $(use smear && echo "--enable-leap-smear")
- $(use tests && echo "--alltests")
- $(use debug && echo "--enable-debug")
- )
-
- python_configure() {
- waf-utils_src_configure "${myconf[@]}"
- }
- python_foreach_impl run_in_build_dir python_configure
-}
-
-src_compile() {
- unset MAKEOPTS
- python_compile() {
- waf-utils_src_compile
- }
- python_foreach_impl run_in_build_dir python_compile
-}
-
-src_install() {
- python_install() {
- waf-utils_src_install
- }
- python_foreach_impl run_in_build_dir python_install
- python_foreach_impl python_optimize
-
- # Install heat generating scripts
- use heat && dosbin "${S}"/contrib/ntpheat{,usb}
-
- # Install the openrc files
- newinitd "${FILESDIR}"/ntpd.rc-r2 ntp
- newconfd "${FILESDIR}"/ntpd.confd ntp
-
- # Install the systemd unit file
- systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
-
- # Prepare a directory for the ntp.drift file
- mkdir -pv "${ED}"/var/lib/ntp
- chown ntp:ntp "${ED}"/var/lib/ntp
- chmod 770 "${ED}"/var/lib/ntp
- keepdir /var/lib/ntp
-
- # Install a log rotate script
- mkdir -pv "${ED}"/etc/logrotate.d
- cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
-
- # Install the configuration file and sample configuration
- cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
- cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
-
- # move doc files to /usr/share/doc/"${P}"
- use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
-}
-
-pkg_postinst() {
- einfo "If you want to serve time on your local network, then"
- einfo "you should disable all the ref_clocks unless you have"
- einfo "one and can get stable time from it. Feel free to try"
- einfo "it but PPS probably won't work unless you have a UART"
- einfo "GPS that actually provides PPS messages."
-}
diff --git a/net-misc/ntpsec/ntpsec-1.1.8.ebuild b/net-misc/ntpsec/ntpsec-1.1.8.ebuild
deleted file mode 100644
index 9c6f4b05b299..000000000000
--- a/net-misc/ntpsec/ntpsec-1.1.8.ebuild
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_{6,7,8} )
-PYTHON_REQ_USE='threads(+)'
-
-inherit flag-o-matic python-r1 waf-utils systemd
-
-if [[ ${PV} == *9999* ]]; then
- inherit git-r3
- EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
- BDEPEND=""
-else
- SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${PN}-${PV}.tar.gz"
- RESTRICT="mirror"
- BDEPEND=""
- KEYWORDS="amd64 arm arm64 ~x86"
-fi
-
-DESCRIPTION="The NTP reference implementation, refactored"
-HOMEPAGE="https://www.ntpsec.org/"
-
-NTPSEC_REFCLOCK=(
- oncore trimble truetime gpsd jjy generic spectracom
- shm pps hpgps zyfer arbiter nmea neoclock modem
- local)
-
-IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
-
-LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
-SLOT="0"
-IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear tests" #ionice
-REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
-
-# net-misc/pps-tools oncore,pps
-CDEPEND="${PYTHON_DEPS}
- ${BDEPEND}
- sys-libs/libcap
- dev-python/psutil[${PYTHON_USEDEP}]
- libbsd? ( dev-libs/libbsd:0= )
- dev-libs/openssl:0=
- seccomp? ( sys-libs/libseccomp )
-"
-RDEPEND="${CDEPEND}
- ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
- !net-misc/ntp
- !net-misc/openntpd
- acct-group/ntp
- acct-user/ntp
-"
-DEPEND="${CDEPEND}
- app-text/asciidoc
- dev-libs/libxslt
- app-text/docbook-xsl-stylesheets
- sys-devel/bison
- rclock_oncore? ( net-misc/pps-tools )
- rclock_pps? ( net-misc/pps-tools )
-"
-
-WAF_BINARY="${S}/waf"
-
-PATCHES=( "${FILESDIR}/${P}-externalize-sys_maxclock-fix-for-bug-708522.patch"
- "${FILESDIR}/${P}-fix-missing-scmp_sys-on-aarch64.patch"
- "${FILESDIR}/${P}-fix-asciidoc-version-detect.patch")
-
-src_prepare() {
- default
- # Remove autostripping of binaries
- sed -i -e '/Strip binaries/d' wscript
- if ! use libbsd ; then
- epatch "${FILESDIR}/${PN}-no-bsd.patch"
- fi
- python_copy_sources
-}
-
-src_configure() {
- is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
-
- local string_127=""
- local rclocks="";
- local CLOCKSTRING=""
-
- for refclock in ${NTPSEC_REFCLOCK[@]} ; do
- if use rclock_${refclock} ; then
- string_127+="$refclock,"
- fi
- done
- CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
-
- local myconf=(
- --nopyc
- --nopyo
- --refclock="${CLOCKSTRING}"
- --build-epoch="$(date +%s)"
- $(use doc && echo "--enable-doc")
- $(use early && echo "--enable-early-droproot")
- $(use gdb && echo "--enable-debug-gdb")
- $(use samba && echo "--enable-mssntp")
- $(use seccomp && echo "--enable-seccomp")
- $(use smear && echo "--enable-leap-smear")
- $(use tests && echo "--alltests")
- $(use debug && echo "--enable-debug")
- )
-
- python_configure() {
- waf-utils_src_configure "${myconf[@]}"
- }
- python_foreach_impl run_in_build_dir python_configure
-}
-
-src_compile() {
- unset MAKEOPTS
- python_compile() {
- waf-utils_src_compile
- }
- python_foreach_impl run_in_build_dir python_compile
-}
-
-src_install() {
- python_install() {
- waf-utils_src_install
- }
- python_foreach_impl run_in_build_dir python_install
- python_foreach_impl python_optimize
-
- # Install heat generating scripts
- use heat && dosbin "${S}"/contrib/ntpheat{,usb}
-
- # Install the openrc files
- newinitd "${FILESDIR}"/ntpd.rc-r2 ntp
- newconfd "${FILESDIR}"/ntpd.confd ntp
-
- # Install the systemd unit file
- systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
-
- # Prepare a directory for the ntp.drift file
- mkdir -pv "${ED}"/var/lib/ntp
- chown ntp:ntp "${ED}"/var/lib/ntp
- chmod 770 "${ED}"/var/lib/ntp
- keepdir /var/lib/ntp
-
- # Install a log rotate script
- mkdir -pv "${ED}"/etc/logrotate.d
- cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
-
- # Install the configuration file and sample configuration
- cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
- cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
-
- # move doc files to /usr/share/doc/"${P}"
- if use doc; then
- mv -v "${ED}"/usr/share/doc/"${PN}" \
- "${ED}"/usr/share/doc/"${PF}"/html
- else
- rm -rf "${ED}"/usr/share/doc/"${PN}"
- fi
-}
-
-pkg_postinst() {
- einfo "If you want to serve time on your local network, then"
- einfo "you should disable all the ref_clocks unless you have"
- einfo "one and can get stable time from it. Feel free to try"
- einfo "it but PPS probably won't work unless you have a UART"
- einfo "GPS that actually provides PPS messages."
-}