replace lots of manual install commands with INSTALL_* variables
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dsl-qos-queue
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+iptables +kmod-ipt-queue
28 TITLE:=ADSL/ATM Bandwith management
29 endef
30
31 define Build/Configure
32 endef
33
34 define Build/Compile
35 $(call Build/Compile/Default, \
36 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
37 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
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))