#
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2007-2011 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:=wshaper
-PKG_VERSION:=0.1
+PKG_VERSION:=0.2
+PKG_RELEASE:=2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
DEPENDS:=+kmod-sched +tc
TITLE:=wshaper
URL:=http://lartc.org/wondershaper/
+ PKGARCH:=all
endef
define Package/wshaper/description
endef
define Package/wshaper/install
- $(INSTALL_DIR) $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/usr/sbin/ $(1)/etc/init.d $(1)/etc/config
$(INSTALL_BIN) ./files/wshaper.htb $(1)/usr/sbin/
$(INSTALL_BIN) ./files/wshaper.init $(1)/etc/init.d/wshaper
+ $(INSTALL_DATA) ./files/wshaper.config $(1)/etc/config/wshaper
+endef
+
+define Package/wshaper/conffiles
+/etc/config/wshaper
endef
$(eval $(call BuildPackage,wshaper))