###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# Copyright (C) 2007-2020 IPFire Team <info@ipfire.org> #
# #
# 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 #
include Config
-VER = 4.2.6p5
+VER = 4.2.8p15
THISAPP = ntp-$(VER)
DL_FILE = $(THISAPP).tar.gz
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 00df80a84ec9528fcfb09498075525bc
+$(DL_FILE)_MD5 = e1e6b23d2fc75cced41801dbcd6c2561
install : $(TARGET)
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ntp-4.2.8p15-build-fix-for-glibc-2.34.patch
+ $(UPDATE_AUTOMAKE)
cd $(DIR_APP) && \
./configure \
--prefix=/usr \
cd $(DIR_APP) && make install
-mkdir /etc/ntp
- chown -R ntp:ntp /etc/ntp
- echo "disable monitor" > /etc/ntp.conf
- echo "restrict default nomodify noquery" >> /etc/ntp.conf
- 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
+ install -v -m 644 $(DIR_SRC)/config/ntp/ntp.conf /etc/ntp.conf
#Enable it by default...
cp -vf $(DIR_SRC)/config/time/* /var/ipfire/time/