Makefile 1.7 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 ${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_SITES:= ${MASTER_SITE_SOURCEFORGE:=rrdcollect/}
  12. ifneq (${ADK_PACKAGE_LIBRRD},)
  13. RRDTOOL_LIBS:=-lart_lgpl_2 -lfreetype -lpng
  14. endif
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,RRDCOLLECT,rrdcollect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,RRDCOLLECT_EXAMPLE,rrdcollect-example,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIGURE_STYLE:= gnu
  19. CONFIGURE_ENV+= LIBS="${RRDTOOL_LIBS} -lz" ac_cv_func_malloc_0_nonnull=yes
  20. CONFIGURE_ARGS+= --enable-exec \
  21. --without-rrdtool \
  22. --with-librrd \
  23. --without-libpcre \
  24. --without-libpcap
  25. TCFLAGS+= -DSOCKET_COMM
  26. BUILD_STYLE:= auto
  27. INSTALL_STYLE:= auto
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
  30. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect ${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 ${IDIR_RRDCOLLECT_EXAMPLE}/www/cgi-bin/rrd.cgi
  38. ln -sf /var/lib/rrdcollect/img ${IDIR_RRDCOLLECT_EXAMPLE}/www/img
  39. include ${TOPDIR}/mk/pkg-bottom.mk