summaryrefslogtreecommitdiff
path: root/packages/ntpclient/ntpclient_2003_194.bb
blob: e2f58631bd357e0e925dea43d454c4c21f95fd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
DESCRIPTION = "NTP (RFC-1305) client for unix-alike computers"
HOMEPAGE = "http://doolittle.icarus.com/ntpclient"
AUTHOR = "Larry Doolittle <larry@doolittle.boa.org>"
RDEPENDS = "busybox"
SECTION = "admin"
LICENSE = "GPL/v2"
PR = "r0"
# The ntpclient package uses version numbers that include an underscore :(
PV = "2003_194"
# ntpclient unpacks into a directory that doesn't include version info :(
S = "${WORKDIR}/${PN}"

SRC_URI = "http://doolittle.icarus.com/ntpclient/ntpclient_${PV}.tar.gz \
           file://init"

INITSCRIPT_NAME = "ntpclient"
INITSCRIPT_PARAMS = "defaults 65"
inherit update-rc.d

do_compile() {
    oe_runmake ntpclient
    oe_runmake adjtimex
}

do_install () {
    # Install the binary and tools
    install -D -s -m 0755 ${S}/ntpclient ${D}${base_sbindir}/ntpclient
    install -D -s -m 0755 ${S}/adjtimex ${D}${base_sbindir}/adjtimex
    install -D -m 0755 ${S}/rate.awk ${D}${sbindir}/ntpclient-drift-rate.awk
    install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/ntpclient
}