]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/ntp
sendEmail: New addon
[ipfire-2.x.git] / lfs / ntp
diff --git a/lfs/ntp b/lfs/ntp
index 966041f5929f433a2a367369b04b17fd7deedb70..1859212f5263b47d8dc71015cfd2452fba6abf4a 100644 (file)
--- a/lfs/ntp
+++ b/lfs/ntp
@@ -71,7 +71,8 @@ $(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
+                                           --sysconfdir=/etc --disable-nls \
+                                           -enable-all-clocks --enable-parse-clocks
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        -mkdir /etc/ntp
@@ -80,5 +81,14 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        echo "server  127.127.1.0"                      >> /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 -s ../init.d/ntp /etc/rc.d/rc0.d/K46ntpd
+       ln -s ../init.d/ntp /etc/rc.d/rc6.d/K46ntpd
+       ln -s ../init.d/ntp /etc/rc.d/rc3.d/S26ntpd
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)