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/${P}.tar.gz \
10 file://adjtimex-${PV}.patch;patch=1 \
13 S = "${WORKDIR}/openntpd-${PV}"
15 inherit autotools update-rc.d
17 EXTRA_OECONF += "CFLAGS=-DUSE_ADJTIMEX --disable-strip --prefix=/usr \
18 --sysconfdir=/etc --with-privsep-path=/${localstatedir}/shared/empty \
19 --with-privsep-user=ntpd \
20 --with-builtin-arc4random \
23 do_install_prepend() {
24 install -d ${D}${sysconfdir}/init.d
27 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/openntpd
31 [ ! -d ${localstatedir}/shared ] && mkdir -p ${localstatedir}/shared
32 grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd
33 chown root:root ${localstatedir}/shared/empty
37 grep ntpd ${sysconfdir}/passwd && deluser ntpd
40 INITSCRIPT_NAME = "openntpd"
42 INITSCRIPT_PARAMS = "defaults"