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: ChangeLog ntp-4.2.4_p4.ebuild
Date: Sat, 06 Oct 2007 12:31:20
Message-Id: E1Ie8fC-00061j-7J@stork.gentoo.org
1 vapier 07/10/06 12:21:46
2
3 Modified: ChangeLog
4 Added: ntp-4.2.4_p4.ebuild
5 Log:
6 Version bump #193033.
7 (Portage version: 2.1.3.11)
8
9 Revision Changes Path
10 1.117 net-misc/ntp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.117&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/ntp/ChangeLog?rev=1.117&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/ntp/ChangeLog?r1=1.116&r2=1.117
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v
19 retrieving revision 1.116
20 retrieving revision 1.117
21 diff -u -r1.116 -r1.117
22 --- ChangeLog 28 Sep 2007 06:55:22 -0000 1.116
23 +++ ChangeLog 6 Oct 2007 12:21:45 -0000 1.117
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-misc/ntp
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.116 2007/09/28 06:55:22 kumba Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ChangeLog,v 1.117 2007/10/06 12:21:45 vapier Exp $
29 +
30 +*ntp-4.2.4_p4 (06 Oct 2007)
31 +
32 + 06 Oct 2007; Mike Frysinger <vapier@g.o> +ntp-4.2.4_p4.ebuild:
33 + Version bump #193033.
34
35 28 Sep 2007; Joshua Kinard <kumba@g.o> ntp-4.2.4_p3.ebuild:
36 Stable on mips.
37
38
39
40 1.1 net-misc/ntp/ntp-4.2.4_p4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/ntp/ntp-4.2.4_p4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/ntp/ntp-4.2.4_p4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: ntp-4.2.4_p4.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ntp-4.2.4_p4.ebuild,v 1.1 2007/10/06 12:21:45 vapier Exp $
50
51 inherit eutils toolchain-funcs
52
53 MY_P=${P/_p/p}
54 DESCRIPTION="Network Time Protocol suite/programs"
55 HOMEPAGE="http://www.ntp.org/"
56 SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz
57 mirror://gentoo/${MY_P}-manpages.tar.bz2"
58
59 LICENSE="as-is"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
62 IUSE="caps debug ipv6 openntpd parse-clocks selinux ssl zeroconf"
63
64 DEPEND=">=sys-libs/ncurses-5.2
65 >=sys-libs/readline-4.1
66 kernel_linux? ( caps? ( sys-libs/libcap ) )
67 zeroconf? ( || ( net-dns/avahi net-misc/mDNSResponder ) )
68 !openntpd? ( !net-misc/openntpd )
69 ssl? ( dev-libs/openssl )
70 selinux? ( sec-policy/selinux-ntp )"
71 PDEPEND="openntpd? ( net-misc/openntpd )"
72
73 S=${WORKDIR}/${MY_P}
74
75 hax_bitkeeper() {
76 # the makefiles have support for bk ...
77 # basically we have to do this or bk will try to write
78 # to files in /opt/bitkeeper causing sandbox violations ;(
79 mkdir -p "${T}"/fakebin
80 echo "#!/bin/sh"$'\n'"exit 1" > "${T}"/fakebin/bk
81 chmod a+x "${T}"/fakebin/bk
82 export PATH="${T}/fakebin:${PATH}"
83 }
84
85 pkg_setup() {
86 enewgroup ntp 123
87 enewuser ntp 123 -1 /dev/null ntp
88
89 if use zeroconf && has_version net-dns/avahi && ! built_with_use net-dns/avahi mdnsresponder-compat ; then
90 eerror "You need to recompile net-dns/avahi with mdnsresponder-compat USE flag"
91 die "net-dns/avahi is missing required mdnsresponder-compat support"
92 fi
93 }
94
95 src_unpack() {
96 unpack ${A}
97 cd "${S}"
98
99 # Needs to be ported ...
100 #epatch "${FILESDIR}"/4.2.0.20040617-hostname.patch
101
102 sed -i \
103 -e 's:md5\.h:touch_not_my_md5:g' \
104 -e 's:-lelf:-la_doe_a_deer_a_female_deer:g' \
105 -e 's:-lmd5:-li_dont_want_no_stinkin_md5:g' \
106 configure || die "sed failed"
107 }
108
109 src_compile() {
110 hax_bitkeeper
111 # blah, no real configure options #176333
112 export ac_cv_header_dns_sd_h=$(use zeroconf && echo yes || echo no)
113 export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h}
114 econf \
115 $(use_enable caps linuxcaps) \
116 $(use_enable parse-clocks) \
117 $(use_enable ipv6) \
118 $(use_enable debug debugging) \
119 $(use_with ssl crypto) \
120 || die
121 emake || die
122 }
123
124 src_install() {
125 hax_bitkeeper
126 emake install DESTDIR="${D}" || die "install failed"
127 # move ntpd/ntpdate to sbin #66671
128 dodir /usr/sbin
129 mv "${D}"/usr/bin/{ntpd,ntpdate} "${D}"/usr/sbin/ || die "move to sbin"
130
131 dodoc ChangeLog INSTALL NEWS README TODO WHERE-TO-START
132 doman "${WORKDIR}"/man/*.[58]
133 dohtml -r html/*
134
135 insinto /usr/share/ntp
136 doins "${FILESDIR}"/ntp.conf
137 cp -r scripts/* "${D}"/usr/share/ntp/ || die
138 fperms -R go-w /usr/share/ntp
139 find "${D}"/usr/share/ntp \
140 '(' \
141 -name '*.in' -o \
142 -name 'Makefile*' -o \
143 -name support \
144 ')' \
145 -exec rm -r {} \;
146
147 insinto /etc
148 doins "${FILESDIR}"/ntp.conf
149 newinitd "${FILESDIR}"/ntpd.rc ntpd
150 newconfd "${FILESDIR}"/ntpd.confd ntpd
151 newinitd "${FILESDIR}"/ntp-client.rc ntp-client
152 newconfd "${FILESDIR}"/ntp-client.confd ntp-client
153 use caps || dosed "s|-u ntp:ntp||" /etc/conf.d/ntpd
154 dosed "s:/usr/bin:/usr/sbin:" /etc/init.d/ntpd
155
156 keepdir /var/lib/ntp
157 fowners ntp:ntp /var/lib/ntp
158
159 if use openntpd ; then
160 cd "${D}"
161 rm usr/sbin/ntpd || die
162 rm -r var/lib
163 rm etc/{conf,init}.d/ntpd
164 rm usr/share/man/*/ntpd.8 || die
165 fi
166 }
167
168 pkg_postinst() {
169 ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/"
170 ewarn "Review /etc/ntp.conf to setup server info."
171 ewarn "Review /etc/conf.d/ntpd to setup init.d info."
172 echo
173 elog "The way ntp sets and maintains your system time has changed."
174 elog "Now you can use /etc/init.d/ntp-client to set your time at"
175 elog "boot while you can use /etc/init.d/ntpd to maintain your time"
176 elog "while your machine runs"
177 if grep -qs '^[^#].*notrust' "${ROOT}"/etc/ntp.conf ; then
178 echo
179 eerror "The notrust option was found in your /etc/ntp.conf!"
180 ewarn "If your ntpd starts sending out weird responses,"
181 ewarn "then make sure you have keys properly setup and see"
182 ewarn "http://bugs.gentoo.org/41827"
183 fi
184 }
185
186
187
188 --
189 gentoo-commits@g.o mailing list