#!/bin/sh # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && cd ${LFS_TMP}/${1} && make && make install && make installman && cat > /usr/local/bin/hvgetdate << EOF && #!/bin/sh # Time server informations: # US VA: nist1.aol-va.truetime.com (205.188.185.33) # Location: AOL Time Warner facility, Dulles, Virginia # Synchronization: Lockclock Algorithm and ACTS dial-up, GPS-stabilized oscillator for short-term stabilization # Service Area: Eastern US # Access Policy: Open access for up to 20 queries per hour (one-day average) from any one address, others by arrangement # Contact: Judah Levine, jlevine@boulder.nist.gov, 303 492 7785 NTP_HOST1=205.188.185.33 #CA time.nrc.ca (132.246.168.148) #Location: National Research Council of Canada, Ottawa, Ontario, Canada #Geographic Coordinates: 45:27N, 75:37W #Synchronization: NTP V3 secondary (stratum 2), PC/Linux #Service Area: Canada #Access Policy: open access #Contact: time@nrc.ca #Note: time is an alias and the IP address may change; please use DNS. NTP_HOST2=132.246.168.148 echo -n "Synchronizing kernel time via NTP server:" getdate -adjust 1 600 \${NTP_HOST1} \${NTP_HOST2} exit 0 EOF chmod 740 /usr/local/bin/hvgetdate && # Adding fcron entry string_add "# Run after five minutes of execution the first time, then run every hours" \ /etc/fcron/fcrontab && string_add "@mail(false),first(5) 6h /usr/local/bin/hvgetdate" \ /etc/fcron/fcrontab # Return last error exit $?