1 DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation of the \
2 Network Time Protocol."
3 HOMEPAGE = "http://www.openntpd.org/"
4 SECTION = "console/network"
6 DEPENDS += "openssl tzdata"
9 SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \
10 file://autofoo.patch;patch=1 \
11 file://adjtimex-${PV}.patch;patch=1 \
12 file://makefile-install.patch;patch=1 \
15 S = "${WORKDIR}/openntpd-${PV}"
17 inherit autotools update-rc.d
19 EXTRA_OECONF += "CFLAGS=-DUSE_ADJTIMEX --disable-strip --prefix=/usr \
20 --sysconfdir=/etc --with-privsep-path=/${localstatedir}/shared/empty \
21 --with-privsep-user=ntpd \
22 --with-builtin-arc4random \
25 do_install_prepend() {
26 install -d ${D}${sysconfdir}/init.d
29 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/openntpd
33 [ ! -d ${localstatedir}/shared ] && mkdir -p ${localstatedir}/shared
34 grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
35 chown root:root ${localstatedir}/shared/empty
39 grep ntpd ${sysconfdir}/passwd && deluser ntpd
42 INITSCRIPT_NAME = "openntpd"
44 INITSCRIPT_PARAMS = "defaults"