Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. PKG_SUBPKGS:= RRDCOLLECT RRDCOLLECT_EXAMPLE
  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. $(eval $(call PKG_template,RRDCOLLECT_EXAMPLE,rrdcollect-example,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIGURE_ENV+= LIBS="${RRDTOOL_LIBS} -lz" \
  21. ac_cv_func_malloc_0_nonnull=yes
  22. CONFIGURE_ARGS+= --enable-exec \
  23. --without-rrdtool \
  24. --with-librrd \
  25. --without-libpcre \
  26. --without-libpcap
  27. TCFLAGS+= -DSOCKET_COMM
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
  30. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect \
  31. ${IDIR_RRDCOLLECT}/usr/sbin/
  32. ${INSTALL_DIR} ${IDIR_RRDCOLLECT_EXAMPLE}/etc
  33. ${INSTALL_DATA} ./files/rrd.conf ./files/rrdcollect.conf \
  34. ${IDIR_RRDCOLLECT_EXAMPLE}/etc/
  35. ${INSTALL_DIR} ${IDIR_RRDCOLLECT_EXAMPLE}/usr/bin
  36. ${INSTALL_BIN} ./files/rrd.sh ${IDIR_RRDCOLLECT_EXAMPLE}/usr/bin/
  37. ${INSTALL_DIR} ${IDIR_RRDCOLLECT_EXAMPLE}/www/cgi-bin
  38. ln -sf /var/lib/rrdcollect/rrd.cgi \
  39. ${IDIR_RRDCOLLECT_EXAMPLE}/www/cgi-bin/rrd.cgi
  40. ln -sf /var/lib/rrdcollect/img ${IDIR_RRDCOLLECT_EXAMPLE}/www/img
  41. include ${TOPDIR}/mk/pkg-bottom.mk