Remove broken patch which was causing the path to be incremented as well as the file...
[openwrt/svn-archive/archive.git] / utils / bandwidthd / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 11018 2008-05-03 12:11:35Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=bandwidthd
12 PKG_VERSION:=2.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=@SF/bandwidthd
17 PKG_MD5SUM:=aa79aad7bd489fd2cae1f7dc086ca8b6
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/bandwidthd
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Bandwidthd
25 URL:=http://bandwidthd.sourceforge.net/
26 DEPENDS:=+libpng +libgd +libpcap
27 endef
28
29 define Package/bandwidthd/daemon
30 This package contains bandwidthd a bandwith tracking utility.
31 endef
32
33 CONFIGURE_ARGS += \
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
41 EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
42 EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -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 endef
54
55 $(eval $(call BuildPackage,bandwidthd))