summaryrefslogtreecommitdiff
path: root/package/rrdcollect/Makefile
blob: 3eb98204fb0dde2da4bac13399f08bf6c404aa10 (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
# 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:=		rrdcollect
PKG_VERSION:=		0.2.9
PKG_RELEASE:=		1
PKG_MD5SUM:=		1e94eb0f8d55ebf0f042c10baebc2d3d
PKG_DESCR:=		Round-Robin Database (RRD) collecting daemon
PKG_SECTION:=		admin
PKG_DEPENDS:=		librrd
PKG_BUILDDEP:=		rrdtool
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=rrdcollect/}

ifneq (${ADK_PACKAGE_LIBRRD},)
RRDTOOL_LIBS:=		-lart_lgpl_2 -lfreetype -lpng
endif

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,RRDCOLLECT,rrdcollect,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ENV+=		LIBS="${RRDTOOL_LIBS} -lz" \
			ac_cv_func_malloc_0_nonnull=yes
CONFIGURE_ARGS+=	--enable-exec \
			--without-rrdtool \
			--with-librrd \
			--without-libpcre
TARGET_CPPFLAGS+=	-DSOCKET_COMM

post-install:
	${INSTALL_DIR} ${IDIR_RRDCOLLECT}/usr/sbin
	${INSTALL_BIN} ${WRKINST}/usr/sbin/rrdcollect \
		${IDIR_RRDCOLLECT}/usr/sbin/
	${INSTALL_DIR} ${IDIR_RRDCOLLECT}/etc
	${INSTALL_DATA} ./files/rrdcollect.conf \
		${IDIR_RRDCOLLECT}/etc/

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