summaryrefslogtreecommitdiff
path: root/package/wondershaper
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
commitba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch)
tree10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/wondershaper
parentbbd610f15a71b27c955175cb98392b114717fd47 (diff)
optimize ipkg package management
- generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig
Diffstat (limited to 'package/wondershaper')
-rw-r--r--package/wondershaper/Makefile12
-rw-r--r--package/wondershaper/files/wondershaper.conffiles (renamed from package/wondershaper/ipkg/wondershaper.conffiles)0
-rw-r--r--package/wondershaper/files/wondershaper.init3
-rw-r--r--package/wondershaper/files/wondershaper.postinst (renamed from package/wondershaper/ipkg/wondershaper.postinst)0
-rw-r--r--package/wondershaper/ipkg/wondershaper.control5
5 files changed, 8 insertions, 12 deletions
diff --git a/package/wondershaper/Makefile b/package/wondershaper/Makefile
index 12fd46ea5..fe0479e81 100644
--- a/package/wondershaper/Makefile
+++ b/package/wondershaper/Makefile
@@ -9,18 +9,18 @@ PKG_NAME:= wondershaper
PKG_VERSION:= 1.1a
PKG_RELEASE:= 7
PKG_MD5SUM:= bbc5a3a4485ab286e337ce8550e7b990
-MASTER_SITES:= http://lartc.org/wondershaper/
+PKG_DESCR:= WonderShaper is a tc based traffic shaping tool.
+PKG_SECTION:= net
+PKG_URL:= http://lartc.org/wondershaper
+PKG_SITES:= http://lartc.org/wondershaper/
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,WONDERSHAPER,wondershaper,${PKG_VERSION}-${PKG_RELEASE}))
+$(eval $(call PKG_template,WONDERSHAPER,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
do-install:
- ${INSTALL_DIR} ${IDIR_WONDERSHAPER}/usr/sbin/
- ${INSTALL_DIR} ${IDIR_WONDERSHAPER}/etc/init.d/
+ ${INSTALL_DIR} ${IDIR_WONDERSHAPER}/usr/sbin ${IDIR_WONDERSHAPER}/etc
${INSTALL_BIN} ${WRKBUILD}/wshaper.htb ${IDIR_WONDERSHAPER}/usr/sbin/wshaper
${INSTALL_DATA} ${WRKBUILD}/wshaper.conf ${IDIR_WONDERSHAPER}/etc/
- $(INSTALL_BIN) ./files/wondershaper.init \
- $(IDIR_WONDERSHAPER)/etc/init.d/wondershaper
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/wondershaper/ipkg/wondershaper.conffiles b/package/wondershaper/files/wondershaper.conffiles
index 14e366cc9..14e366cc9 100644
--- a/package/wondershaper/ipkg/wondershaper.conffiles
+++ b/package/wondershaper/files/wondershaper.conffiles
diff --git a/package/wondershaper/files/wondershaper.init b/package/wondershaper/files/wondershaper.init
index ec5c36e76..39d846bd5 100644
--- a/package/wondershaper/files/wondershaper.init
+++ b/package/wondershaper/files/wondershaper.init
@@ -1,5 +1,6 @@
#!/bin/sh
-#FWINIT 80
+#PKG wondershaper
+#INIT 80
. /etc/rc.conf
case $1 in
diff --git a/package/wondershaper/ipkg/wondershaper.postinst b/package/wondershaper/files/wondershaper.postinst
index 6e6c384a0..6e6c384a0 100644
--- a/package/wondershaper/ipkg/wondershaper.postinst
+++ b/package/wondershaper/files/wondershaper.postinst
diff --git a/package/wondershaper/ipkg/wondershaper.control b/package/wondershaper/ipkg/wondershaper.control
deleted file mode 100644
index d90c7bb6f..000000000
--- a/package/wondershaper/ipkg/wondershaper.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: wondershaper
-Priority: optional
-Section: net
-Depends: tc
-Description: WonderShaper is a tc based traffic shaping tool.