Update bitlbee-bzr

This commit is contained in:
Florian Bruhin 2014-02-20 11:47:30 +01:00
parent 706278a560
commit d8837f8e8e
3 changed files with 6 additions and 50 deletions

View file

@ -1,6 +1,6 @@
pkgbase = bitlbee-bzr
pkgdesc = Brings instant messaging (XMPP, MSN, Yahoo!, AIM, ICQ, Twitter) to IRC
pkgver = 996
pkgver = 1005
pkgrel = 1
url = http://www.bitlbee.org/
install = bitlbee.install
@ -10,13 +10,13 @@ pkgbase = bitlbee-bzr
checkdepends = check
makedepends = bzr
makedepends = asciidoc
makedepends = libotr3
makedepends = libotr
makedepends = xmlto
makedepends = lynx
depends = gnutls
depends = glib2
optdepends = skype4py: to use skyped
optdepends = libotr3: for OTR encryption support
optdepends = libotr: for OTR encryption support
optdepends = xinetd: to run bitlbee through xinetd
provides = bitlbee
conflicts = bitlbee

View file

@ -4,17 +4,17 @@
# Maintainer: Florian Bruhin (The-Compiler) <archlinux.org@the-compiler.org>
pkgname=bitlbee-bzr
pkgver=996
pkgver=1005
pkgrel=1
pkgdesc='Brings instant messaging (XMPP, MSN, Yahoo!, AIM, ICQ, Twitter) to IRC'
url='http://www.bitlbee.org/'
license=('GPL')
arch=('i686' 'x86_64')
depends=('gnutls' 'glib2')
makedepends=('bzr' 'asciidoc' 'libotr3' 'xmlto' 'lynx')
makedepends=('bzr' 'asciidoc' 'libotr' 'xmlto' 'lynx')
checkdepends=('check')
optdepends=('skype4py: to use skyped'
'libotr3: for OTR encryption support'
'libotr: for OTR encryption support'
'xinetd: to run bitlbee through xinetd')
source=('bitlbee::bzr+http://code.bitlbee.org/bitlbee/'
'xinetd'
@ -50,10 +50,6 @@ build() {
--otr=plugin \
--skype=plugin
# hacky: build against libotr3
sed -i 's,^OTRFLAGS=.*,OTRFLAGS=-lotr3,' Makefile.settings
sed -i 's,#include.*libotr,&3,' otr.h
make
}

40
rc.d
View file

@ -1,40 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
name=bitlbee
PID=$(pidof -o %PPID /usr/sbin/bitlbee)
install -o bitlbee -g bitlbee -d -m 755 /var/run/bitlbee
case "$1" in
start)
stat_busy "Starting $name daemon"
[[ -z "$PID" ]] && {
rm -f /var/run/bitlbee/bitlbee.pid
su -s /bin/sh -c '/usr/sbin/bitlbee -F' bitlbee
} && {
add_daemon $name
stat_done
} || { stat_fail; exit 1; }
;;
stop)
stat_busy "Stopping $name daemon"
[[ -n "$PID" ]] && {
kill $PID &>/dev/null
} && {
rm -f /var/run/bitlbee/bitlbee.pid
rm_daemon $name
stat_done
} || { stat_fail; exit 1; }
;;
restart)
$0 stop
sleep 3
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
exit 1
;;
esac