# ChangeLog for net-misc/openntpd
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/ChangeLog,v 1.14 2004/12/22 14:38:24 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/ChangeLog,v 1.15 2004/12/22 14:58:19 vapier Exp $
+
+*openntpd-3.6.1_p1-r1 (22 Dec 2004)
+
+ 22 Dec 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/3.6.1_p1-pollerr.patch, +openntpd-3.6.1_p1-r1.ebuild:
+ Add patch from cvs to handle poll errors #74080 by Christian Gut.
22 Dec 2004; Mike Frysinger <vapier@gentoo.org> openntpd-3.6.1_p1.ebuild,
openntpd-3.6_p1.ebuild:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 d83f94df275397dfe9fe0ec204efcea0 ChangeLog 1787
+MD5 9a9d8c4cdf768c61d0d6b4dbe528af51 ChangeLog 2006
MD5 35c3a3de621be7dee3a78baa97d69103 openntpd-3.6.1_p1.ebuild 1125
MD5 e30195b608a584f4e245e7edfe260680 openntpd-0.20040824p.ebuild 944
MD5 e0a3a37e7163e4f229d902a804126a91 openntpd-3.6_p1.ebuild 1124
+MD5 fb0c57dd0c25f1b51f99cd746c7f91a0 openntpd-3.6.1_p1-r1.ebuild 1175
MD5 b1e008f7e477784dded26817d225dd1c files/3.6_p1-ntpd.8.patch 507
MD5 31c9feba04713eebbe16cd1979fca83d files/openntpd.rc 918
MD5 9cb3424ed5b3f20a231d581b78629afb files/openntpd.conf.d 257
MD5 ccc41a09c3fd03e626921199700f9a7e files/digest-openntpd-3.6_p1 66
MD5 6629cc381ff1007852deb4dfc2303b20 files/digest-openntpd-0.20040824p 70
MD5 71e8d0be6ce1e3324576b9ddce02c74e files/3.6.1_p1-ntpd.8.patch 664
+MD5 8ff46ca71725c4c9ccbdaed5ecbd8ea3 files/3.6.1_p1-pollerr.patch 1218
+MD5 ab87a8b0466a0c1c687eb7648b7f8754 files/digest-openntpd-3.6.1_p1-r1 68
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.10 (GNU/Linux)
-iD8DBQFByYgaroRuSHgZdywRAjkbAJ0T58motU4XbUqMzESvdmKo1rGfYwCggvGW
-oFZdlSvRkxt86A9m28E4bR0=
-=omae
+iD8DBQFByYulroRuSHgZdywRAnsBAKCKPkavnUwcZFpY3UWmTjzXPIv9TQCbB0qf
+WWzrD08E1nHqqHkK8qgdO5I=
+=NbZ/
-----END PGP SIGNATURE-----
--- /dev/null
+Index: ntp.c
+===================================================================
+RCS file: /usr/local/cvs/openntpd-portable/ntp.c,v
+retrieving revision 1.25
+diff -u -p -r1.25 ntp.c
+--- ntp.c 4 Dec 2004 00:06:34 -0000 1.25
++++ ntp.c 12 Dec 2004 00:55:51 -0000
+@@ -228,27 +228,27 @@ ntp_main(int pipe_prnt[2], struct ntpd_c
+ ntp_quit = 1;
+ }
+
+- if (nfds > 0 && (pfd[PFD_PIPE_MAIN].revents & POLLOUT))
++ if (nfds > 0 && (pfd[PFD_PIPE_MAIN].revents & (POLLOUT|POLLERR)))
+ if (msgbuf_write(&ibuf_main->w) < 0) {
+ log_warn("pipe write error (to parent)");
+ ntp_quit = 1;
+ }
+
+- if (nfds > 0 && pfd[PFD_PIPE_MAIN].revents & POLLIN) {
++ if (nfds > 0 && pfd[PFD_PIPE_MAIN].revents & (POLLIN|POLLERR)) {
+ nfds--;
+ if (ntp_dispatch_imsg() == -1)
+ ntp_quit = 1;
+ }
+
+ for (j = 1; nfds > 0 && j < idx_peers; j++)
+- if (pfd[j].revents & POLLIN) {
++ if (pfd[j].revents & (POLLIN|POLLERR)) {
+ nfds--;
+ if (server_dispatch(pfd[j].fd, conf) == -1)
+ ntp_quit = 1;
+ }
+
+ for (; nfds > 0 && j < i; j++)
+- if (pfd[j].revents & POLLIN) {
++ if (pfd[j].revents & (POLLIN|POLLERR)) {
+ nfds--;
+ if (client_dispatch(idx2peer[j - idx_peers],
+ conf->settime) == -1)
--- /dev/null
+MD5 4584f226523776a3cdd2fb6f8212ba8d openntpd-3.6.1p1.tar.gz 123811
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openntpd/openntpd-3.6.1_p1-r1.ebuild,v 1.1 2004/12/22 14:58:19 vapier Exp $
+
+inherit eutils
+
+MY_P=${P/_/}
+DESCRIPTION="Lightweight NTP server ported from OpenBSD"
+HOMEPAGE="http://www.openntpd.org/"
+SRC_URI="mirror://openbsd/OpenNTPD/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ssl"
+
+RDEPEND="virtual/libc
+ ssl? ( dev-libs/openssl )
+ !<=net-misc/ntp-4.2.0-r2"
+DEPEND="${RDEPEND}
+ >=sys-apps/portage-2.0.51"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ enewgroup ntp 123
+ enewuser ntp 123 /bin/false /var/empty ntp
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i '/NTPD_USER/s:_ntp:ntp:' ntpd.h || die
+ epatch ${FILESDIR}/${PV}-ntpd.8.patch
+ epatch ${FILESDIR}/${PV}-pollerr.patch #74080
+}
+
+src_compile() {
+ econf $(use_with !ssl builtin-arc4random) || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc ChangeLog CREDITS README
+
+ newinitd ${FILESDIR}/openntpd.rc ntpd
+ newconfd ${FILESDIR}/openntpd.conf.d ntpd
+}