Makefile 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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:= collectd
  5. PKG_VERSION:= 5.4.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d4176b3066f3b85d85343d3648ea43f6
  8. PKG_DESCR:= System statistics collection daemon
  9. PKG_SECTION:= misc
  10. PKG_BUILDDEP:= libtool
  11. PKG_DEPENDS:= libpthread libltdl
  12. PKG_URL:= http://collectd.org/
  13. PKG_SITES:= http://collectd.org/files/
  14. PKG_FLAVOURS_COLLECTD:= WITH_CPU WITH_LOAD WITH_MEMORY WITH_PING
  15. PKG_FLAVOURS_COLLECTD+= WITH_RRD
  16. PKGFD_WITH_RRD:= enable RRD output
  17. PKGFB_WITH_RRD:= rrdtool
  18. PKGFS_WITH_RRD:= librrd
  19. PKGFD_WITH_CPU:= collect CPU statistics
  20. PKGFD_WITH_LOAD:= collect system load statistics
  21. PKGFD_WITH_MEMORY:= collect memory usage statistics
  22. PKGFD_WITH_PING:= enable ping statistic plugin
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,COLLECTD,collectd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. ifneq (${ADK_PACKAGE_COLLECTD_WITH_CPU},y)
  26. DISABLE_CPU:=--disable-cpu
  27. endif
  28. ifneq (${ADK_PACKAGE_COLLECTD_WITH_LOAD},y)
  29. DISABLE_LOAD:=--disable-load
  30. endif
  31. ifneq (${ADK_PACKAGE_COLLECTD_WITH_MEMORY},y)
  32. DISABLE_MEMORY:=--disable-memory
  33. endif
  34. ifneq (${ADK_PACKAGE_COLLECTD_WITH_PING},y)
  35. DISABLE_PING:=--disable-ping
  36. endif
  37. CONFIGURE_ARGS+= --disable-aggregation \
  38. --disable-apache \
  39. --disable-apcups \
  40. --disable-apple_sensors \
  41. --disable-ascent \
  42. --disable-battery \
  43. --disable-cgroups \
  44. --disable-conntrack \
  45. ${DISABLE_CPU} \
  46. --disable-cpufreq \
  47. --disable-contextswitch \
  48. --disable-disk \
  49. --enable-csv \
  50. --disable-df \
  51. --disable-dns \
  52. --disable-email \
  53. --disable-entropy \
  54. --disable-ethstat \
  55. --disable-exec \
  56. --disable-filecount \
  57. --disable-fscache \
  58. --disable-hddtemp \
  59. --disable-interface \
  60. --disable-iptables \
  61. --disable-ipvs \
  62. --disable-irq \
  63. ${DISABLE_LOAD} \
  64. --disable-madwifi \
  65. --disable-mbmon \
  66. --disable-md \
  67. --disable-memcached \
  68. ${DISABLE_MEMORY} \
  69. --disable-multimeter \
  70. --disable-mysql \
  71. --disable-network \
  72. --disable-nginx \
  73. --disable-nfs \
  74. --disable-ntpd \
  75. --disable-numa \
  76. --disable-nut \
  77. --disable-olsrd \
  78. --disable-openvpn \
  79. --disable-python \
  80. --disable-postgresql \
  81. --disable-powerdns \
  82. --disable-perl \
  83. ${DISABLE_PING} \
  84. --disable-processes \
  85. --disable-protocols \
  86. --disable-sensors \
  87. --disable-serial \
  88. --disable-logfile \
  89. --disable-statsd \
  90. --disable-swap \
  91. --enable-syslog \
  92. --disable-tape \
  93. --disable-target_notification \
  94. --disable-target_replace \
  95. --disable-target_set \
  96. --disable-tcpconns \
  97. --disable-teamspeak2 \
  98. --disable-ted \
  99. --disable-thermal \
  100. --disable-unixsock \
  101. --disable-users \
  102. --disable-uptime \
  103. --disable-uuid \
  104. --disable-vserver \
  105. --disable-wireless \
  106. --disable-write_graphite \
  107. --disable-write_http \
  108. --with-fp-layout=nothing \
  109. --without-java \
  110. --without-python \
  111. --without-libiptc \
  112. --with-nan-emulation
  113. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  114. XAKE_FLAGS+= LIBS='-lm -lltdl'
  115. collectd-install:
  116. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/lib/collectd \
  117. ${IDIR_COLLECTD}/usr/sbin ${IDIR_COLLECTD}/etc
  118. ${INSTALL_DIR} ${IDIR_COLLECTD}/usr/share/collectd
  119. ${CP} ${WRKINST}/usr/share/collectd/types.db \
  120. ${IDIR_COLLECTD}/usr/share/collectd
  121. ${INSTALL_BIN} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin
  122. ${CP} ${WRKINST}/usr/lib/collectd/*.so \
  123. ${IDIR_COLLECTD}/usr/lib/collectd
  124. ${INSTALL_DATA} ./files/collectd.conf \
  125. ${IDIR_COLLECTD}/etc
  126. include ${TOPDIR}/mk/pkg-bottom.mk