This adds an rc script to bitlbee (using the -F flag, "Run in ForkDaemon
mode. This is similar to ordinary daemon mode, but every client gets its
own process" which seemed the sanest option). Then there doesn't seem
much need to document inetd setup, so remove it from README. Tweak the
other bit of README because it makes it sound like previous version
had libpurple support and it was then removed -- alternatively we
could probably just remove README completely).

any comments, OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/bitlbee/Makefile,v
retrieving revision 1.61
diff -u -p -r1.61 Makefile
--- Makefile    28 May 2017 11:53:51 -0000      1.61
+++ Makefile    28 May 2017 20:57:20 -0000
@@ -5,7 +5,7 @@ COMMENT=                IRC proxy to connect to AIM, I
 V=                     3.5.1
 DISTNAME=              bitlbee-$V
 PKGSPEC=               bitlbee-=$V
-REVISION=              0
+REVISION=              1
 CATEGORIES=            net
 
 HOMEPAGE=              http://bitlbee.org/
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/bitlbee/pkg/PLIST,v
retrieving revision 1.17
diff -u -p -r1.17 PLIST
--- pkg/PLIST   28 May 2017 11:53:52 -0000      1.17
+++ pkg/PLIST   28 May 2017 20:57:20 -0000
@@ -59,3 +59,6 @@ share/examples/bitlbee/motd.txt
 @owner _bitlbee
 @group _bitlbee
 @sample ${DB_DIR}/
+@owner
+@group
+@rcscript ${RCDIR}/bitlbee
Index: pkg/README
===================================================================
RCS file: /cvs/ports/net/bitlbee/pkg/README,v
retrieving revision 1.6
diff -u -p -r1.6 README
--- pkg/README  10 Jul 2014 13:09:06 -0000      1.6
+++ pkg/README  28 May 2017 20:57:20 -0000
@@ -4,15 +4,8 @@ $OpenBSD: README,v 1.6 2014/07/10 13:09:
 | Running ${FULLPKGNAME} on OpenBSD
 +-----------------------------------------------------------------------
 
-To enable bitlbee, add a line such as the following to /etc/inetd.conf:
-
-127.0.0.1:6667    stream  tcp     nowait _bitlbee ${TRUEPREFIX}/sbin/bitlbee 
bitlbee
-
-inetd(8) must be reloaded (or started). To enable it at boot, the
-following line needs to be added to rc.conf.local(8):
-inetd_flags=
-
-If a libpurple flavored bitlbee port was previously used, be aware that
-"classic" bitlbee cannot support all protocols supported with purple
-library.  Remove lines for all protocol accounts unsupported by
-"classic" bitlbee in users' xml configuration files in ${DB_DIR}.
+If moving from a libpurple flavored bitlbee package to an unflavored
+one, be aware that "classic" bitlbee cannot support all protocols
+supported with purple library. Remove lines for all protocol accounts
+unsupported by "classic" bitlbee in users' xml configuration files
+in ${DB_DIR}.
Index: pkg/bitlbee.rc
===================================================================
RCS file: pkg/bitlbee.rc
diff -N pkg/bitlbee.rc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/bitlbee.rc      28 May 2017 20:57:20 -0000
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# $OpenBSD$
+
+daemon="${TRUEPREFIX}/sbin/bitlbee -F"
+daemon_user="_bitlbee"
+
+. /etc/rc.d/rc.subr
+
+rc_reload=NO
+
+rc_cmd $1

Reply via email to