1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 9ad9b028385082fb804167f464e2db0a0b3d33780acd399327e64898b8fcfddd
10 PKG_DESCR
:= client for setting system time from ntp servers
13 PKG_URL
:= http
://doolittle.icarus.com
/ntpclient
/
14 PKG_SITES
:= http
://doolittle.icarus.com
/ntpclient
/
16 DISTFILES
:= ${PKG_NAME}_
${PKG_VERSION}.
tar.gz
17 WRKDIST
= ${WRKDIR}/${PKG_NAME}-2010
19 PKG_FLAVOURS_NTPCLIENT
:= STARTUP
20 PKGFD_STARTUP
:= Fetch time on startup
22 PKG_FLAVOURS_STRING_NTPCLIENT
:= HOST
23 PKGFD_HOST
:= Fetch time from this NTP host
24 PKGFX_HOST
:= ptbtime1.ptb.de
25 PKGFC_HOST
:= depends on ADK_PACKAGE_NTPCLIENT_STARTUP
27 include ${ADK_TOPDIR}/mk
/package.mk
29 $(eval
$(call PKG_template
,NTPCLIENT
,ntpclient
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
32 INSTALL_STYLE
:= manual
34 MAKE_FLAGS
+= CC
='${TARGET_CC}' CFLAGS
='${TARGET_CFLAGS}'
38 ${INSTALL_DIR} ${IDIR_NTPCLIENT}/usr
/sbin
39 ${INSTALL_BIN} ${WRKBUILD}/ntpclient
${IDIR_NTPCLIENT}/usr
/sbin
/
41 ifeq (${ADK_PACKAGE_NTPCLIENT_STARTUP},y
)
42 ${INSTALL_DIR} ${IDIR_NTPCLIENT}/etc
/init.d
43 touch
${IDIR_NTPCLIENT}/etc
/init.d
/ntpclient
44 echo
-e
"#!/bin/sh\n#INIT 91\nntpclient -h ${ADK_PACKAGE_NTPCLIENT_HOST} -s\nexit 0" > ${IDIR_NTPCLIENT}/etc
/init.d
/ntpclient
47 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk