summaryrefslogtreecommitdiff
path: root/package/bitlbee
diff options
context:
space:
mode:
Diffstat (limited to 'package/bitlbee')
-rw-r--r--package/bitlbee/Config.in15
-rw-r--r--package/bitlbee/Makefile68
-rw-r--r--package/bitlbee/files/bitlbee.init27
-rw-r--r--package/bitlbee/ipkg/bitlbee.conffiles2
-rw-r--r--package/bitlbee/ipkg/bitlbee.control5
-rw-r--r--package/bitlbee/ipkg/bitlbee.postinst3
-rw-r--r--package/bitlbee/patches/patch-configure40
7 files changed, 160 insertions, 0 deletions
diff --git a/package/bitlbee/Config.in b/package/bitlbee/Config.in
new file mode 100644
index 000000000..086b6e800
--- /dev/null
+++ b/package/bitlbee/Config.in
@@ -0,0 +1,15 @@
+config ADK_PACKAGE_BITLBEE
+ prompt "bitlbee........................... IRC gateway to IM chat networks"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBOPENSSL
+ select ADK_PACKAGE_GLIB2
+ select ADK_PACKAGE_LIBICONV
+ help
+
+ BitlBee is an IRC daemon that can talk to instant messaging
+ networks and acts as a gateway. Users can connect to the
+ server with any normal IRC client and see their 'buddy list'
+ in #bitlbee.
+
+ http://www.bitlbee.org/
diff --git a/package/bitlbee/Makefile b/package/bitlbee/Makefile
new file mode 100644
index 000000000..7e08a34a0
--- /dev/null
+++ b/package/bitlbee/Makefile
@@ -0,0 +1,68 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= bitlbee
+PKG_VERSION:= 1.2.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 2b1674d98804970809de3da3edf0bed2
+MASTER_SITES:= http://get.bitlbee.org/src/ \
+ http://get.bitlbee.be/src/ \
+ http://get.us.bitlbee.org/src/ \
+ http://ftp.snt.utwente.nl/pub/software/bitlbee/src/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,BITLBEE,bitlbee,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+ifeq ($(ADK_IPV6),y)
+IPV6+= --ipv6=1
+else
+IPV6+= --ipv6=0
+endif
+
+do-configure:
+ (cd $(WRKBUILD); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ STAGING_DIR="$(STAGING_DIR)" \
+ STRIP="$(STRIP)" \
+ ./configure \
+ --prefix=/usr/ \
+ --bindir=/usr/sbin/ \
+ --etcdir=/etc/bitlbee/ \
+ --datadir=/usr/share/bitlbee/ \
+ --config=/var/lib/bitlbee/ \
+ --arch=Linux \
+ --cpu="${ARCH}" \
+ --debug=0 \
+ --strip=1 \
+ --ssl=openssl \
+ --target=${REAL_GNU_TARGET_NAME} \
+ ${IPV6} \
+ );
+
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+INSTALL_TARGET= install-etc install-bin
+
+post-configure:
+ @echo 'CFLAGS+="-I${STAGING_DIR}/usr/include/iconv"' >> \
+ ${WRKBUILD}/Makefile.settings
+ @echo 'LFLAGS+="-L${STAGING_DIR}/usr/lib/iconv"' >> \
+ ${WRKBUILD}/Makefile.settings
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/bitlbee
+ ${INSTALL_DIR} ${IDIR_BITLBEE}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_BITLBEE}/usr/sbin
+ ${INSTALL_DATA} ${WRKINST}/etc/bitlbee/* ${IDIR_BITLBEE}/etc/bitlbee
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/bitlbee ${IDIR_BITLBEE}/usr/sbin
+ ${INSTALL_BIN} ./files/bitlbee.init \
+ ${IDIR_BITLBEE}/etc/init.d/bitlbee
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/bitlbee/files/bitlbee.init b/package/bitlbee/files/bitlbee.init
new file mode 100644
index 000000000..3ff950a9c
--- /dev/null
+++ b/package/bitlbee/files/bitlbee.init
@@ -0,0 +1,27 @@
+#!/bin/sh
+#FWINIT 80
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${bitlbee:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ mkdir -p /var/lib/bitlbee
+ bitlbee -D
+ ;;
+stop)
+ killall bitlbee
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/bitlbee/ipkg/bitlbee.conffiles b/package/bitlbee/ipkg/bitlbee.conffiles
new file mode 100644
index 000000000..2ccc958d5
--- /dev/null
+++ b/package/bitlbee/ipkg/bitlbee.conffiles
@@ -0,0 +1,2 @@
+/etc/bitlbee/motd.txt
+/etc/bitlbee/bitlbee.conf
diff --git a/package/bitlbee/ipkg/bitlbee.control b/package/bitlbee/ipkg/bitlbee.control
new file mode 100644
index 000000000..37ca895c8
--- /dev/null
+++ b/package/bitlbee/ipkg/bitlbee.control
@@ -0,0 +1,5 @@
+Package: bitlbee
+Priority: optional
+Section: net
+Depends: glib2, libopenssl, libiconv
+Description: IRC gateway to IM chat networks
diff --git a/package/bitlbee/ipkg/bitlbee.postinst b/package/bitlbee/ipkg/bitlbee.postinst
new file mode 100644
index 000000000..a8e3b2ec4
--- /dev/null
+++ b/package/bitlbee/ipkg/bitlbee.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf bitlbee
diff --git a/package/bitlbee/patches/patch-configure b/package/bitlbee/patches/patch-configure
new file mode 100644
index 000000000..9f13c535c
--- /dev/null
+++ b/package/bitlbee/patches/patch-configure
@@ -0,0 +1,40 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- bitlbee-1.2.3.orig/configure 2008-09-06 14:33:13.000000000 +0200
++++ bitlbee-1.2.3/configure 2008-10-08 16:07:32.000000000 +0200
+@@ -19,7 +19,6 @@ libevent='/usr/'
+ pidfile='/var/run/bitlbee.pid'
+ ipcsocket='/var/run/bitlbee.sock'
+ pcdir='$prefix/lib/pkgconfig'
+-systemlibdirs="/lib /usr/lib /usr/local/lib"
+
+ msn=1
+ jabber=1
+@@ -137,12 +136,8 @@ EOF
+
+
+ if [ -n "$target" ]; then
+- PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig
+- export PKG_CONFIG_LIBDIR
+- PATH=/usr/$target/bin:$PATH
+- CC=$target-cc
++ CC=$target-gcc
+ LD=$target-ld
+- systemlibdirs="/usr/$target/lib"
+ fi
+
+
+@@ -348,14 +343,6 @@ fi;
+
+ echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
+
+-for i in $systemlibdirs; do
+- if [ -f $i/libresolv.a ]; then
+- echo '#define HAVE_RESOLV_A' >> config.h
+- echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
+- break
+- fi
+-done
+-
+ STORAGES="text xml"
+
+ if [ "$ldap" = "auto" ]; then