summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorJason Wever <weeve@gentoo.org>2003-09-10 00:50:04 +0000
committerJason Wever <weeve@gentoo.org>2003-09-10 00:50:04 +0000
commit2b5f5e24298d62e1884eda7d8cb6b98d5f9572c8 (patch)
tree7e388b205902fe17223c456087c5a7b5ac6bf965 /net-im
parentAdded an init script for bitlbeed. (diff)
downloadhistorical-2b5f5e24298d62e1884eda7d8cb6b98d5f9572c8.tar.gz
historical-2b5f5e24298d62e1884eda7d8cb6b98d5f9572c8.tar.bz2
historical-2b5f5e24298d62e1884eda7d8cb6b98d5f9572c8.zip
Added an init script for bitlbeed.
Diffstat (limited to 'net-im')
-rw-r--r--net-im/bitlbee/Manifest6
-rw-r--r--net-im/bitlbee/bitlbee-0.80-r1.ebuild62
-rw-r--r--net-im/bitlbee/files/bitlbeed.confd13
-rw-r--r--net-im/bitlbee/files/bitlbeed.init23
-rw-r--r--net-im/bitlbee/files/digest-bitlbee-0.80-r11
5 files changed, 102 insertions, 3 deletions
diff --git a/net-im/bitlbee/Manifest b/net-im/bitlbee/Manifest
index 8f573f895afb..1e8cf4ec60ab 100644
--- a/net-im/bitlbee/Manifest
+++ b/net-im/bitlbee/Manifest
@@ -1,11 +1,11 @@
-MD5 6b26899d44c13c10f6f82a8420ecc4ac ChangeLog 1957
+MD5 63b3710f680acc21611f2be738c9abb2 ChangeLog 2142
MD5 b870fd31387b2c349eca82cb901b870e bitlbee-0.72.ebuild 1089
MD5 494046f3b577301770f06c6e4bc06c5d bitlbee-0.73-r1.ebuild 1329
MD5 2436faed029fde54669d7c71fda8dd4d bitlbee-0.73.ebuild 1089
MD5 c5dcd7f7f902927880a7e10011bc8f66 bitlbee-0.74a.ebuild 1327
MD5 0395435f5921975e399b54e471ea6541 bitlbee-0.80.ebuild 1305
MD5 fc51bd6f3a89c98a4a447e9b1725e488 metadata.xml 465
-MD5 6e988ea4ee58fa7a5f0d0b0543a8ed5e bitlbee-0.80-r1.ebuild 1450
+MD5 f293f9463c8cd1877e2d98c3ecd6dc0b bitlbee-0.80-r1.ebuild 1450
MD5 9598dbb2b6ea0a29fc0c88a6e86fe5e3 files/bitlbeed.confd 488
MD5 348ecbcec9cf34e7164b0f0189ea5963 files/bitlbee-0.80-xinetd.patch 730
MD5 144e462c0af1d82a3412a237519b32ca files/bitlbee-xinetd.patch 519
@@ -14,5 +14,5 @@ MD5 208f8bc3e515b98d70467d031d9d9fc0 files/digest-bitlbee-0.73 64
MD5 208f8bc3e515b98d70467d031d9d9fc0 files/digest-bitlbee-0.73-r1 64
MD5 8de9879ddbed4e2fbba0fd6b3e2e898a files/digest-bitlbee-0.74a 65
MD5 e20daee3dcba62b15424f0f72838bf64 files/digest-bitlbee-0.80 64
-MD5 675e47819b436775f4e2327a173f5cf4 files/bitlbeed.init 584
+MD5 7e159f04341474c626136f52d86c8d2d files/bitlbeed.init 579
MD5 e20daee3dcba62b15424f0f72838bf64 files/digest-bitlbee-0.80-r1 64
diff --git a/net-im/bitlbee/bitlbee-0.80-r1.ebuild b/net-im/bitlbee/bitlbee-0.80-r1.ebuild
new file mode 100644
index 000000000000..b79115a7b3b3
--- /dev/null
+++ b/net-im/bitlbee/bitlbee-0.80-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/bitlbee-0.80-r1.ebuild,v 1.1 2003/09/10 00:49:58 weeve Exp $
+
+inherit eutils
+
+DESCRIPTION="Bitlbee is an irc to IM gateway that support mutliple IM protocols"
+HOMEPAGE="http://www.lintux.cx/bitlbee.html"
+SRC_URI="http://www.lintux.cx/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 sparc ~alpha"
+IUSE=""
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ # Patch the default xinetd file to add/adjust values to Gentoo defaults
+ cd ${S}/doc
+ epatch ${FILESDIR}/${P}-xinetd.patch
+}
+
+src_compile() {
+ econf --datadir=/usr/share/bitlbee --etcdir=/etc
+ emake || die "make failed"
+
+ # make bitlbeed forking server
+ cd utils
+ [ -n "${CC}" ] \
+ && ${CC} ${CFLAGS} bitlbeed.c -o bitlbeed \
+ || gcc ${CFLAGS} bitlbeed.c -o bitlbeed
+
+}
+
+src_install() {
+ mkdir -p ${D}/var/lib/bitlbee
+ make install DESTDIR=${D} || die "install failed"
+
+ dodoc COPYING
+ dodoc doc/{AUTHORS,CHANGES,CREDITS,FAQ,README,TODO}
+ dohtml -A sgml doc/*.sgml
+ doman doc/bitlbee.8
+
+ dobin utils/bitlbeed
+
+ insinto /etc/xinetd.d
+ newins doc/bitlbee.xinetd bitlbee
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/bitlbeed.init bitlbeed || die
+
+ insinto /etc/conf.d
+ newins ${FILESDIR}/bitlbeed.confd bitlbeed || die
+}
+
+pkg_postinst() {
+ chown nobody:nobody /var/lib/bitlbee
+ chmod 700 /var/lib/bitlbee
+}
diff --git a/net-im/bitlbee/files/bitlbeed.confd b/net-im/bitlbee/files/bitlbeed.confd
new file mode 100644
index 000000000000..cb00d3b6ac89
--- /dev/null
+++ b/net-im/bitlbee/files/bitlbeed.confd
@@ -0,0 +1,13 @@
+# output from bitlbeed -h
+#
+# Usage: bitlbeed [-i <interface>] [-p <port>] [-n <num>] <command> <args...>
+# A simple inetd-like daemon to have a program listening on a TCP socket without
+# needing root access to the machine
+#
+# -i Specify the interface (by IP address) to listen on.
+# (Default: 0.0.0.0 (any interface))
+# -p Port number to listen on. (Default: 6667)
+# -n Maximum number of connections. (Default: 0 (unlimited))
+# -h This information
+#
+#BITLBEED_OPTS=""
diff --git a/net-im/bitlbee/files/bitlbeed.init b/net-im/bitlbee/files/bitlbeed.init
new file mode 100644
index 000000000000..0471d0bdf99f
--- /dev/null
+++ b/net-im/bitlbee/files/bitlbeed.init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or
+# later
+# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbeed.init,v 1.1 2003/09/10 00:49:58 weeve Exp $
+
+
+depend() {
+ need logger net
+}
+
+start () {
+ ebegin "Starting bitlbeed"
+ /usr/bin/bitlbeed ${BITLBEED_OPTIONS} /usr/sbin/bitlbee
+ eend $? "Failed to start bitlbeed"
+}
+
+stop() {
+ ebegin "Stopping bitlbeed"
+ killall -9 bitlbeed &>/dev/null
+ eend $? "Failed to stop bitlbeed"
+}
+
diff --git a/net-im/bitlbee/files/digest-bitlbee-0.80-r1 b/net-im/bitlbee/files/digest-bitlbee-0.80-r1
new file mode 100644
index 000000000000..84df83fac49a
--- /dev/null
+++ b/net-im/bitlbee/files/digest-bitlbee-0.80-r1
@@ -0,0 +1 @@
+MD5 96d947bef8c6c40c865beaeee59737eb bitlbee-0.80.tar.gz 351775