2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 11018 2008-05-03 12:11:35Z nico $
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
16 PKG_SOURCE_URL
:=@SF
/bandwidthd
17 PKG_MD5SUM
:=aa79aad7bd489fd2cae1f7dc086ca8b6
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/bandwidthd
25 URL
:=http
://bandwidthd.sourceforge.net
/
26 DEPENDS
:=+libpng
+libgd
+libpcap
29 define Package
/bandwidthd
/daemon
30 This package contains bandwidthd a bandwith tracking utility.
34 ac_cv_file__sw_lib
=no \
35 ac_cv_file__sw_include
=no \
36 ac_cv_file__usr_pkg_lib
=no \
37 ac_cv_file__usr_pkg_include
=no \
38 ac_cv_file__usr_local_pgsql_lib
=no \
39 ac_cv_file__usr_local_pgsql_include
=no \
40 ac_cv_lib_pq_PQconnectdb
=no \
42 EXTRA_CFLAGS
+=-I
$(STAGING_DIR
)/usr
/include -I
$(STAGING_DIR
)/include
43 EXTRA_LDFLAGS
+=-L
$(STAGING_DIR
)/usr
/lib
-Wl
,-rpath-link
,$(STAGING_DIR
)/usr
/lib
45 define Package
/bandwidthd
/install
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bandwidthd
$(1)/usr
/sbin
/
48 $(INSTALL_DIR
) $(1)/etc
/config
49 $(INSTALL_DATA
) .
/files
/bandwidthd.config
$(1)/etc
/config
/bandwidthd
50 $(INSTALL_DIR
) $(1)/etc
/init.d
51 $(INSTALL_BIN
) .
/files
/bandwidthd.init
$(1)/etc
/init.d
/bandwidthd
52 $(INSTALL_DIR
) $(1)/www
53 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/htdocs
/legend.gif
$(1)/www
/
56 $(eval
$(call BuildPackage
,bandwidthd
))