1 |
pacho 13/11/19 20:00:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ntp-4.2.6_p5-r8.ebuild |
5 |
Log: |
6 |
Register ntp unit file (#489040 by Kirill Elagin) |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.199 net-misc/ntp/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.199&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.199&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?r1=1.198&r2=1.199 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v |
20 |
retrieving revision 1.198 |
21 |
retrieving revision 1.199 |
22 |
diff -u -r1.198 -r1.199 |
23 |
--- ChangeLog 9 Nov 2013 15:41:18 -0000 1.198 |
24 |
+++ ChangeLog 19 Nov 2013 20:00:56 -0000 1.199 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-misc/ntp |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.198 2013/11/09 15:41:18 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.199 2013/11/19 20:00:56 pacho Exp $ |
30 |
+ |
31 |
+*ntp-4.2.6_p5-r8 (19 Nov 2013) |
32 |
+ |
33 |
+ 19 Nov 2013; Pacho Ramos <pacho@g.o> +ntp-4.2.6_p5-r8.ebuild: |
34 |
+ Register ntp unit file (#489040 by Kirill Elagin) |
35 |
|
36 |
09 Nov 2013; Pacho Ramos <pacho@g.o> ntp-4.2.6_p5-r7.ebuild: |
37 |
x86 stable, bug #480084 |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-misc/ntp/ntp-4.2.6_p5-r8.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.6_p5-r8.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.6_p5-r8.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ntp-4.2.6_p5-r8.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 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.6_p5-r8.ebuild,v 1.1 2013/11/19 20:00:56 pacho Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
|
54 |
inherit 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 ~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 samba selinux snmp ssl vim-syntax zeroconf" |
66 |
|
67 |
DEPEND=">=sys-libs/ncurses-5.2 |
68 |
>=sys-libs/readline-4.1 |
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 |
selinux? ( sec-policy/selinux-ntp ) |
75 |
parse-clocks? ( net-misc/pps-tools )" |
76 |
RDEPEND="${DEPEND} |
77 |
vim-syntax? ( app-vim/ntp-syntax )" |
78 |
PDEPEND="openntpd? ( net-misc/openntpd )" |
79 |
|
80 |
S=${WORKDIR}/${MY_P} |
81 |
|
82 |
pkg_setup() { |
83 |
enewgroup ntp 123 |
84 |
enewuser ntp 123 -1 /dev/null ntp |
85 |
} |
86 |
|
87 |
src_prepare() { |
88 |
epatch "${FILESDIR}"/${PN}-4.2.4_p5-adjtimex.patch #254030 |
89 |
epatch "${FILESDIR}"/${PN}-4.2.4_p7-nano.patch #270483 |
90 |
append-cppflags -D_GNU_SOURCE #264109 |
91 |
} |
92 |
|
93 |
src_configure() { |
94 |
# avoid libmd5/libelf |
95 |
export ac_cv_search_MD5Init=no ac_cv_header_md5_h=no |
96 |
export ac_cv_lib_elf_nlist=no |
97 |
# blah, no real configure options #176333 |
98 |
export ac_cv_header_dns_sd_h=$(usex zeroconf) |
99 |
export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h} |
100 |
econf \ |
101 |
--with-lineeditlibs=readline,edit,editline \ |
102 |
$(use_enable caps linuxcaps) \ |
103 |
$(use_enable parse-clocks) \ |
104 |
$(use_enable ipv6) \ |
105 |
$(use_enable debug debugging) \ |
106 |
$(use_enable samba ntp-signd) \ |
107 |
$(use_with snmp ntpsnmpd) \ |
108 |
$(use_with ssl crypto) |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
default |
113 |
# move ntpd/ntpdate to sbin #66671 |
114 |
dodir /usr/sbin |
115 |
mv "${ED}"/usr/bin/{ntpd,ntpdate} "${ED}"/usr/sbin/ || die "move to sbin" |
116 |
|
117 |
dodoc INSTALL WHERE-TO-START |
118 |
doman "${WORKDIR}"/man/*.[58] |
119 |
dohtml -r html/* |
120 |
|
121 |
insinto /usr/share/ntp |
122 |
doins "${FILESDIR}"/ntp.conf |
123 |
cp -r scripts/* "${ED}"/usr/share/ntp/ || die |
124 |
use prefix || fperms -R go-w /usr/share/ntp |
125 |
find "${ED}"/usr/share/ntp \ |
126 |
'(' \ |
127 |
-name '*.in' -o \ |
128 |
-name 'Makefile*' -o \ |
129 |
-name support \ |
130 |
')' \ |
131 |
-exec rm -r {} \; |
132 |
|
133 |
insinto /etc |
134 |
doins "${FILESDIR}"/ntp.conf |
135 |
newinitd "${FILESDIR}"/ntpd.rc ntpd |
136 |
newconfd "${FILESDIR}"/ntpd.confd ntpd |
137 |
newinitd "${FILESDIR}"/ntp-client.rc ntp-client |
138 |
newconfd "${FILESDIR}"/ntp-client.confd ntp-client |
139 |
newinitd "${FILESDIR}"/sntp.rc sntp |
140 |
newconfd "${FILESDIR}"/sntp.confd sntp |
141 |
if ! use caps ; then |
142 |
sed -i "s|-u ntp:ntp||" "${ED}"/etc/conf.d/ntpd || die |
143 |
fi |
144 |
sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die |
145 |
|
146 |
keepdir /var/lib/ntp |
147 |
use prefix || fowners ntp:ntp /var/lib/ntp |
148 |
|
149 |
if use openntpd ; then |
150 |
cd "${ED}" |
151 |
rm usr/sbin/ntpd || die |
152 |
rm -r var/lib |
153 |
rm etc/{conf,init}.d/ntpd |
154 |
rm usr/share/man/*/ntpd.8 || die |
155 |
else |
156 |
systemd_newunit "${FILESDIR}"/ntpd.service-r1 ntpd.service |
157 |
systemd_enable_ntpunit 60-ntpd ntpd.service |
158 |
fi |
159 |
|
160 |
systemd_dounit "${FILESDIR}"/ntpdate.service |
161 |
systemd_install_serviced "${FILESDIR}"/ntpdate.service.conf |
162 |
systemd_dounit "${FILESDIR}"/sntp.service |
163 |
systemd_install_serviced "${FILESDIR}"/sntp.service.conf |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/" |
168 |
ewarn "Review /etc/ntp.conf to setup server info." |
169 |
ewarn "Review /etc/conf.d/ntpd to setup init.d info." |
170 |
echo |
171 |
elog "The way ntp sets and maintains your system time has changed." |
172 |
elog "Now you can use /etc/init.d/ntp-client to set your time at" |
173 |
elog "boot while you can use /etc/init.d/ntpd to maintain your time" |
174 |
elog "while your machine runs" |
175 |
if grep -qs '^[^#].*notrust' "${EROOT}"/etc/ntp.conf ; then |
176 |
echo |
177 |
eerror "The notrust option was found in your /etc/ntp.conf!" |
178 |
ewarn "If your ntpd starts sending out weird responses," |
179 |
ewarn "then make sure you have keys properly setup and see" |
180 |
ewarn "http://bugs.gentoo.org/41827" |
181 |
fi |
182 |
} |