From ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Sat, 30 May 2009 20:39:07 +0200
Subject: 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
---
 package/bc/Makefile        | 9 ++++++---
 package/bc/ipkg/bc.control | 4 ----
 package/bc/ipkg/dc.control | 4 ----
 3 files changed, 6 insertions(+), 11 deletions(-)
 delete mode 100644 package/bc/ipkg/bc.control
 delete mode 100644 package/bc/ipkg/dc.control

(limited to 'package/bc')

diff --git a/package/bc/Makefile b/package/bc/Makefile
index 63f91c284..f70adad9f 100644
--- a/package/bc/Makefile
+++ b/package/bc/Makefile
@@ -9,12 +9,15 @@ PKG_NAME:=		bc
 PKG_VERSION:=		1.06
 PKG_RELEASE:=		1
 PKG_MD5SUM:=		d44b5dddebd8a7a7309aea6c36fda117
-MASTER_SITES:=		http://ftp.gnu.org/pub/gnu/bc/
+PKG_DESCR:=		An arbitrary precision calculator language
+PKG_SECTION:=		util
+PKG_URL:=		http://www.gnu.org/software/bc
+PKG_SITES:=		http://ftp.gnu.org/pub/gnu/bc/
 
 include ${TOPDIR}/mk/package.mk
 
-$(eval $(call PKG_template,BC,bc,${PKG_VERSION}-${PKG_RELEASE}))
-$(eval $(call PKG_template,DC,dc,${PKG_VERSION}-${PKG_RELEASE}))
+$(eval $(call PKG_template,BC,bc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,DC,dc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 CONFIGURE_STYLE=	gnu
 BUILD_STYLE=		auto
diff --git a/package/bc/ipkg/bc.control b/package/bc/ipkg/bc.control
deleted file mode 100644
index e22ed5b7c..000000000
--- a/package/bc/ipkg/bc.control
+++ /dev/null
@@ -1,4 +0,0 @@
-Package: bc
-Priority: optional
-Section: util
-Description: An arbitrary precision calculator language
diff --git a/package/bc/ipkg/dc.control b/package/bc/ipkg/dc.control
deleted file mode 100644
index 1ef852500..000000000
--- a/package/bc/ipkg/dc.control
+++ /dev/null
@@ -1,4 +0,0 @@
-Package: dc
-Priority: optional
-Section: util
-Description: An arbitrary precision calculator
-- 
cgit v1.2.3