Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/ntp: ntp-4.2.8_p3.ebuild ChangeLog
Date: Mon, 06 Jul 2015 15:54:00
Message-Id: 20150706155351.737DF753@oystercatcher.gentoo.org
1 vapier 15/07/06 15:53:51
2
3 Modified: ChangeLog
4 Added: ntp-4.2.8_p3.ebuild
5 Log:
6 Version bump #553682 by stanley.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.238 net-misc/ntp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.238&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.238&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?r1=1.237&r2=1.238
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v
20 retrieving revision 1.237
21 retrieving revision 1.238
22 diff -u -r1.237 -r1.238
23 --- ChangeLog 30 Apr 2015 09:09:30 -0000 1.237
24 +++ ChangeLog 6 Jul 2015 15:53:51 -0000 1.238
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/ntp
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.237 2015/04/30 09:09:30 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.238 2015/07/06 15:53:51 vapier Exp $
30 +
31 +*ntp-4.2.8_p3 (06 Jul 2015)
32 +
33 + 06 Jul 2015; Mike Frysinger <vapier@g.o> +ntp-4.2.8_p3.ebuild:
34 + Version bump #553682 by stanley.
35
36 30 Apr 2015; Mike Frysinger <vapier@g.o> metadata.xml:
37 Add CPE info via Chromium OS.
38
39
40
41 1.1 net-misc/ntp/ntp-4.2.8_p3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.8_p3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.8_p3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ntp-4.2.8_p3.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ntp-4.2.8_p3.ebuild,v 1.1 2015/07/06 15:53:51 vapier Exp $
51
52 EAPI="4"
53
54 inherit autotools eutils toolchain-funcs flag-o-matic user systemd
55
56 MY_P=${P/_p/p}
57 DESCRIPTION="Network Time Protocol suite/programs"
58 HOMEPAGE="http://www.ntp.org/"
59 SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz
60 mirror://gentoo/${MY_P}-manpages.tar.bz2"
61
62 LICENSE="HPND BSD ISC"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~m68k-mint"
65 IUSE="caps debug ipv6 openntpd parse-clocks readline samba selinux snmp ssl +threads vim-syntax zeroconf"
66
67 CDEPEND="readline? ( >=sys-libs/readline-4.1 )
68 >=dev-libs/libevent-2.0.9[threads?]
69 kernel_linux? ( caps? ( sys-libs/libcap ) )
70 zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
71 !openntpd? ( !net-misc/openntpd )
72 snmp? ( net-analyzer/net-snmp )
73 ssl? ( dev-libs/openssl )
74 parse-clocks? ( net-misc/pps-tools )"
75 DEPEND="${CDEPEND}
76 virtual/pkgconfig"
77 RDEPEND="${CDEPEND}
78 selinux? ( sec-policy/selinux-ntp )
79 vim-syntax? ( app-vim/ntp-syntax )"
80 PDEPEND="openntpd? ( net-misc/openntpd )"
81
82 S=${WORKDIR}/${MY_P}
83
84 pkg_setup() {
85 enewgroup ntp 123
86 enewuser ntp 123 -1 /dev/null ntp
87 }
88
89 src_prepare() {
90 epatch "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966
91 append-cppflags -D_GNU_SOURCE #264109
92 # Make sure every build uses the same install layout. #539092
93 find sntp/loc/ -type f '!' -name legacy -delete || die
94 # Disable pointless checks.
95 touch .checkChangeLog .gcc-warning FRC.html html/.datecheck
96 }
97
98 src_configure() {
99 # avoid libmd5/libelf
100 export ac_cv_search_MD5Init=no ac_cv_header_md5_h=no
101 export ac_cv_lib_elf_nlist=no
102 # blah, no real configure options #176333
103 export ac_cv_header_dns_sd_h=$(usex zeroconf)
104 export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h}
105 # Increase the default memlimit from 32MiB to 128MiB. #533232
106 econf \
107 --with-lineeditlibs=readline,edit,editline \
108 --with-yielding-select \
109 --disable-local-libevent \
110 --docdir='$(datarootdir)'/doc/${PF} \
111 --htmldir='$(docdir)/html' \
112 --with-memlock=256 \
113 $(use_enable caps linuxcaps) \
114 $(use_enable parse-clocks) \
115 $(use_enable ipv6) \
116 $(use_enable debug debugging) \
117 $(use_with readline lineeditlibs readline) \
118 $(use_enable samba ntp-signd) \
119 $(use_with snmp ntpsnmpd) \
120 $(use_with ssl crypto) \
121 $(use_enable threads thread-support)
122 }
123
124 src_install() {
125 default
126 # move ntpd/ntpdate to sbin #66671
127 dodir /usr/sbin
128 mv "${ED}"/usr/bin/{ntpd,ntpdate} "${ED}"/usr/sbin/ || die "move to sbin"
129
130 dodoc INSTALL WHERE-TO-START
131 doman "${WORKDIR}"/man/*.[58]
132
133 insinto /etc
134 doins "${FILESDIR}"/ntp.conf
135 use ipv6 || sed -i '/^restrict .*::1/d' "${ED}"/etc/ntp.conf #524726
136 newinitd "${FILESDIR}"/ntpd.rc-r1 ntpd
137 newconfd "${FILESDIR}"/ntpd.confd ntpd
138 newinitd "${FILESDIR}"/ntp-client.rc ntp-client
139 newconfd "${FILESDIR}"/ntp-client.confd ntp-client
140 newinitd "${FILESDIR}"/sntp.rc sntp
141 newconfd "${FILESDIR}"/sntp.confd sntp
142 if ! use caps ; then
143 sed -i "s|-u ntp:ntp||" "${ED}"/etc/conf.d/ntpd || die
144 fi
145 sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die
146
147 keepdir /var/lib/ntp
148 use prefix || fowners ntp:ntp /var/lib/ntp
149
150 if use openntpd ; then
151 cd "${ED}"
152 rm usr/sbin/ntpd || die
153 rm -r var/lib
154 rm etc/{conf,init}.d/ntpd
155 rm usr/share/man/*/ntpd.8 || die
156 else
157 systemd_newunit "${FILESDIR}"/ntpd.service-r2 ntpd.service
158 use caps && sed -i '/ExecStart/ s|$| -u ntp:ntp|' "${ED}"/usr/lib/systemd/system/ntpd.service
159 systemd_enable_ntpunit 60-ntpd ntpd.service
160 fi
161
162 systemd_newunit "${FILESDIR}"/ntpdate.service-r1 ntpdate.service
163 systemd_install_serviced "${FILESDIR}"/ntpdate.service.conf
164 systemd_newunit "${FILESDIR}"/sntp.service-r2 sntp.service
165 systemd_install_serviced "${FILESDIR}"/sntp.service.conf
166 }
167
168 pkg_postinst() {
169 if grep -qs '^[^#].*notrust' "${EROOT}"/etc/ntp.conf ; then
170 eerror "The notrust option was found in your /etc/ntp.conf!"
171 ewarn "If your ntpd starts sending out weird responses,"
172 ewarn "then make sure you have keys properly setup and see"
173 ewarn "http://bugs.gentoo.org/41827"
174 fi
175 }