Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= ntpclient
  5. PKG_VERSION:= 2010_365
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= a64689398f2df8933ee0d8da246e9eaa
  8. PKG_DESCR:= client for setting system time from ntp servers
  9. PKG_SECTION:= net/ntp
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://doolittle.icarus.com/ntpclient/
  12. PKG_SITES:= http://doolittle.icarus.com/ntpclient/
  13. DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.tar.gz
  14. WRKDIST= ${WRKDIR}/${PKG_NAME}-2010
  15. PKG_FLAVOURS_NTPCLIENT:= STARTUP
  16. PKGFD_STARTUP:= Fetch time on startup
  17. PKG_FLAVOURS_STRING_NTPCLIENT:= HOST
  18. PKGFD_HOST:= Fetch time from this NTP host
  19. PKGFX_HOST:= pool.ntp.org
  20. PKGFC_HOST:= depends on ADK_PACKAGE_NTPCLIENT_STARTUP
  21. include ${ADK_TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,NTPCLIENT,ntpclient,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. CONFIG_STYLE:= manual
  24. INSTALL_STYLE:= manual
  25. MAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}'
  26. ALL_TARGET:=
  27. do-install:
  28. ${INSTALL_DIR} ${IDIR_NTPCLIENT}/usr/sbin
  29. ${INSTALL_BIN} ${WRKBUILD}/ntpclient ${IDIR_NTPCLIENT}/usr/sbin/
  30. ifeq (${ADK_PACKAGE_NTPCLIENT_STARTUP},y)
  31. ${INSTALL_DIR} ${IDIR_NTPCLIENT}/etc/init.d
  32. touch ${IDIR_NTPCLIENT}/etc/init.d/ntpclient
  33. echo -e "#!/bin/sh\n#INIT 91\nntpclient -h ${ADK_PACKAGE_NTPCLIENT_HOST} -s\nexit 0" > ${IDIR_NTPCLIENT}/etc/init.d/ntpclient
  34. endif
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk