ntpdate init script
authorBruno Randolf <br1@subnet.at>
Mon, 4 Oct 2004 19:12:44 +0000 (19:12 +0000)
committerBruno Randolf <br1@subnet.at>
Mon, 4 Oct 2004 19:12:44 +0000 (19:12 +0000)
BKrev: 4161a0acm6ghM1J2vqrD8KuHu6433w

ntp/files/ntpdate [new file with mode: 0644]
ntp/ntp_4.1.2.oe

diff --git a/ntp/files/ntpdate b/ntp/files/ntpdate
new file mode 100644 (file)
index 0000000..e69de29
index e7fcc3f..26e2472 100644 (file)
@@ -7,7 +7,8 @@ PRIORITY = "optional"
 DEPENDS = "openssl"
 
 SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV}.tar.gz \
-          file://configure.patch;patch=1"
+          file://configure.patch;patch=1 \
+          file://ntpdate"
 
 inherit autotools
 
@@ -17,4 +18,9 @@ CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
 
 PACKAGES = "ntpdate ntp"
 
-FILES_ntpdate = "/usr/bin/ntpdate"
+FILES_ntpdate = "/usr/bin/ntpdate /etc/init.d/ntpdate"
+
+do_install_append() {
+       install -d ${D}/${sysconfdir}/init.d
+       install -m 755 ${WORKDIR}/ntpdate ${D}/${sysconfdir}/init.d
+}
\ No newline at end of file