1 |
commit: 56ce7d87f95b759f568968665537963c041a3f5a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 4 10:23:46 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 4 10:54:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56ce7d87 |
7 |
|
8 |
net-misc/ntp: Removed old |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
net-misc/ntp/ntp-4.2.8_p13-r1.ebuild | 144 ----------------------------------- |
14 |
1 file changed, 144 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/ntp/ntp-4.2.8_p13-r1.ebuild b/net-misc/ntp/ntp-4.2.8_p13-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index d3cc13c5046..00000000000 |
19 |
--- a/net-misc/ntp/ntp-4.2.8_p13-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,144 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-inherit autotools toolchain-funcs flag-o-matic user systemd |
28 |
- |
29 |
-MY_P=${P/_p/p} |
30 |
-DESCRIPTION="Network Time Protocol suite/programs" |
31 |
-HOMEPAGE="http://www.ntp.org/" |
32 |
-SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz |
33 |
- https://dev.gentoo.org/~polynomial-c/${MY_P}-manpages.tar.xz" |
34 |
- |
35 |
-LICENSE="HPND BSD ISC" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint" |
38 |
-IUSE="caps debug ipv6 libressl openntpd parse-clocks readline samba selinux snmp ssl +threads vim-syntax zeroconf" |
39 |
- |
40 |
-CDEPEND="readline? ( >=sys-libs/readline-4.1:0= ) |
41 |
- >=dev-libs/libevent-2.0.9:=[threads?] |
42 |
- kernel_linux? ( caps? ( sys-libs/libcap ) ) |
43 |
- zeroconf? ( net-dns/avahi[mdnsresponder-compat] ) |
44 |
- snmp? ( net-analyzer/net-snmp ) |
45 |
- ssl? ( |
46 |
- !libressl? ( dev-libs/openssl:0= ) |
47 |
- libressl? ( dev-libs/libressl:0= ) |
48 |
- ) |
49 |
- parse-clocks? ( net-misc/pps-tools )" |
50 |
-DEPEND="${CDEPEND} |
51 |
- virtual/pkgconfig" |
52 |
-RDEPEND="${CDEPEND} |
53 |
- selinux? ( sec-policy/selinux-ntp ) |
54 |
- vim-syntax? ( app-vim/ntp-syntax ) |
55 |
- !net-misc/ntpsec |
56 |
- !openntpd? ( !net-misc/openntpd ) |
57 |
-" |
58 |
-PDEPEND="openntpd? ( net-misc/openntpd )" |
59 |
- |
60 |
-S="${WORKDIR}/${MY_P}" |
61 |
- |
62 |
-PATCHES=( |
63 |
- "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966 |
64 |
- "${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922 |
65 |
- "${FILESDIR}"/${PN}-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch |
66 |
- "${FILESDIR}"/${PN}-4.2.8_p12-libressl-2.8.patch |
67 |
-) |
68 |
- |
69 |
-pkg_setup() { |
70 |
- enewgroup ntp 123 |
71 |
- enewuser ntp 123 -1 /dev/null ntp |
72 |
-} |
73 |
- |
74 |
-src_prepare() { |
75 |
- default |
76 |
- append-cppflags -D_GNU_SOURCE #264109 |
77 |
- # Make sure every build uses the same install layout. #539092 |
78 |
- find sntp/loc/ -type f '!' -name legacy -delete || die |
79 |
- eautoreconf #622754 |
80 |
- # Disable pointless checks. |
81 |
- touch .checkChangeLog .gcc-warning FRC.html html/.datecheck |
82 |
-} |
83 |
- |
84 |
-src_configure() { |
85 |
- # avoid libmd5/libelf |
86 |
- export ac_cv_search_MD5Init=no ac_cv_header_md5_h=no |
87 |
- export ac_cv_lib_elf_nlist=no |
88 |
- # blah, no real configure options #176333 |
89 |
- export ac_cv_header_dns_sd_h=$(usex zeroconf) |
90 |
- export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h} |
91 |
- # Increase the default memlimit from 32MiB to 128MiB. #533232 |
92 |
- local myeconfargs=( |
93 |
- --with-lineeditlibs=readline,edit,editline |
94 |
- --with-yielding-select |
95 |
- --disable-local-libevent |
96 |
- --with-memlock=256 |
97 |
- $(use_enable caps linuxcaps) |
98 |
- $(use_enable parse-clocks) |
99 |
- $(use_enable ipv6) |
100 |
- $(use_enable debug debugging) |
101 |
- $(use_with readline lineeditlibs readline) |
102 |
- $(use_enable samba ntp-signd) |
103 |
- $(use_with snmp ntpsnmpd) |
104 |
- $(use_with ssl crypto) |
105 |
- $(use_enable threads thread-support) |
106 |
- ) |
107 |
- econf "${myeconfargs[@]}" |
108 |
-} |
109 |
- |
110 |
-src_install() { |
111 |
- default |
112 |
- # move ntpd/ntpdate to sbin #66671 |
113 |
- dodir /usr/sbin |
114 |
- mv "${ED%/}"/usr/bin/{ntpd,ntpdate} "${ED%/}"/usr/sbin/ || die "move to sbin" |
115 |
- |
116 |
- dodoc INSTALL WHERE-TO-START |
117 |
- doman "${WORKDIR}"/man/*.[58] |
118 |
- |
119 |
- insinto /etc |
120 |
- doins "${FILESDIR}"/ntp.conf |
121 |
- use ipv6 || sed -i '/^restrict .*::1/d' "${ED%/}"/etc/ntp.conf #524726 |
122 |
- newinitd "${FILESDIR}"/ntpd.rc-r1 ntpd |
123 |
- newconfd "${FILESDIR}"/ntpd.confd ntpd |
124 |
- newinitd "${FILESDIR}"/ntp-client.rc ntp-client |
125 |
- newconfd "${FILESDIR}"/ntp-client.confd ntp-client |
126 |
- newinitd "${FILESDIR}"/sntp.rc sntp |
127 |
- newconfd "${FILESDIR}"/sntp.confd sntp |
128 |
- if ! use caps ; then |
129 |
- sed -i "s|-u ntp:ntp||" "${ED%/}"/etc/conf.d/ntpd || die |
130 |
- fi |
131 |
- sed -i "s:/usr/bin:/usr/sbin:" "${ED%/}"/etc/init.d/ntpd || die |
132 |
- |
133 |
- keepdir /var/lib/ntp |
134 |
- use prefix || fowners ntp:ntp /var/lib/ntp |
135 |
- |
136 |
- if use openntpd ; then |
137 |
- cd "${ED}" || die |
138 |
- rm usr/sbin/ntpd || die |
139 |
- rm -r var/lib || die |
140 |
- rm etc/{conf,init}.d/ntpd || die |
141 |
- rm usr/share/man/*/ntpd.8 || die |
142 |
- else |
143 |
- systemd_newunit "${FILESDIR}"/ntpd.service-r2 ntpd.service |
144 |
- if use caps ; then |
145 |
- sed -i '/ExecStart/ s|$| -u ntp:ntp|' \ |
146 |
- "${D%/}$(systemd_get_systemunitdir)"/ntpd.service \ |
147 |
- || die |
148 |
- fi |
149 |
- systemd_enable_ntpunit 60-ntpd ntpd.service |
150 |
- fi |
151 |
- |
152 |
- systemd_newunit "${FILESDIR}"/ntpdate.service-r2 ntpdate.service |
153 |
- systemd_install_serviced "${FILESDIR}"/ntpdate.service.conf |
154 |
- systemd_newunit "${FILESDIR}"/sntp.service-r3 sntp.service |
155 |
- systemd_install_serviced "${FILESDIR}"/sntp.service.conf |
156 |
-} |
157 |
- |
158 |
-pkg_postinst() { |
159 |
- if grep -qs '^[^#].*notrust' "${EROOT}"/etc/ntp.conf ; then |
160 |
- eerror "The notrust option was found in your /etc/ntp.conf!" |
161 |
- ewarn "If your ntpd starts sending out weird responses," |
162 |
- ewarn "then make sure you have keys properly setup and see" |
163 |
- ewarn "https://bugs.gentoo.org/41827" |
164 |
- fi |
165 |
-} |