From 5868e54081b22972a92f140a60736bf25bec7f29 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 18 Aug 2006 21:04:24 +0000 Subject: [PATCH] Add dsl-qos-queue to -ng and whiterussian, closes #690 SVN-Revision: 4602 --- net/dsl-qos-queue/Makefile | 48 +++++++++++++++++++ .../patches/01-cross_compile.patch | 42 ++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 net/dsl-qos-queue/Makefile create mode 100644 net/dsl-qos-queue/patches/01-cross_compile.patch diff --git a/net/dsl-qos-queue/Makefile b/net/dsl-qos-queue/Makefile new file mode 100644 index 0000000000..0d462aaffb --- /dev/null +++ b/net/dsl-qos-queue/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=dsl_qos_queue +PKG_VERSION:=0.9.3 +PKG_RELEASE:=1 +PKG_MD5SUM:=ccbe8d28c3508c67f669fe98532533be + +PKG_SOURCE_URL:=http://www.sonicspike.net/software/download/ +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) + +include $(INCLUDE_DIR)/package.mk + +define Package/dsl-qos-queue + SECTION:=net + CATEGORY:=Network + DEPENDS:=+iptables +kmod-ipt-queue + TITLE:=ADSL/ATM Bandwith management + DESCRIPTION:=ADSL/ATM Bandwith management +endef + +define Build/Compile +$(call Build/Compile/Default,CC=$(TARGET_CC) \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ + install_prefix="$(PKG_INSTALL_DIR)" \ + all) +endef + +define Package/dsl-qos-queue/install + install -d -m0755 $(1)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/ + install -m0755 $(PKG_BUILD_DIR)/dsl_qos_train $(1)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/ipt_rules $(1)/usr/sbin +endef + +$(eval $(call BuildPackage,dsl-qos-queue)) diff --git a/net/dsl-qos-queue/patches/01-cross_compile.patch b/net/dsl-qos-queue/patches/01-cross_compile.patch new file mode 100644 index 0000000000..b124b27a90 --- /dev/null +++ b/net/dsl-qos-queue/patches/01-cross_compile.patch @@ -0,0 +1,42 @@ +diff -urN dsl_qos_queue/dsl_qos_queue.c dsl_qos_queue.new/dsl_qos_queue.c +--- dsl_qos_queue/dsl_qos_queue.c 2006-03-28 20:48:18.000000000 +0200 ++++ dsl_qos_queue.new/dsl_qos_queue.c 2006-08-18 22:14:12.000000000 +0200 +@@ -552,12 +552,12 @@ + + syslog(LOG_INFO, "setup()"); + +- rval=system("modprobe ip_queue"); ++/* rval=system("modprobe ip_queue"); + if (WEXITSTATUS(rval)!=0) + { + printf("Unable to install ip_queue module.\n"); + exit(1); +- } ++ }*/ + + for (i=0;i