X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fntp;h=9c5e772ac2efaddcb3cd2262d373d5812950a8cf;hb=6703371d2d8dc81ddf1c04601125fc50465957b0;hp=eb84afc0b9ae64dcc5aa6182f9163226aae1b4d2;hpb=70df830214c97a68fcb7e89ae0d7df58c35590be;p=ipfire-2.x.git diff --git a/lfs/ntp b/lfs/ntp index eb84afc0b9..9c5e772ac2 100644 --- a/lfs/ntp +++ b/lfs/ntp @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2018 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,7 @@ include Config -VER = 4.2.2 +VER = 4.2.8p11 THISAPP = ntp-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 111d879acdcc955e60f527575ab0a71a +$(DL_FILE)_MD5 = 00950ca2855579541896513e78295361 install : $(TARGET) @@ -70,15 +70,32 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=/usr --bindir=/usr/sbin \ - --sysconfdir=/etc --disable-nls + cd $(DIR_APP) && \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-nls \ + --enable-all-clocks \ + --enable-parse-clocks + cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install + -mkdir /etc/ntp chown -R ntp:ntp /etc/ntp - echo "restrict default nomodify noquery" > /etc/ntp.conf - echo "server 127.127.1.0" >> /etc/ntp.conf + echo "disable monitor" > /etc/ntp.conf + echo "restrict default nomodify noquery" >> /etc/ntp.conf + echo "server 127.127.1.0 prefer" >> /etc/ntp.conf echo "fudge 127.127.1.0 stratum 10" >> /etc/ntp.conf echo "driftfile /etc/ntp/drift" >> /etc/ntp.conf + + #Enable it by default... + cp -vf $(DIR_SRC)/config/time/* /var/ipfire/time/ + chmod 644 /var/ipfire/time/* + chown nobody:nobody /var/ipfire/time/* + ln -svf ../init.d/ntp /etc/rc.d/rc0.d/K46ntpd + ln -svf ../init.d/ntp /etc/rc.d/rc6.d/K46ntpd + ln -svf ../init.d/ntp /etc/rc.d/rc3.d/S26ntpd + @rm -rf $(DIR_APP) @$(POSTBUILD)