Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ntpsec/
Date: Thu, 10 Jun 2021 21:11:20
Message-Id: 1623359467.93c801b9f85e64aab83354f3283b5bd89229a044.sam@gentoo
1 commit: 93c801b9f85e64aab83354f3283b5bd89229a044
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 10 21:11:07 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 10 21:11:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93c801b9
7
8 net-misc/ntpsec: drop 1.1.9
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/ntpsec/Manifest | 1 -
13 net-misc/ntpsec/ntpsec-1.1.9.ebuild | 160 ------------------------------------
14 2 files changed, 161 deletions(-)
15
16 diff --git a/net-misc/ntpsec/Manifest b/net-misc/ntpsec/Manifest
17 index 7de62087eed..4f7af2898d2 100644
18 --- a/net-misc/ntpsec/Manifest
19 +++ b/net-misc/ntpsec/Manifest
20 @@ -1,2 +1 @@
21 -DIST ntpsec-1.1.9.tar.gz 2606066 BLAKE2B bbc482333c7f86936fa20751df1b427bc24be159969050caf5751e26724714bbf6491b120986563497f015c96ac9cdbdf0e999c6446a68798aff23076f631ecc SHA512 e04267aa675a5b528f3478d00329a569ecb9bbe2b6ad18697020854d2ee451bc188c4603cd5f420a08a7e3bf047d2db1301416f57f9156df23aceb1f57303b0b
22 DIST ntpsec-1.2.0.tar.gz 2625968 BLAKE2B 23ceae5a1f241fcf5a17801fec2f15f9b9d9d64a108bebe29bdc75196303091eaf0efee7df67ce10acefb7c8dba90ce1144a0c0c5432797d7659714d162f26bb SHA512 9e18b3ca2f786a1ea323ba2384b51cff3d862115cea1ae576fc98172c476ac5e7d0d0fc873e47be0b19b050204ea9ed49669d94e66eb94525068dd1b08a8ae71
23
24 diff --git a/net-misc/ntpsec/ntpsec-1.1.9.ebuild b/net-misc/ntpsec/ntpsec-1.1.9.ebuild
25 deleted file mode 100644
26 index f92de0e4f1d..00000000000
27 --- a/net-misc/ntpsec/ntpsec-1.1.9.ebuild
28 +++ /dev/null
29 @@ -1,160 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=6
34 -
35 -PYTHON_COMPAT=( python3_{7,8,9} )
36 -PYTHON_REQ_USE='threads(+)'
37 -
38 -inherit flag-o-matic python-r1 waf-utils systemd
39 -
40 -if [[ ${PV} == *9999* ]]; then
41 - inherit git-r3
42 - EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
43 -else
44 - SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${PN}-${PV}.tar.gz"
45 - RESTRICT="mirror"
46 - KEYWORDS="amd64 arm arm64 ~x86"
47 -fi
48 -
49 -DESCRIPTION="The NTP reference implementation, refactored"
50 -HOMEPAGE="https://www.ntpsec.org/"
51 -
52 -NTPSEC_REFCLOCK=(
53 - oncore trimble truetime gpsd jjy generic spectracom
54 - shm pps hpgps zyfer arbiter nmea neoclock modem
55 - local)
56 -
57 -IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
58 -
59 -LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
60 -SLOT="0"
61 -IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear tests" #ionice
62 -REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
63 -
64 -# net-misc/pps-tools oncore,pps
65 -CDEPEND="${PYTHON_DEPS}
66 - sys-libs/libcap
67 - dev-python/psutil[${PYTHON_USEDEP}]
68 - libbsd? ( dev-libs/libbsd:0= )
69 - dev-libs/openssl:0=
70 - seccomp? ( sys-libs/libseccomp )
71 -"
72 -RDEPEND="${CDEPEND}
73 - ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
74 - !net-misc/ntp
75 - !net-misc/openntpd
76 - acct-group/ntp
77 - acct-user/ntp
78 -"
79 -DEPEND="${CDEPEND}
80 - >=app-text/asciidoc-8.6.8
81 - dev-libs/libxslt
82 - app-text/docbook-xsl-stylesheets
83 - sys-devel/bison
84 - rclock_oncore? ( net-misc/pps-tools )
85 - rclock_pps? ( net-misc/pps-tools )
86 -"
87 -
88 -PATCHES=(
89 - "${FILESDIR}/${PN}-1.1.8-fix-missing-scmp_sys-on-aarch64.patch"
90 - "${FILESDIR}/${P}-remove-asciidoctor-from-config.patch"
91 -)
92 -
93 -WAF_BINARY="${S}/waf"
94 -
95 -src_prepare() {
96 - default
97 - # Remove autostripping of binaries
98 - sed -i -e '/Strip binaries/d' wscript || die
99 - if ! use libbsd ; then
100 - eapply "${FILESDIR}/${PN}-no-bsd.patch"
101 - fi
102 - python_copy_sources
103 -}
104 -
105 -src_configure() {
106 - is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
107 -
108 - local string_127=""
109 - local rclocks="";
110 - local CLOCKSTRING=""
111 -
112 - for refclock in ${NTPSEC_REFCLOCK[@]} ; do
113 - if use rclock_${refclock} ; then
114 - string_127+="$refclock,"
115 - fi
116 - done
117 - CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
118 -
119 - local myconf=(
120 - --nopyc
121 - --nopyo
122 - --refclock="${CLOCKSTRING}"
123 - --build-epoch="$(date +%s)"
124 - $(use doc || echo "--disable-doc")
125 - $(use early && echo "--enable-early-droproot")
126 - $(use gdb && echo "--enable-debug-gdb")
127 - $(use samba && echo "--enable-mssntp")
128 - $(use seccomp && echo "--enable-seccomp")
129 - $(use smear && echo "--enable-leap-smear")
130 - $(use tests && echo "--alltests")
131 - $(use debug && echo "--enable-debug")
132 - )
133 -
134 - python_configure() {
135 - waf-utils_src_configure "${myconf[@]}"
136 - }
137 - python_foreach_impl run_in_build_dir python_configure
138 -}
139 -
140 -src_compile() {
141 - unset MAKEOPTS
142 - python_compile() {
143 - waf-utils_src_compile
144 - }
145 - python_foreach_impl run_in_build_dir python_compile
146 -}
147 -
148 -src_install() {
149 - python_install() {
150 - waf-utils_src_install
151 - }
152 - python_foreach_impl run_in_build_dir python_install
153 - python_foreach_impl python_optimize
154 -
155 - # Install heat generating scripts
156 - use heat && dosbin "${S}"/contrib/ntpheat{,usb}
157 -
158 - # Install the openrc files
159 - newinitd "${FILESDIR}"/ntpd.rc-r2 ntp
160 - newconfd "${FILESDIR}"/ntpd.confd ntp
161 -
162 - # Install the systemd unit file
163 - systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
164 -
165 - # Prepare a directory for the ntp.drift file
166 - mkdir -pv "${ED}"/var/lib/ntp
167 - chown ntp:ntp "${ED}"/var/lib/ntp
168 - chmod 770 "${ED}"/var/lib/ntp
169 - keepdir /var/lib/ntp
170 -
171 - # Install a log rotate script
172 - mkdir -pv "${ED}"/etc/logrotate.d
173 - cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
174 -
175 - # Install the configuration file and sample configuration
176 - cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
177 - cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
178 -
179 - # move doc files to /usr/share/doc/"${P}"
180 - use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
181 -}
182 -
183 -pkg_postinst() {
184 - einfo "If you want to serve time on your local network, then"
185 - einfo "you should disable all the ref_clocks unless you have"
186 - einfo "one and can get stable time from it. Feel free to try"
187 - einfo "it but PPS probably won't work unless you have a UART"
188 - einfo "GPS that actually provides PPS messages."
189 -}