aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntimed/ntimed_git.bb
blob: 099054178415644c13ee917cd277d45621b21753 (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
33
34
35
36
37
38
39
40
41
SUMMARY = "Network time synchronization software, NTPD replacement"
DESCRIPTION = "This is a preview/early-access/alpha/buzzword-of-the-times \
release of a new FOSS project written to gradually take over the world of \
networked timekeeping."
HOMEPAGE = "https://github.com/bsdphk/Ntimed"
SECTION = "console/network"

LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://main.c;startline=2;endline=24;md5=eda11d21005319bb76cbb6f911f0f66d"

SRC_URI = "git://github.com/bsdphk/Ntimed \
           file://use-ldflags.patch"

PV = "0.0+git${SRCPV}"
SRCREV = "db0abbb4c80f2ecef6bc5d9639bca5bea28532a2"

S = "${WORKDIR}/git"

EXTRA_OEMAKE = "\
    'CC=${CC}' \
    'CFLAGS=${CFLAGS}' \
    'LDFLAGS=${LDFLAGS}' \
"

do_configure () {
    sh ./configure
}

do_compile () {
    oe_runmake
}

do_install () {
    install -D -m 0755 ntimed-client ${D}${sbindir}/ntimed-client
}

ALLOW_EMPTY_${PN} = "1"
RDEPENDS_${PN} += "ntimed-client"

PACKAGE_BEFORE_PN += "ntimed-client"
FILES_ntimed-client = "${sbindir}/ntimed-client"