summaryrefslogtreecommitdiffstats
path: root/rules/ntp.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2007-09-26 06:23:55 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2007-09-26 06:23:55 +0000
commitdee89e1fb94f9901f30b31cecdc7ba8e5f913e58 (patch)
tree4c6dc9bb4ae31817a2a2fd04c00ce582242cbbd1 /rules/ntp.make
parent5c45375e5abeb1b3ca026a1c014a3532c80fdcc2 (diff)
downloadptxdist-dee89e1fb94f9901f30b31cecdc7ba8e5f913e58.tar.gz
ptxdist-dee89e1fb94f9901f30b31cecdc7ba8e5f913e58.tar.xz
* ntp: update NTP package to version 4.2.4p3. Adds options for
rc.d links for the server and ntpdc plus configurations. Some missing /var directories for statistics files have also been added. Patch by Carsten Schlote. git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7291 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/ntp.make')
-rw-r--r--rules/ntp.make28
1 files changed, 27 insertions, 1 deletions
diff --git a/rules/ntp.make b/rules/ntp.make
index 0cce07008..fddb90fee 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -17,7 +17,7 @@ PACKAGES-$(PTXCONF_NTP) += ntp
#
# Paths and names
#
-NTP_VERSION = 4.2.2p3
+NTP_VERSION = 4.2.4p3
NTP = ntp-$(NTP_VERSION)
NTP_SUFFIX = tar.gz
NTP_URL = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$(NTP).$(NTP_SUFFIX)
@@ -359,18 +359,44 @@ $(STATEDIR)/ntp.targetinstall: $(ntp_targetinstall_deps_default)
ifdef PTXCONF_NTP_NTPDATE
@$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpdate/ntpdate, /usr/sbin/ntpdate)
endif
+
ifdef PTXCONF_NTP_NTPD
@$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpd/ntpd, /usr/sbin/ntpd)
@$(call install_copy, ntp, 0, 0, 0755, $(PTXDIST_TOPDIR)/generic/etc/init.d/ntp, /etc/init.d/ntp-server, n)
+ ifdef PTXCONF_NTP_NTPD_RCD_LINK
+ @$(call install_copy, ntp, 0, 0, 0755, /etc/rc.d)
+ @$(call install_link, ntp, ../init.d/ntp-server, \
+ /etc/rc.d/S19_ntp-server)
+ endif
+ ifdef PTXCONF_NTP_NTPD_USR_CONF
+ @$(call install_copy, ntp, 0, 0, 0644, \
+ ${PTXDIST_WORKSPACE}/projectroot/etc/ntp-server.conf, \
+ /etc/ntp-server.conf, n)
+ endif
endif
+
ifdef PTXCONF_NTP_NTPDC
@$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpdc/ntpdc, /usr/sbin/ntpdc)
@$(call install_link, ntp, /etc/init.d/ntp-server, /etc/init.d/ntp-client, n)
+ ifdef PTXCONF_NTP_NTPDC_RCD_LINK
+ @$(call install_copy, ntp, 0, 0, 0755, /etc/rc.d)
+ @$(call install_link, ntp, ../init.d/ntp-client, \
+ /etc/rc.d/S19_ntp-client)
+ endif
+ ifdef PTXCONF_NTP_NTPDC_USR_CONF
+ @$(call install_copy, ntp, 0, 0, 0644, \
+ ${PTXDIST_WORKSPACE}/projectroot/etc/ntp-client.conf, \
+ /etc/ntp-client.conf, n)
+ endif
endif
+
ifdef PTXCONF_NTP_NTPQ
@$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpq/ntpq, /usr/sbin/ntpq)
endif
+ @$(call install_copy, ntp, 0, 0, 0755, /var/log/ntpstats/)
+ @$(call install_copy, ntp, 0, 0, 0755, /var/lib/ntp)
+
@$(call install_finish, ntp)
@$(call touch, $@)