pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/bitlbee Add rc.d file for bitlbee, so that it can...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/826f7b55848c
branches:  trunk
changeset: 395892:826f7b55848c
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Wed Jul 15 22:14:18 2009 +0000

description:
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:

 chat/bitlbee/Makefile         |  10 +++++++---
 chat/bitlbee/PLIST            |   3 ++-
 chat/bitlbee/files/bitlbee.sh |  20 ++++++++++++++++++++
 3 files changed, 29 insertions(+), 4 deletions(-)

diffs (75 lines):

diff -r 84acbb7996f4 -r 826f7b55848c chat/bitlbee/Makefile
--- a/chat/bitlbee/Makefile     Wed Jul 15 21:46:17 2009 +0000
+++ b/chat/bitlbee/Makefile     Wed Jul 15 22:14:18 2009 +0000
@@ -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@localhost
 HOMEPAGE=              http://www.bitlbee.org/
@@ -20,7 +21,7 @@
 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=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 -r 84acbb7996f4 -r 826f7b55848c chat/bitlbee/PLIST
--- a/chat/bitlbee/PLIST        Wed Jul 15 21:46:17 2009 +0000
+++ b/chat/bitlbee/PLIST        Wed Jul 15 22:14:18 2009 +0000
@@ -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 -r 84acbb7996f4 -r 826f7b55848c chat/bitlbee/files/bitlbee.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/bitlbee/files/bitlbee.sh     Wed Jul 15 22:14:18 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index