summaryrefslogtreecommitdiff
path: root/package/cbtt
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/cbtt
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/cbtt')
-rw-r--r--package/cbtt/Makefile22
-rw-r--r--package/cbtt/ipkg/cbtt-mysql.control5
-rw-r--r--package/cbtt/ipkg/cbtt.control5
3 files changed, 19 insertions, 13 deletions
diff --git a/package/cbtt/Makefile b/package/cbtt/Makefile
index ec6ee34bd..db4a582a4 100644
--- a/package/cbtt/Makefile
+++ b/package/cbtt/Makefile
@@ -9,14 +9,30 @@ PKG_NAME:= cbtt
PKG_VERSION:= 20060211
PKG_RELEASE:= 1
PKG_MD5SUM:= 19abea2817c49ccc9438e9671c402984
+PKG_DESCR:= Bittorrent tracker
+PKG_SECTION:= net
+PKG_DEPENDS:= zlib
+PKG_URL:= http://bnbtusermods.sourceforge.net
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=bnbtusermods/}
+
+PKG_DESCR_1:= Bittorrent tracker with mysql support
+PKG_DEPENDS_1:= ${PKG_DEPENDS} libmysqlclient
+
DISTFILES:= ${PKG_NAME}80-${PKG_VERSION}-src.tar.gz
-MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=bnbtusermods/}
WRKDIST= ${WRKDIR}/${PKG_NAME}80-${PKG_VERSION}-src
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,CBTT,cbtt,${PKG_VERSION}-${PKG_RELEASE}))
-$(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,${PKG_VERSION}-${PKG_RELEASE}))
+ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
+PKG_DEPENDS+= uclibc++
+PKG_DEPENDS_1+= uclibc++
+else
+PKG_DEPENDS+= libstdcxx
+PKG_DEPENDS_1+= libstdcxx
+endif
+
+$(eval $(call PKG_template,CBTT,cbtt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION}))
BUILD_STYLE= auto
TLDFLAGS+= -shared -L. -L${STAGING_DIR}/usr/lib/mysql \
diff --git a/package/cbtt/ipkg/cbtt-mysql.control b/package/cbtt/ipkg/cbtt-mysql.control
deleted file mode 100644
index ef8b52a32..000000000
--- a/package/cbtt/ipkg/cbtt-mysql.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: cbtt-mysql
-Priority: optional
-Section: net
-Depends: zlib, libmysqlclient, uclibc++
-Description: Bittorrent tracker with mysql support
diff --git a/package/cbtt/ipkg/cbtt.control b/package/cbtt/ipkg/cbtt.control
deleted file mode 100644
index bc8b844ad..000000000
--- a/package/cbtt/ipkg/cbtt.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: cbtt
-Priority: optional
-Section: net
-Depends: zlib, uclibc++
-Description: Bittorrent tracker