3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=5e4305c612bc3cccbaf802c275c81a11
10 PKG_SOURCE_URL
:=@SF
/rrdcollect
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,RRDCOLLECT
,rrdcollect
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS) -DSOCKET_COMM" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
27 LIBS
="-lart_lgpl_2 -lfreetype -lpng -lz" \
28 PKG_CONFIG_PATH
="$(STAGING_DIR)/usr/lib/pkgconfig" \
29 ac_cv_func_malloc_0_nonnull
=yes \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
40 --libexecdir
=/usr
/lib \
42 --datadir=/usr
/share \
43 --localstatedir
=/var \
47 $(DISABLE_LARGEFILE
) \
58 $(PKG_BUILD_DIR
)/.built
:
59 rm -rf
$(PKG_INSTALL_DIR
)
60 mkdir
-p
$(PKG_INSTALL_DIR
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 DESTDIR
="$(PKG_INSTALL_DIR)" \
67 install -d
-m0755
$(IDIR_RRDCOLLECT
)/etc
68 install -m0644 .
/files
/rrdcollect.conf
$(IDIR_RRDCOLLECT
)/etc
69 install -d
-m0755
$(IDIR_RRDCOLLECT
)/etc
/init.d
70 install -m0755 .
/files
/rrdcollect.init
$(IDIR_RRDCOLLECT
)/etc
/init.d
/rrdcollect
71 ln
-sf rrdcollect
$(IDIR_RRDCOLLECT
)/etc
/init.d
/S98rrdcollect
72 install -d
-m0755
$(IDIR_RRDCOLLECT
)/usr
/sbin
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/rrdcollect
$(IDIR_RRDCOLLECT
)/usr
/sbin
/
74 $(RSTRIP
) $(IDIR_RRDCOLLECT
)
75 $(IPKG_BUILD
) $(IDIR_RRDCOLLECT
) $(PACKAGE_DIR
)