From: nico Date: Wed, 8 Jun 2005 21:54:45 +0000 (+0000) Subject: Update to new upstream release (v0.8.1) X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/1ceef6d0a4d848162ccc8d36976426b1944b2b61 Update to new upstream release (v0.8.1) Remove patch, same funcionnality is now included in new version git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1180 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/openwrt/package/htpdate/Makefile b/openwrt/package/htpdate/Makefile index 850542574..e37cf8ffd 100644 --- a/openwrt/package/htpdate/Makefile +++ b/openwrt/package/htpdate/Makefile @@ -3,9 +3,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=htpdate -PKG_VERSION:=0.8.0 +PKG_VERSION:=0.8.1 PKG_RELEASE:=1 -PKG_MD5SUM:=5fd1ba822e0949a3cb34e3f61fbeb8ca +PKG_MD5SUM:=f9a984d5c2f78401ed6712760331ca7f PKG_SOURCE_URL:=http://www.clevervest.com/htp/archive/c/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/openwrt/package/htpdate/files/htpdate.init b/openwrt/package/htpdate/files/htpdate.init index 69d3d35f5..a9fbb81c2 100644 --- a/openwrt/package/htpdate/files/htpdate.init +++ b/openwrt/package/htpdate/files/htpdate.init @@ -9,7 +9,7 @@ PID_F=$RUN_D/$BIN.pid case $1 in start) mkdir -p $RUN_D - $BIN -C 0 -l -s $OPTIONS && $BIN -D $OPTIONS + $BIN -s -t $OPTIONS && $BIN -D $OPTIONS ;; stop) [ -f $PID_F ] && kill $(cat $PID_F) diff --git a/openwrt/package/htpdate/patches/500-check-time-delta-opt.patch b/openwrt/package/htpdate/patches/500-check-time-delta-opt.patch deleted file mode 100644 index d5e663fdc..000000000 --- a/openwrt/package/htpdate/patches/500-check-time-delta-opt.patch +++ /dev/null @@ -1,67 +0,0 @@ -diff -ruN htpdate-0.8.0-old/htpdate.c htpdate-0.8.0-new/htpdate.c ---- htpdate-0.8.0-old/htpdate.c 2005-05-26 23:32:18.000000000 +0200 -+++ htpdate-0.8.0-new/htpdate.c 2005-06-02 04:33:33.000000000 +0200 -@@ -243,7 +243,7 @@ - printf("htpdate version %s\n", version); - printf("\ - Usage: htpdate [-0|-1] [-a|-q|-s] [-d|-D] [-h|-l] [-i pid file] [-m minpoll]\n\ -- [-M maxpoll] [-P [:port]] ...\n\n\ -+ [-M maxpoll] [-C limit] [-P [:port]] ...\n\n\ - -0 HTTP/1.0 request (default)\n\ - -1 HTTP/1.1 request\n\ - -a adjust time smoothly\n\ -@@ -257,6 +257,8 @@ - -m minimum poll interval (2^m)\n\ - -M maximum poll interval (2^M)\n\ - -P proxy server\n\ -+ -C time delta limit in server responses (in seconds)\n\ -+ default: 1 year, unlimited: 0\n\ - host web server hostname or ip address\n\ - port port number (default 80 and 8080 for proxy server)\n\n"); - -@@ -271,6 +273,7 @@ - int port, proxyport = 8080; - int sumtime, numservers, validtime, goodtime, mean, i; - double timeavg; -+ int timedeltalimit = YEAR; - unsigned int nap = 0, when = 500000; - unsigned int minsleep = 10, maxsleep = 18, sleeptime = minsleep; - char setmode = 0, httpversion = 0, try, param; -@@ -283,7 +286,7 @@ - - - /* Parse the command line switches and arguments */ -- while ( (param = getopt(argc, argv, "01adhi:lm:qsDM:P:") ) != -1) -+ while ( (param = getopt(argc, argv, "01adhi:lm:qsDM:P:C:") ) != -1) - switch (param) - { - case '0': /* adjust time */ -@@ -340,6 +343,12 @@ - } - } - break; -+ case 'C': /* time delta limit in server responses */ -+ if ( (timedeltalimit = atoi(optarg) ) < 0 ) { -+ printlog( 1, "Invalid time delta limit" ); -+ exit(1); -+ } -+ break; - case '?': - return 1; - default: -@@ -458,10 +467,12 @@ - try--; - } while ( timestamp && try && daemonize ); - -- /* Only include valid responses in timedelta[], |delta time| < year */ -- if ( ( timestamp > -YEAR ) && ( timestamp < YEAR ) ) { -- timedelta[validtime] = timestamp; -+ timedelta[validtime] = timestamp; -+ /* Only include valid responses in timedelta[], |delta time| < validlimit */ -+ if ( ( timedeltalimit == 0 ) || ( ( timestamp > -timedeltalimit ) && ( timestamp < timedeltalimit ) ) ) { - validtime++; -+ } else { -+ printlog( 0, "Invalid server response (host: %s, time delta: %d, limit: %d)", host, timestamp, timedeltalimit); - } - - /* Sleep for a while, unless we detected a time offset */