diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-05-24 21:22:12 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-05-24 21:22:12 +0000 |
commit | 0ae69f0f9290927d293d0ddff01a61cb8fcf5ce9 (patch) | |
tree | 12e5d1432a15b0c7372a613c1bb565fa366ae3d1 /net-misc/ntp | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-0ae69f0f9290927d293d0ddff01a61cb8fcf5ce9.tar.gz gentoo-2-0ae69f0f9290927d293d0ddff01a61cb8fcf5ce9.tar.bz2 gentoo-2-0ae69f0f9290927d293d0ddff01a61cb8fcf5ce9.zip |
Fixed a compile bug
Diffstat (limited to 'net-misc/ntp')
-rw-r--r-- | net-misc/ntp/files/digest-ntp-4.0.99k-r2 | 1 | ||||
-rw-r--r-- | net-misc/ntp/files/ntp-4.0.99k-r2-gentoo.diff | 23 | ||||
-rw-r--r-- | net-misc/ntp/ntp-4.0.99k-r2.ebuild | 45 |
3 files changed, 69 insertions, 0 deletions
diff --git a/net-misc/ntp/files/digest-ntp-4.0.99k-r2 b/net-misc/ntp/files/digest-ntp-4.0.99k-r2 new file mode 100644 index 000000000000..54379ce87ea4 --- /dev/null +++ b/net-misc/ntp/files/digest-ntp-4.0.99k-r2 @@ -0,0 +1 @@ +MD5 7b3b73e42f5a10324d06ada4996dccbb ntp-4.0.99k23.tar.gz diff --git a/net-misc/ntp/files/ntp-4.0.99k-r2-gentoo.diff b/net-misc/ntp/files/ntp-4.0.99k-r2-gentoo.diff new file mode 100644 index 000000000000..3e4828f7b9a1 --- /dev/null +++ b/net-misc/ntp/files/ntp-4.0.99k-r2-gentoo.diff @@ -0,0 +1,23 @@ +--- ntp-4.0.99k23/ntpdate/ntpdate.c.orig Thu May 24 23:12:27 2001 ++++ ntp-4.0.99k23/ntpdate/ntpdate.c Thu May 24 23:12:06 2001 +@@ -43,9 +43,9 @@ + # include "timers.h" + + /* select wants a zero structure ... */ +-struct timeval timeout = {0,0}; ++struct timeval timeout2 = {0,0}; + #else +-struct timeval timeout = {60,0}; ++struct timeval timeout2 = {60,0}; + #endif + + #ifdef HAVE_NETINFO +@@ -557,7 +557,7 @@ + */ + rdfdes = fdmask; + #ifdef HAVE_POLL_H +- nfound = poll(&rdfdes, 1, timeout.tv_sec * 1000); ++ nfound = poll(&rdfdes, 1, timeout2.tv_sec * 1000); + #else + nfound = select(fd+1, &rdfdes, (fd_set *)0, + (fd_set *)0, &timeout); diff --git a/net-misc/ntp/ntp-4.0.99k-r2.ebuild b/net-misc/ntp/ntp-4.0.99k-r2.ebuild new file mode 100644 index 000000000000..6dc2d318b84e --- /dev/null +++ b/net-misc/ntp/ntp-4.0.99k-r2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Jerry Alexandratos <jerry@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/ntp-4.0.99k-r2.ebuild,v 1.1 2001/05/24 21:22:12 achim Exp $ + +A=${P}23.tar.gz +S=${WORKDIR}/${P}23 +DESCRIPTION="Network Time Protocol suite/programs" +SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/${A}" +HOMEPAGE="http://www.ntp.org/" + +DEPEND="virtual/glibc + >=sys-libs/ncurses-5.2 + >=sys-libs/readline-4.1" +src_unpack() { + unpack ${A} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff +} + +src_compile() { + try LDFLAGS=\"$LDFLAGS -lncurses\" ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST} + try make +} + +src_install () { + try make prefix=${D}/usr mandir=${D}/usr/share/man install + + dodoc ChangeLog INSTALL NEWS README TODO WHERE-TO-START + + cd ${S}/html + docinto html + dodoc *.htm + + cd ${S}/html/hints + docinto html/hints + dodoc * + + cd ${S}/html/pic + docinto html/pic + dodoc * + + cd ${S}/scripts + insinto /usr/share/ntp + doins * +} |