summaryrefslogtreecommitdiff
path: root/ntp/ntp-ssl_4.1.2.oe
blob: dd1072bab203c4d0ca2c27283d34c0ef22522da7 (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
DESCRIPTION = "The Network Time Protocol (NTP) is used to \
synchronize the time of a computer client or server to \
another server or reference time source, such as a radio \
or satellite receiver or modem."
SECTION = "console/network"
PRIORITY = "optional"
DEPENDS = "openssl"
LICENSE = "NTP"

SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV}.tar.gz \
	   file://configure.patch;patch=1 \
	   file://ntpdate"
S = "${WORKDIR}/ntp-${PV}"

inherit autotools

EXTRA_OECONF = "--with-openssl-libdir=${STAGING_LIBDIR} \
	        --with-openssl-incdir=${STAGING_INCDIR}/openssl"
CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"

PACKAGES = "ntpdate ntp"

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
}