99a2d3e98e5c8a4ed8de72440a6687ee9bc3b1b4
[openwrt/svn-archive/archive.git] / net / dsl-qos-queue / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=dsl_qos_queue
11 PKG_VERSION:=0.9.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.sonicspike.net/software/download/
16 PKG_MD5SUM:=ccbe8d28c3508c67f669fe98532533be
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/dsl-qos-queue
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+iptables +kmod-ipt-queue +iptables-mod-ipopt @!LINUX_2_6_25 @!LINUX_2_6_26 @!LINUX_2_6_27 @!LINUX_2_6_28
26 TITLE:=ADSL/ATM Bandwith management
27 URL:=http://www.sonicspike.net/software/
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/libipq $(TARGET_CPPFLAGS)" \
36 LDFLAGS="$(TARGET_LDFLAGS)" \
37 LIBIPQ=$(STAGING_DIR)/usr/lib/libipq.a \
38 all \
39 )
40 endef
41
42 define Package/dsl-qos-queue/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dsl_qos_train $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipt_rules $(1)/usr/sbin
47 endef
48
49 $(eval $(call BuildPackage,dsl-qos-queue))