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_BUILDDEP+= rrdtool
  8. PKG_MD5SUM:= 5e4305c612bc3cccbaf802c275c81a11
  9. PKG_DESCR:= Round-Robin Database (RRD) collecting daemon
  10. PKG_SECTION:= admin
  11. PKG_DEPENDS:= librrd
  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_STYLE:= gnu
  20. CONFIGURE_ENV+= LIBS="${RRDTOOL_LIBS} -lz" 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. BUILD_STYLE:= auto
  28. INSTALL_STYLE:= auto
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
  31. ${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect ${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 ${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