head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2009.01.04.10.09.07; author rse; state Exp; branches; next 1.1; commitid 5EN5sdVDdhF7o7xt; 1.1 date 2008.11.18.21.18.17; author rse; state Exp; branches; next ; commitid HbmVO7ynEQBlB8rt; desc @@ 1.2 log @upgrading package: omnisync 0.91 -> 1.0 @ text @Index: Makefile --- Makefile.orig 2009-01-02 10:03:20 +0100 +++ Makefile 2009-01-04 11:07:16 +0100 @@@@ -1,15 +1,20 @@@@ VERSION=1.0 -DEBUG=-g -pedantic #-pg #-fprofile-arcs -LDFLAGS=-lssl -lcrypto -lm -lsnmp $(DEBUG) -CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) +CC=gcc +CFLAGS= +CPPFLAGS=-DVERSION=\"$(VERSION)\" +LDFLAGS= +LIBS=-lnetsnmp -lssl -lcrypto -lm OBJS=error.o log.o utils.o utils2.o daytime.o time.o mssl.o http.o snts.o irc.o icmp.o ntpd.o snmp.o simpleptp.o socks5sntp.o main.o sntp.o +.c.o: + $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ -c $< + all: omnisync omnisync: $(OBJS) - $(CC) -Wall $(OBJS) $(LDFLAGS) -o omnisync + $(CC) $(LDFLAGS) $(OBJS) -o omnisync $(LIBS) install: omnisync cp omnisync $(DESTDIR)/usr/local/sbin Index: icmp.c --- icmp.c.orig 2009-01-02 10:03:20 +0100 +++ icmp.c 2009-01-04 11:06:19 +0100 @@@@ -48,6 +48,7 @@@@ #include #include #include +#include #include #include #include Index: time.c --- time.c.orig 2009-01-02 10:03:20 +0100 +++ time.c 2009-01-04 11:06:19 +0100 @@@@ -17,7 +17,7 @@@@ (in[1] << 16) + (in[2] << 8) + (in[3] ); - epoch -= 2208988800; /* 'time' returns seconds since january 1, 1900 00:00 */ + epoch -= 2208988800UL; /* 'time' returns seconds since january 1, 1900 00:00 */ return (double)epoch; } @ 1.1 log @new package: omnisync 0.9 (Network Time Protocol (NTP) Alternative Backend Driver) @ text @d2 2 a3 2 --- Makefile.orig 2008-11-17 22:41:34 +0100 +++ Makefile 2008-11-18 22:05:09 +0100 d5 1 a5 1 VERSION=0.9 d16 1 a16 3 OBJS=error.o log.o utils.o utils2.o daytime.o time.o mssl.o http.o snts.o irc.o icmp.o ntpd.o snmp.o simpleptp.o socks5sntp.o main.o all: omnisync d21 2 d30 2 a31 2 --- icmp.c.orig 2008-11-17 22:41:34 +0100 +++ icmp.c 2008-11-18 22:05:09 +0100 d41 2 a42 2 --- time.c.orig 2008-11-17 22:41:34 +0100 +++ time.c 2008-11-18 22:05:33 +0100 @