imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / ntpclient / Makefile
blob42610d97197a98ef58d62f6d8285097b8c0274a4
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
6 PKG_NAME:= ntpclient
7 PKG_VERSION:= 2010_365
8 PKG_RELEASE:= 2
9 PKG_HASH:= 9ad9b028385082fb804167f464e2db0a0b3d33780acd399327e64898b8fcfddd
10 PKG_DESCR:= client for setting system time from ntp servers
11 PKG_SECTION:= net/ntp
12 PKG_NEEDS:= threads
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}))
31 CONFIG_STYLE:= manual
32 INSTALL_STYLE:= manual
34 MAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}'
35 ALL_TARGET:=
37 do-install:
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
45 endif
47 include ${ADK_TOPDIR}/mk/pkg-bottom.mk