1
0

Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.3
  6. PKG_RELEASE:= 8
  7. PKG_MD5SUM:= 5e4305c612bc3cccbaf802c275c81a11
  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. ifneq (${ADK_PACKAGE_LIBRRD},)
  14. RRDTOOL_LIBS:=-lart_lgpl_2 -lfreetype -lpng
  15. endif
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,RRDCOLLECT,rrdcollect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,RRDCOLLECT_EXAMPLE,rrdcollect-example,${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. --with-librrd \
  24. --without-libpcre \
  25. --without-libpcap
  26. TCFLAGS+= -DSOCKET_COMM
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
  29. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect \
  30. ${IDIR_RRDCOLLECT}/usr/sbin/
  31. ${INSTALL_DIR} ${IDIR_RRDCOLLECT_EXAMPLE}/etc
  32. ${INSTALL_DATA} ./files/rrd.conf ./files/rrdcollect.conf \
  33. ${IDIR_RRDCOLLECT_EXAMPLE}/etc/
  34. ${INSTALL_DIR} ${IDIR_RRDCOLLECT_EXAMPLE}/usr/bin
  35. ${INSTALL_BIN} ./files/rrd.sh ${IDIR_RRDCOLLECT_EXAMPLE}/usr/bin/
  36. ${INSTALL_DIR} ${IDIR_RRDCOLLECT_EXAMPLE}/www/cgi-bin
  37. ln -sf /var/lib/rrdcollect/rrd.cgi \
  38. ${IDIR_RRDCOLLECT_EXAMPLE}/www/cgi-bin/rrd.cgi
  39. ln -sf /var/lib/rrdcollect/img ${IDIR_RRDCOLLECT_EXAMPLE}/www/img
  40. include ${TOPDIR}/mk/pkg-bottom.mk