1 |
ottxor 12/11/27 05:07:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ntp-4.2.6_p5-r2.ebuild |
5 |
Log: |
6 |
added prefix support (bug #444732) |
7 |
|
8 |
(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key C2000586) |
9 |
|
10 |
Revision Changes Path |
11 |
1.187 net-misc/ntp/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.187&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.187&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?r1=1.186&r2=1.187 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v |
20 |
retrieving revision 1.186 |
21 |
retrieving revision 1.187 |
22 |
diff -u -r1.186 -r1.187 |
23 |
--- ChangeLog 11 Nov 2012 05:58:25 -0000 1.186 |
24 |
+++ ChangeLog 27 Nov 2012 05:07:12 -0000 1.187 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-misc/ntp |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.186 2012/11/11 05:58:25 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.187 2012/11/27 05:07:12 ottxor Exp $ |
30 |
+ |
31 |
+*ntp-4.2.6_p5-r2 (27 Nov 2012) |
32 |
+ |
33 |
+ 27 Nov 2012; Christoph Junghans <ottxor@g.o> +ntp-4.2.6_p5-r2.ebuild: |
34 |
+ added prefix support (bug #444732) |
35 |
|
36 |
11 Nov 2012; Mike Frysinger <vapier@g.o> files/ntp-client.rc: |
37 |
Change "need net" to "after net" #439564#5 by Diego Elio Pettenò. |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-misc/ntp/ntp-4.2.6_p5-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.6_p5-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.6_p5-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ntp-4.2.6_p5-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 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-r2.ebuild,v 1.1 2012/11/27 05:07:12 ottxor Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
|
54 |
inherit eutils toolchain-funcs flag-o-matic user |
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 |
if ! use caps ; then |
140 |
sed -i "s|-u ntp:ntp||" "${ED}"/etc/conf.d/ntpd || die |
141 |
fi |
142 |
sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die |
143 |
|
144 |
keepdir /var/lib/ntp |
145 |
use prefix || fowners ntp:ntp /var/lib/ntp |
146 |
|
147 |
if use openntpd ; then |
148 |
cd "${ED}" |
149 |
rm usr/sbin/ntpd || die |
150 |
rm -r var/lib |
151 |
rm etc/{conf,init}.d/ntpd |
152 |
rm usr/share/man/*/ntpd.8 || die |
153 |
fi |
154 |
} |
155 |
|
156 |
pkg_postinst() { |
157 |
ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/" |
158 |
ewarn "Review /etc/ntp.conf to setup server info." |
159 |
ewarn "Review /etc/conf.d/ntpd to setup init.d info." |
160 |
echo |
161 |
elog "The way ntp sets and maintains your system time has changed." |
162 |
elog "Now you can use /etc/init.d/ntp-client to set your time at" |
163 |
elog "boot while you can use /etc/init.d/ntpd to maintain your time" |
164 |
elog "while your machine runs" |
165 |
if grep -qs '^[^#].*notrust' "${EROOT}"/etc/ntp.conf ; then |
166 |
echo |
167 |
eerror "The notrust option was found in your /etc/ntp.conf!" |
168 |
ewarn "If your ntpd starts sending out weird responses," |
169 |
ewarn "then make sure you have keys properly setup and see" |
170 |
ewarn "http://bugs.gentoo.org/41827" |
171 |
fi |
172 |
} |