Here ya go == ChangeLog === # ChangeLog for net-misc/clockspeed # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL # /space/gentoo/cvsroot/gentoo-x86/net-misc/clockspeed/ChangeLog,v 1.1 2002/02/01 21:53:34 gbevin Exp *clockspeed-0.62-r2 (8 Mar 2002) 8 Mar 2002; T.Bangert <thilo.bangert@gmx.net> ChangeLog : - cleanups in ebuild - added INSTALL to dodoc - added message about ntpclockset to end of install == clockspeed-0.62-r2.ebuild =============== # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Your Name <your email> # /space/gentoo/cvsroot/gentoo-x86/net-misc/clockspeed/clockspeed-0.62-r1.ebuild,v 1.3 2001/05/28 05:24:13 achim Exp #P= A=${P}.tar.gz S=${WORKDIR}/${P} DESCRIPTION="a simple ntp client" SRC_URI="http://cr.yp.to/clockspeed/clockspeed-0.62.tar.gz" HOMEPAGE="http://cr.yp.to/" DEPEND="virtual/glibc sys-apps/groff" RDEPEND="virtual/glibc" src_unpack() { unpack ${A} cd ${S} patch -p1 < ${FILESDIR}/${PF}-gentoo.diff cp -a conf-cc conf-cc.orig sed "s/@CFLAGS@/${CFLAGS}/" < conf-cc.orig > conf-cc } src_compile() { try make } src_install () { dodir /etc /usr/bin /usr/sbin /usr/share/man/man1 insinto /etc doins leapsecs.dat into /usr dobin clockspeed clockadd clockview sntpclock taiclock taiclockd doman clockspeed.1 clockadd.1 clockview.1 sntpclock.1 taiclock.1 taiclockd.1 exeinto /usr/sbin newexe ${FILESDIR}/ntpclockset ntpclockset dodoc BLURB CHANGES README THANKS TODO INSTALL } pkg_postinst() { echo einfo "Use ntpclockset to set your clock!" echo } == files/digest-clockspeed-0.62-r2 ======== MD5 425614174fcfe2ad42d22d3d02e2d567 clockspeed-0.62.tar.gz 25797 == files/clockspeed-0.62-r2-gentoo.diff ============= diff -ur clockspeed-0.62.orig/conf-cc clockspeed-0.62/conf-cc --- clockspeed-0.62.orig/conf-cc Tue Oct 13 13:37:49 1998 +++ clockspeed-0.62/conf-cc Thu Apr 19 19:55:16 2001 @@ -1,3 +1,3 @@ -gcc -O2 +gcc @CFLAGS@ This will be used to compile .c files. diff -ur clockspeed-0.62.orig/conf-home clockspeed-0.62/conf-home --- clockspeed-0.62.orig/conf-home Tue Oct 13 13:37:49 1998 +++ clockspeed-0.62/conf-home Thu Apr 19 19:55:00 2001 @@ -1,4 +1,4 @@ -/usr/local/clockspeed +/usr This is the clockspeed home directory. Programs will be installed in .../bin. diff -ur clockspeed-0.62.orig/conf-ld clockspeed-0.62/conf-ld --- clockspeed-0.62.orig/conf-ld Tue Oct 13 13:37:49 1998 +++ clockspeed-0.62/conf-ld Thu Apr 19 19:54:54 2001 @@ -1,3 +1,3 @@ -gcc -s +gcc This will be used to link .o files into an executable. --- clockspeed-0.62/clockview.c~ Tue Oct 13 19:37:49 1998 +++ clockspeed-0.62/clockview.c Thu Apr 26 01:11:43 2001 @@ -1,5 +1,5 @@ #include <sys/types.h> -#include <sys/time.h> +#include <time.h> #include "substdio.h" #include "readwrite.h" #include "strerr.h" == files/ntpclockset ============ #!/bin/bash if [ -z "${1}" ] then NTPSERVER=132.163.135.130 else NTPSERVER="${1}" fi #display how much your clock is off by sntpclock $NTPSERVER > /tmp/sntpclock if [ "${?}" != "0" ] then echo ">>> Could not contact NTP server: $NTPSERVER" >&2 exit 1 fi echo ">>> Current clock sync:" cat /tmp/sntpclock | clockview echo echo -n ">>> Now setting clock..." cat /tmp/sntpclock | clockadd echo " done." #wite data to the hardware clock so it survives a reboot echo -n ">>> Writing time to hardware clock..." hwclock --systohc echo " done." echo echo ">>> New clock sync:" sntpclock $NTPSERVER | clockview ==
Remove A=, "try foo" -> "foo || die"
the new ebuild is at http://www.fizzelpark.com/portage/?dirpath=net-misc/clockspeed/ thanks Thilo
fixed in cvs