--- /dev/null
+#
+# 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))
--- /dev/null
+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<MAX_QDEV;i++) if (_qdev[i]) hook_iptables(_qdev[i]);
+
+diff -urN dsl_qos_queue/makefile dsl_qos_queue.new/makefile
+--- dsl_qos_queue/makefile 2004-12-15 03:10:45.000000000 +0100
++++ dsl_qos_queue.new/makefile 2006-08-18 22:20:48.000000000 +0200
+@@ -4,14 +4,14 @@
+ all: dsl_qos_queue dsl_qos_train
+ clean:
+ rm *.o
+-dsl_qos_queue: dsl_qos_queue.o daemon.o $(LIBIPQ)
+- $(CC) -o dsl_qos_queue dsl_qos_queue.o daemon.o -lipq
++dsl_qos_queue: dsl_qos_queue.o daemon.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o dsl_qos_queue dsl_qos_queue.o daemon.o -lipq
+ dsl_qos_queue.o: dsl_qos_queue.c
+- $(CC) -c dsl_qos_queue.c
++ $(CC) $(CFLAGS) -c dsl_qos_queue.c
+ daemon.o: daemon.c
+- $(CC) -c daemon.c
++ $(CC) $(CFLAGS) -c daemon.c
+
+ dsl_qos_train: dsl_qos_train.o
+- $(CC) -o dsl_qos_train dsl_qos_train.o
++ $(CC) $(CFLAGS) -o dsl_qos_train dsl_qos_train.o
+ dsl_qos_train.o: dsl_qos_train.c
+- $(CC) -c dsl_qos_train.c
++ $(CC) $(CFLAGS) -c dsl_qos_train.c