summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2009-07-15 22:14:18 +0000
committertonio <tonio@pkgsrc.org>2009-07-15 22:14:18 +0000
commit8f34fe848cce79db14e2088392e5f8ab7151d22f (patch)
treecbda6e82584e9caafbd038d274023411217b00a7 /chat
parent860aa5873ecd3e6380fd3180594030f7fad16bcc (diff)
downloadpkgsrc-8f34fe848cce79db14e2088392e5f8ab7151d22f.tar.gz
Add rc.d file for bitlbee, so that it can be used in deamon mode
Use gnutls instead of openssl, as google talk does not work with openssl This fixes PR pkg/35345
Diffstat (limited to 'chat')
-rw-r--r--chat/bitlbee/Makefile10
-rw-r--r--chat/bitlbee/PLIST3
-rwxr-xr-xchat/bitlbee/files/bitlbee.sh20
3 files changed, 29 insertions, 4 deletions
diff --git a/chat/bitlbee/Makefile b/chat/bitlbee/Makefile
index eb2d7f5aa87..01c79dc6958 100644
--- a/chat/bitlbee/Makefile
+++ b/chat/bitlbee/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.44 2008/11/01 13:35:33 tonio Exp $
+# $NetBSD: Makefile,v 1.45 2009/07/15 22:14:18 tonio Exp $
#
DISTNAME= bitlbee-1.2.3
CATEGORIES= chat
MASTER_SITES= http://get.bitlbee.org/src/
+PKGREVISION= 1
MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://www.bitlbee.org/
@@ -20,7 +21,7 @@ CONFIGURE_ARGS+= --etcdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --datadir=${DATADIR}
CONFIGURE_ARGS+= --config=${STATEDIR}
CONFIGURE_ARGS+= --flood=0
-CONFIGURE_ARGS+= --ssl=openssl
+CONFIGURE_ARGS+= --ssl=gnutls
PKG_SYSCONFSUBDIR= bitlbee
CONF_FILES= ${DATADIR}/motd.txt ${PKG_SYSCONFDIR}/motd.txt
@@ -64,7 +65,10 @@ CONFIGURE_ARGS+= --ipv6=1
CONFIGURE_ARGS+= --ipv6=0
.endif
+RCD_SCRIPTS= bitlbee
+RCD_SCRIPT_SRC.estd= ${FILESDIR}/bitlbee.sh
+
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
+.include "../../security/gnutls/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/chat/bitlbee/PLIST b/chat/bitlbee/PLIST
index 374e470c8ab..06f4e44b6e7 100644
--- a/chat/bitlbee/PLIST
+++ b/chat/bitlbee/PLIST
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.5 2009/06/14 17:37:42 joerg Exp $
+@comment $NetBSD: PLIST,v 1.6 2009/07/15 22:14:18 tonio Exp $
man/man5/bitlbee.conf.5
man/man8/bitlbee.8
sbin/bitlbee
share/bitlbee/help.txt
share/bitlbee/motd.txt
+share/examples/rc.d/bitlbee
share/doc/bitlbee/AUTHORS
share/doc/bitlbee/CREDITS
share/doc/bitlbee/FAQ
diff --git a/chat/bitlbee/files/bitlbee.sh b/chat/bitlbee/files/bitlbee.sh
new file mode 100755
index 00000000000..2b47870678e
--- /dev/null
+++ b/chat/bitlbee/files/bitlbee.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# PROVIDE: bitlbee
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="bitlbee"
+rcvar=$name
+command="@PREFIX@/sbin/bitlbee"
+pidfile="/var/run/${name}.pid"
+command_args="-D" # run as a daemon
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n "${name}"
+ ${command} ${bitlbee_flags} ${command_args}
+fi