Makefile 1018 B

123456789101112131415161718192021222324252627282930313233
  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:= watchdog
  5. PKG_VERSION:= 5.13
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 153455f008f1cf8f65f6ad9586a21ff1
  8. PKG_DESCR:= watchdog daemon
  9. PKG_SECTION:= sys/hw
  10. PKG_DEPENDS:= libtirpc
  11. PKG_BUILDDEP:= libtirpc
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=watchdog/}
  13. PKG_BB:= 1
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,WATCHDOG,watchdog,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  18. TARGET_CFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/tirpc
  19. TARGET_LDFLAGS+= -ltirpc
  20. watchdog-install:
  21. ${INSTALL_DIR} ${IDIR_WATCHDOG}/sbin ${IDIR_WATCHDOG}/etc/
  22. ${INSTALL_DATA} ./files/watchdog.conf ${IDIR_WATCHDOG}/etc/
  23. ${INSTALL_BIN} ${WRKINST}/usr/sbin/watchdog \
  24. ${IDIR_WATCHDOG}/sbin/
  25. include ${ADK_TOPDIR}/mk/pkg-bottom.mk