1 |
vapier 11/01/04 21:27:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ntp-4.2.6_p3.ebuild |
5 |
Log: |
6 |
Version bump #350585. |
7 |
|
8 |
(Portage version: 2.2.0_alpha10/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.163 net-misc/ntp/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.163&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.163&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ChangeLog?r1=1.162&r2=1.163 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v |
20 |
retrieving revision 1.162 |
21 |
retrieving revision 1.163 |
22 |
diff -u -r1.162 -r1.163 |
23 |
--- ChangeLog 27 Jul 2010 13:06:37 -0000 1.162 |
24 |
+++ ChangeLog 4 Jan 2011 21:27:25 -0000 1.163 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-misc/ntp |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.162 2010/07/27 13:06:37 flameeyes Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.163 2011/01/04 21:27:25 vapier Exp $ |
31 |
+ |
32 |
+*ntp-4.2.6_p3 (04 Jan 2011) |
33 |
+ |
34 |
+ 04 Jan 2011; Mike Frysinger <vapier@g.o> +ntp-4.2.6_p3.ebuild: |
35 |
+ Version bump #350585. |
36 |
|
37 |
*ntp-4.2.6_p2-r1 (27 Jul 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-misc/ntp/ntp-4.2.6_p3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.6_p3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/ntp-4.2.6_p3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ntp-4.2.6_p3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ntp-4.2.6_p3.ebuild,v 1.1 2011/01/04 21:27:25 vapier Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit eutils toolchain-funcs flag-o-matic |
56 |
|
57 |
MY_P=${P/_p/p} |
58 |
DESCRIPTION="Network Time Protocol suite/programs" |
59 |
HOMEPAGE="http://www.ntp.org/" |
60 |
SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz |
61 |
mirror://gentoo/${MY_P}-manpages.tar.bz2" |
62 |
|
63 |
LICENSE="as-is" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
66 |
IUSE="caps debug ipv6 openntpd parse-clocks selinux snmp ssl vim-syntax zeroconf" |
67 |
|
68 |
DEPEND=">=sys-libs/ncurses-5.2 |
69 |
>=sys-libs/readline-4.1 |
70 |
kernel_linux? ( caps? ( sys-libs/libcap ) ) |
71 |
zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) ) |
72 |
!openntpd? ( !net-misc/openntpd ) |
73 |
snmp? ( net-analyzer/net-snmp ) |
74 |
ssl? ( dev-libs/openssl ) |
75 |
selinux? ( sec-policy/selinux-ntp )" |
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=$(use zeroconf && echo yes || echo no) |
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_with snmp ntpsnmpd) \ |
107 |
$(use_with ssl crypto) |
108 |
} |
109 |
|
110 |
src_install() { |
111 |
emake install DESTDIR="${D}" || die "install failed" |
112 |
# move ntpd/ntpdate to sbin #66671 |
113 |
dodir /usr/sbin |
114 |
mv "${D}"/usr/bin/{ntpd,ntpdate} "${D}"/usr/sbin/ || die "move to sbin" |
115 |
|
116 |
dodoc ChangeLog INSTALL NEWS README TODO WHERE-TO-START |
117 |
doman "${WORKDIR}"/man/*.[58] |
118 |
dohtml -r html/* |
119 |
|
120 |
insinto /usr/share/ntp |
121 |
doins "${FILESDIR}"/ntp.conf |
122 |
cp -r scripts/* "${D}"/usr/share/ntp/ || die |
123 |
fperms -R go-w /usr/share/ntp |
124 |
find "${D}"/usr/share/ntp \ |
125 |
'(' \ |
126 |
-name '*.in' -o \ |
127 |
-name 'Makefile*' -o \ |
128 |
-name support \ |
129 |
')' \ |
130 |
-exec rm -r {} \; |
131 |
|
132 |
insinto /etc |
133 |
doins "${FILESDIR}"/ntp.conf |
134 |
newinitd "${FILESDIR}"/ntpd.rc ntpd |
135 |
newconfd "${FILESDIR}"/ntpd.confd ntpd |
136 |
newinitd "${FILESDIR}"/ntp-client.rc ntp-client |
137 |
newconfd "${FILESDIR}"/ntp-client.confd ntp-client |
138 |
use caps || dosed "s|-u ntp:ntp||" /etc/conf.d/ntpd |
139 |
dosed "s:/usr/bin:/usr/sbin:" /etc/init.d/ntpd |
140 |
|
141 |
keepdir /var/lib/ntp |
142 |
fowners ntp:ntp /var/lib/ntp |
143 |
|
144 |
if use openntpd ; then |
145 |
cd "${D}" |
146 |
rm usr/sbin/ntpd || die |
147 |
rm -r var/lib |
148 |
rm etc/{conf,init}.d/ntpd |
149 |
rm usr/share/man/*/ntpd.8 || die |
150 |
fi |
151 |
} |
152 |
|
153 |
pkg_postinst() { |
154 |
ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/" |
155 |
ewarn "Review /etc/ntp.conf to setup server info." |
156 |
ewarn "Review /etc/conf.d/ntpd to setup init.d info." |
157 |
echo |
158 |
elog "The way ntp sets and maintains your system time has changed." |
159 |
elog "Now you can use /etc/init.d/ntp-client to set your time at" |
160 |
elog "boot while you can use /etc/init.d/ntpd to maintain your time" |
161 |
elog "while your machine runs" |
162 |
if grep -qs '^[^#].*notrust' "${ROOT}"/etc/ntp.conf ; then |
163 |
echo |
164 |
eerror "The notrust option was found in your /etc/ntp.conf!" |
165 |
ewarn "If your ntpd starts sending out weird responses," |
166 |
ewarn "then make sure you have keys properly setup and see" |
167 |
ewarn "http://bugs.gentoo.org/41827" |
168 |
fi |
169 |
} |