Makefile 3.9 KB

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