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