8ce8c15476d8742709bf5c67a657a13cce347592
[openwrt/svn-archive/archive.git] / net / dsl-qos-queue / Makefile
1 #
2 # Copyright (C) 2006 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dsl_qos_queue
12 PKG_VERSION:=0.9.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.sonicspike.net/software/download/
17 PKG_MD5SUM:=ccbe8d28c3508c67f669fe98532533be
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/dsl-qos-queue
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+iptables +kmod-ipt-queue @!LINUX_2_6_25 @!LINUX_2_6_26
27 TITLE:=ADSL/ATM Bandwith management
28 endef
29
30 define Build/Configure
31 endef
32
33 define Build/Compile
34 $(call Build/Compile/Default, \
35 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
36 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
37 all \
38 )
39 endef
40
41 define Package/dsl-qos-queue/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dsl_qos_train $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt_rules $(1)/usr/sbin
46 endef
47
48 $(eval $(call BuildPackage,dsl-qos-queue))