packages/ushare: add /etc/config/ushare to conffiles define
[openwrt/svn-archive/archive.git] / utils / bandwidthd / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=bandwidthd
11 PKG_VERSION:=2.0.1
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=@SF/bandwidthd
16 PKG_MD5SUM:=aa79aad7bd489fd2cae1f7dc086ca8b6
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/bandwidthd
21 SECTION:=utils
22 CATEGORY:=Utilities
23 TITLE:=Bandwidthd
24 URL:=http://bandwidthd.sourceforge.net/
25 DEPENDS:=+libgd +libpcap
26 endef
27
28 define Package/bandwidthd/daemon
29 This package contains bandwidthd a bandwith tracking utility.
30 endef
31
32 CONFIGURE_ARGS += \
33 ac_cv_file__sw_lib=no \
34 ac_cv_file__sw_include=no \
35 ac_cv_file__usr_pkg_lib=no \
36 ac_cv_file__usr_pkg_include=no \
37 ac_cv_file__usr_local_pgsql_lib=no \
38 ac_cv_file__usr_local_pgsql_include=no \
39 ac_cv_lib_pq_PQconnectdb=no \
40
41 EXTRA_CFLAGS+= $(TARGET_CPPFLAGS)
42 EXTRA_LDFLAGS+= $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
43
44 define Package/bandwidthd/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bandwidthd $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/config
48 $(INSTALL_DATA) ./files/bandwidthd.config $(1)/etc/config/bandwidthd
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/bandwidthd.init $(1)/etc/init.d/bandwidthd
51 $(INSTALL_DIR) $(1)/www
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/htdocs/legend.gif $(1)/www/
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/htdocs/logo.gif $(1)/www/
54 endef
55
56 $(eval $(call BuildPackage,bandwidthd))