summaryrefslogtreecommitdiff
path: root/package/collectd/Makefile
blob: bb31459779bc7cdb74b9fa47485f032f70e553cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		collectd
PKG_VERSION:=		4.7.0
PKG_RELEASE:=		1
PKG_MD5SUM:=		b077e3398bd6fac0e53e9df4794db264
PKG_DESCR:=		System statistics collection daemon
PKG_SECTION:=		console
PKG_DEPENDS:=		libpthread
PKG_URL:=		http://collectd.org
PKG_SITES:=		http://collectd.org/files/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,COLLECTD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

ifneq (${ADK_PACKAGE_COLLECTD_CPU},y)
DISABLE_CPU:=--disable-cpu
endif
ifneq (${ADK_PACKAGE_COLLECTD_LOAD},y)
DISABLE_LOAD:=--disable-load
endif
ifneq (${ADK_PACKAGE_COLLECTD_MEMORY},y)
DISABLE_MEMORY:=--disable-memory
endif
ifneq (${ADK_PACKAGE_COLLECTD_PING},y)
DISABLE_PING:=--disable-ping
endif

CONFIGURE_STYLE=	gnu
CONFIGURE_ARGS+=	--disable-apache \
			--disable-apcups \
			--disable-apple_sensors \
			--disable-ascent \
			--disable-battery \
			${DISABLE_CPU} \
			--disable-cpufreq \
			--disable-disk \
			--enable-csv \
			--disable-df \
			--disable-dns \
			--disable-email \
			--disable-entropy \
			--disable-exec \
			--disable-filecount \
			--disable-fscache \
			--disable-hddtemp \
			--disable-interface \
			--disable-iptables \
			--disable-ipvs \
			--disable-irq \
			${DISABLE_LOAD} \
			--disable-mbmon \
			--disable-memcached \
			${DISABLE_MEMORY} \
			--disable-multimeter \
			--disable-mysql \
			--disable-openvpn \
			--disable-postgresql \
			--disable-powerdns \
			--disable-network \
			--disable-nginx \
			--disable-nfs \
			--disable-ntpd \
			--disable-nut \
			--disable-perl \
			${DISABLE_PING} \
			--disable-processes \
			--disable-sensors \
			--disable-serial \
			--disable-logfile \
			--disable-swap \
			--disable-syslog \
			--disable-tape \
			--disable-target_notification \
			--disable-target_replace \
			--disable-target_set \
			--disable-teamspeak2 \
			--disable-ted \
			--disable-thermal \
			--disable-unixsock \
			--disable-users \
			--disable-vserver \
			--enable-wireless \
			--with-fp-layout=nothing \
			--with-nan-emulation

XAKE_FLAGS+=		LIBS='-lm'
BUILD_STYLE=		auto
INSTALL_STYLE=		auto

post-install:
	${INSTALL_DIR} ${IDIR_COLLECTD}/usr/sbin ${IDIR_COLLECTD}/usr/lib/collectd
	${CP} ${WRKINST}/usr/sbin/collectd ${IDIR_COLLECTD}/usr/sbin/
	${CP} ${WRKINST}/usr/lib/collectd/*.so ${IDIR_COLLECTD}/usr/lib/collectd/

include ${TOPDIR}/mk/pkg-bottom.mk