Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= rrdcollect
  5. PKG_VERSION:= 0.2.10
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 138e21fc9f2de0b8b6c89f1506394ef8
  8. PKG_DESCR:= Round-Robin Database (RRD) collecting daemon
  9. PKG_SECTION:= admin
  10. PKG_DEPENDS:= librrd
  11. PKG_BUILDDEP:= rrdtool
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=rrdcollect/}
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. ifneq (${ADK_PACKAGE_LIBRRD},)
  15. RRDTOOL_LIBS:= -lart_lgpl_2 -lfreetype -lpng
  16. endif
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,RRDCOLLECT,rrdcollect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_ENV+= LIBS="${RRDTOOL_LIBS} -lz" \
  20. ac_cv_func_malloc_0_nonnull=yes
  21. CONFIGURE_ARGS+= --enable-exec \
  22. --without-rrdtool \
  23. --without-libpcre \
  24. --with-librrd
  25. TARGET_CPPFLAGS+= -DSOCKET_COMM
  26. rrdcollect-install:
  27. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
  28. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect \
  29. ${IDIR_RRDCOLLECT}/usr/sbin/
  30. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/etc
  31. ${INSTALL_DATA} ./files/rrdcollect.conf \
  32. ${IDIR_RRDCOLLECT}/etc/
  33. include ${TOPDIR}/mk/pkg-bottom.mk