1 |
commit: 2847a57014f082b8f55bdf226f2bd55d1ad48534 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 16 04:20:46 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 16 04:35:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2847a570 |
7 |
|
8 |
net-misc/chrony: drop 4.0 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-misc/chrony/chrony-4.0.ebuild | 182 -------------------------------------- |
13 |
1 file changed, 182 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/chrony/chrony-4.0.ebuild b/net-misc/chrony/chrony-4.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index abe3a7cf46a..00000000000 |
18 |
--- a/net-misc/chrony/chrony-4.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,182 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-inherit systemd tmpfiles toolchain-funcs |
27 |
- |
28 |
-DESCRIPTION="NTP client and server programs" |
29 |
-HOMEPAGE="https://chrony.tuxfamily.org/ https://git.tuxfamily.org/chrony/chrony.git" |
30 |
- |
31 |
-if [[ ${PV} == "9999" ]]; then |
32 |
- inherit git-r3 |
33 |
- EGIT_REPO_URI="https://git.tuxfamily.org/chrony/chrony.git" |
34 |
-else |
35 |
- SRC_URI="https://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz" |
36 |
- KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86" |
37 |
-fi |
38 |
- |
39 |
-S="${WORKDIR}/${P/_/-}" |
40 |
- |
41 |
-LICENSE="GPL-2" |
42 |
-SLOT="0" |
43 |
-IUSE="+caps +cmdmon html ipv6 libedit +nettle +ntp +phc pps +refclock +rtc samba +seccomp +sechash selinux" |
44 |
-REQUIRED_USE="sechash? ( nettle )" |
45 |
-RESTRICT="test" |
46 |
- |
47 |
-BDEPEND="nettle? ( virtual/pkgconfig )" |
48 |
- |
49 |
-if [[ ${PV} == "9999" ]]; then |
50 |
- # Needed for doc generation in 9999 |
51 |
- BDEPEND+=" virtual/w3m" |
52 |
- REQUIRED_USE+=" html" |
53 |
-fi |
54 |
- |
55 |
-DEPEND=" |
56 |
- caps? ( |
57 |
- acct-group/ntp |
58 |
- acct-user/ntp |
59 |
- sys-libs/libcap |
60 |
- ) |
61 |
- libedit? ( dev-libs/libedit ) |
62 |
- nettle? ( dev-libs/nettle:= ) |
63 |
- seccomp? ( sys-libs/libseccomp ) |
64 |
- html? ( dev-ruby/asciidoctor ) |
65 |
- pps? ( net-misc/pps-tools ) |
66 |
-" |
67 |
-RDEPEND=" |
68 |
- ${DEPEND} |
69 |
- selinux? ( sec-policy/selinux-chronyd ) |
70 |
-" |
71 |
- |
72 |
-PATCHES=( |
73 |
- "${FILESDIR}"/${PN}-3.5-pool-vendor-gentoo.patch |
74 |
- "${FILESDIR}"/${PN}-3.5-r3-systemd-gentoo.patch |
75 |
-) |
76 |
- |
77 |
-src_prepare() { |
78 |
- default |
79 |
- |
80 |
- sed -i \ |
81 |
- -e 's:/etc/chrony\.conf:/etc/chrony/chrony.conf:g' \ |
82 |
- doc/* examples/* || die |
83 |
- |
84 |
- sed -i \ |
85 |
- -e 's|RELOADDNS||g' \ |
86 |
- -e 's|pkg-config|${PKG_CONFIG}|g' \ |
87 |
- configure || die |
88 |
- |
89 |
- cp "${FILESDIR}"/chronyd.conf "${T}"/chronyd.conf || die |
90 |
-} |
91 |
- |
92 |
-src_configure() { |
93 |
- if ! use caps; then |
94 |
- sed -i \ |
95 |
- -e 's/ -u ntp//' \ |
96 |
- "${T}"/chronyd.conf examples/chronyd.service || die |
97 |
- fi |
98 |
- |
99 |
- if ! use seccomp; then |
100 |
- sed -i \ |
101 |
- -e 's/ -F 0//' \ |
102 |
- "${T}"/chronyd.conf examples/chronyd.service || die |
103 |
- fi |
104 |
- |
105 |
- tc-export CC PKG_CONFIG |
106 |
- |
107 |
- # Note: ncurses and nss switches are mentioned in the configure script but |
108 |
- # do nothing |
109 |
- # not an autotools generated script |
110 |
- local myconf=( |
111 |
- $(use_enable seccomp scfilter) |
112 |
- $(usex caps '' --disable-linuxcaps) |
113 |
- $(usex cmdmon '' --disable-cmdmon) |
114 |
- $(usex ipv6 '' --disable-ipv6) |
115 |
- $(usex libedit '' --without-editline) |
116 |
- $(usex nettle '' --without-nettle) |
117 |
- $(usex ntp '' --disable-ntp) |
118 |
- $(usex phc '' --disable-phc) |
119 |
- $(usex pps '' --disable-pps) |
120 |
- $(usex refclock '' --disable-refclock) |
121 |
- $(usex rtc '' --disable-rtc) |
122 |
- $(usex samba --enable-ntp-signd '') |
123 |
- $(usex sechash '' --disable-sechash) |
124 |
- ${EXTRA_ECONF} |
125 |
- --chronysockdir="${EPREFIX}/run/chrony" |
126 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
127 |
- --mandir="${EPREFIX}/usr/share/man" |
128 |
- --prefix="${EPREFIX}/usr" |
129 |
- --sysconfdir="${EPREFIX}/etc/chrony" |
130 |
- --with-hwclockfile="${EPREFIX}/etc/adjtime" |
131 |
- --with-pidfile="${EPREFIX}/run/chrony/chronyd.pid" |
132 |
- --without-nss |
133 |
- --without-tomcrypt |
134 |
- ) |
135 |
- |
136 |
- # print the ./configure call |
137 |
- echo sh ./configure "${myconf[@]}" >&2 |
138 |
- sh ./configure "${myconf[@]}" || die |
139 |
-} |
140 |
- |
141 |
-src_compile() { |
142 |
- if [[ ${PV} == "9999" ]]; then |
143 |
- # uses w3m |
144 |
- emake -C doc man txt |
145 |
- fi |
146 |
- |
147 |
- emake all docs $(usex html '' 'ADOC=true') |
148 |
-} |
149 |
- |
150 |
-src_install() { |
151 |
- default |
152 |
- |
153 |
- newinitd "${FILESDIR}"/chronyd.init-r2 chronyd |
154 |
- newconfd "${T}"/chronyd.conf chronyd |
155 |
- |
156 |
- insinto /etc/${PN} |
157 |
- newins examples/chrony.conf.example1 chrony.conf |
158 |
- |
159 |
- docinto examples |
160 |
- dodoc examples/*.example* |
161 |
- |
162 |
- newtmpfiles - chronyd.conf <<<"d /run/chrony 0750 $(usex caps 'ntp ntp' 'root root')" |
163 |
- |
164 |
- if use html; then |
165 |
- docinto html |
166 |
- dodoc doc/*.html |
167 |
- fi |
168 |
- |
169 |
- keepdir /var/{lib,log}/chrony |
170 |
- |
171 |
- if use caps; then |
172 |
- # Prepare a directory for the chrony.drift file (a la ntpsec) |
173 |
- # Ensures the environment is sane on new installs |
174 |
- fowners ntp:ntp /var/{lib,log}/chrony |
175 |
- fperms 770 /var/lib/chrony |
176 |
- fi |
177 |
- |
178 |
- insinto /etc/logrotate.d |
179 |
- newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony |
180 |
- |
181 |
- systemd_dounit examples/chronyd.service |
182 |
- systemd_dounit examples/chrony-wait.service |
183 |
- systemd_enable_ntpunit 50-chrony chronyd.service |
184 |
-} |
185 |
- |
186 |
-pkg_preinst() { |
187 |
- HAD_CAPS=false |
188 |
- |
189 |
- if has_version 'net-misc/chrony[caps]'; then |
190 |
- HAD_CAPS=true |
191 |
- fi |
192 |
-} |
193 |
- |
194 |
-pkg_postinst() { |
195 |
- tmpfiles_process chronyd.conf |
196 |
- |
197 |
- if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then |
198 |
- ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp" |
199 |
- ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony" |
200 |
- ewarn "This is necessary for chrony to drop privileges" |
201 |
- fi |
202 |
-} |