Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= collectd
  7. PKG_VERSION:= 4.6.2
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 9eee46a6330780d6e6b41155b159f4f9
  10. MASTER_SITES:= http://verplant.org/collectd/files/
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,COLLECTD,collectd,${PKG_VERSION}-${PKG_RELEASE}))
  13. ifneq (${ADK_PACKAGE_COLLECTD_CPU},y)
  14. DISABLE_CPU:=--disable-cpu
  15. endif
  16. ifneq (${ADK_PACKAGE_COLLECTD_LOAD},y)
  17. DISABLE_LOAD:=--disable-load
  18. endif
  19. ifneq (${ADK_PACKAGE_COLLECTD_MEMORY},y)
  20. DISABLE_MEMORY:=--disable-memory
  21. endif
  22. ifneq (${ADK_PACKAGE_COLLECTD_PING},y)
  23. DISABLE_PING:=--disable-ping
  24. endif
  25. CONFIGURE_STYLE= gnu
  26. CONFIGURE_ARGS+= --disable-apache \
  27. --disable-apcups \
  28. --disable-apple_sensors \
  29. --disable-ascent \
  30. --disable-battery \
  31. ${DISABLE_CPU} \
  32. --disable-cpufreq \
  33. --disable-disk \
  34. --enable-csv \
  35. --disable-df \
  36. --disable-dns \
  37. --disable-email \
  38. --disable-entropy \
  39. --disable-exec \
  40. --disable-hddtemp \
  41. --disable-interface \
  42. --disable-iptables \
  43. --disable-irq \
  44. ${DISABLE_LOAD} \
  45. --disable-mbmon \
  46. --disable-memcached \
  47. ${DISABLE_MEMORY} \
  48. --disable-multimeter \
  49. --disable-mysql \
  50. --disable-postgresql \
  51. --disable-powerdns \
  52. --disable-network \
  53. --disable-nginx \
  54. --disable-nfs \
  55. --disable-ntpd \
  56. --disable-nut \
  57. --disable-perl \
  58. ${DISABLE_PING} \
  59. --disable-processes \
  60. --disable-sensors \
  61. --disable-serial \
  62. --disable-logfile \
  63. --disable-swap \
  64. --disable-syslog \
  65. --disable-tape \
  66. --disable-teamspeak2 \
  67. --disable-thermal \
  68. --disable-unixsock \
  69. --disable-users \
  70. --disable-vserver \
  71. --enable-wireless \
  72. --with-fp-layout=nothing \
  73. --with-nan-emulation
  74. XAKE_FLAGS+= LIBS='-lm'
  75. BUILD_STYLE= auto
  76. INSTALL_STYLE= auto
  77. post-install:
  78. ${INSTALL_DIR} ${IDIR_COLLECTD}/etc/init.d
  79. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/sbin
  80. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd
  81. ${INSTALL_BIN} ./files/collectd.init \
  82. ${IDIR_COLLECTD}/etc/init.d/collectd
  83. ${CP} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
  84. ${CP} ${WRKINST}/usr/lib/collectd/*.so ${IDIR_COLLECTD}/usr/lib/collectd/
  85. include ${TOPDIR}/mk/pkg-bottom.mk