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