mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 11:48:35 -04:00
- Add rc script for running bitlbee in experimental daemon mode - Add instructions for launching bitlbee from inetd(8) - Install bitlbee to be run as nobody, not root - Store saved user settings in /var/db/bitlbee, not $PREFIX/etc/bitlbee - Do not rely on autodetection for SSL library - Use $EXTRA_PATCHES instead of custom post-patch target - Install port documentation files - Install example configuration files as port examples - Reflect custom FreeBSD paths in installed man pages and example files - Bump PORTREVISION Please read UPDATING for important migration information. Approved by: Lars Sommer <lasg@lasg.dk> (maintainer), erwin (mentor)
31 lines
531 B
Bash
31 lines
531 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: bitlbee
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="bitlbee"
|
|
rcvar=`set_rcvar`
|
|
|
|
load_rc_config $name
|
|
|
|
: ${bitlbee_enable="NO"}
|
|
: ${bitlbee_user="nobody"}
|
|
: ${bitlbee_config="%%PREFIX%%/etc/bitlbee/bitlbee.conf"}
|
|
: ${bitlbee_flags=""}
|
|
|
|
required_files="${bitlbee_config}"
|
|
command="%%PREFIX%%/sbin/bitlbee"
|
|
start_cmd="bitlbee_start"
|
|
|
|
bitlbee_start()
|
|
{
|
|
echo "Starting ${name}."
|
|
su -m ${bitlbee_user} -c "${command} -D -c ${bitlbee_config} ${bitlbee_flags}"
|
|
}
|
|
|
|
run_rc_command "$1"
|