]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
ntp: Use an pregenerated config file.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Aug 2009 12:44:51 +0000 (14:44 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Aug 2009 12:44:51 +0000 (14:44 +0200)
Additionally, there should be NO country-related
configuration!

lfs/ntp
src/ntp/ntp.conf [new file with mode: 0644]

diff --git a/lfs/ntp b/lfs/ntp
index f0b5236f832be01136d5ccda72a7ef19b1fea34d..b931acde7d611702a238e3a543b47e3e72f56aa7 100644 (file)
--- a/lfs/ntp
+++ b/lfs/ntp
@@ -90,10 +90,9 @@ $(OBJECT): $(objects)
                        --with-binsubdir=sbin
        cd $(DIR_APP) && make $(PARALLELISMFLAGS)
        cd $(DIR_APP) && make install
-       echo "restrict default nomodify noquery" > /etc/ntp.conf
-       echo "restrict 127.0.0.1" >> /etc.ntp.conf
-       echo "server de.pool.ntp.org" >> /etc/ntp.conf
-       echo "driftfile /etc/ntp/drift" >> /etc/ntp.conf
+
+       $(INSTALL_CONFIG) $(DIR_SOURCE)/$(PKG_NAME)/ntp.conf \
+               > /etc/ntp.conf
 
        $(INSTALL_INITSCRIPT)
 
diff --git a/src/ntp/ntp.conf b/src/ntp/ntp.conf
new file mode 100644 (file)
index 0000000..4b89e83
--- /dev/null
@@ -0,0 +1,4 @@
+restrict default nomodify noquery
+restrict 127.0.0.1
+server pool.ntp.org
+driftfile /etc/ntp/drift