aboutsummaryrefslogtreecommitdiff
path: root/irc/bitlbee-otr/files
diff options
context:
space:
mode:
Diffstat (limited to 'irc/bitlbee-otr/files')
-rw-r--r--irc/bitlbee-otr/files/bitlbee.in31
-rw-r--r--irc/bitlbee-otr/files/pkg-deinstall.in17
-rw-r--r--irc/bitlbee-otr/files/pkg-install.in74
-rw-r--r--irc/bitlbee-otr/files/pkg-message.in23
4 files changed, 0 insertions, 145 deletions
diff --git a/irc/bitlbee-otr/files/bitlbee.in b/irc/bitlbee-otr/files/bitlbee.in
deleted file mode 100644
index a5e9d9b6c7dd..000000000000
--- a/irc/bitlbee-otr/files/bitlbee.in
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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="%%BITLBEEUSER%%"}
-: ${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"
diff --git a/irc/bitlbee-otr/files/pkg-deinstall.in b/irc/bitlbee-otr/files/pkg-deinstall.in
deleted file mode 100644
index ace23937dfc0..000000000000
--- a/irc/bitlbee-otr/files/pkg-deinstall.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh -
-#
-# $FreeBSD$
-#
-
-BITLBEEUSER=%%BITLBEEUSER%%
-BITLBEEGROUP=%%BITLBEEGROUP%%
-
-if [ "$2" = "POST-DEINSTALL" ]; then
- if /usr/sbin/pw group show "${BITLBEEGROUP}" 2>&1 >/dev/null; then
- echo "You should manually remove the \"${BITLBEEGROUP}\" group."
- fi
-
- if /usr/sbin/pw user show "${BITLBEEUSER}" 2>&1 >/dev/null; then
- echo "You should manually remove the \"${BITLBEEUSER}\" user."
- fi
-fi
diff --git a/irc/bitlbee-otr/files/pkg-install.in b/irc/bitlbee-otr/files/pkg-install.in
deleted file mode 100644
index 06a9fa3d7beb..000000000000
--- a/irc/bitlbee-otr/files/pkg-install.in
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh -
-#
-# $FreeBSD$
-#
-
-BITLBEEDIR=%%BITLBEEDIR%%
-BITLBEEUSER=%%BITLBEEUSER%%
-BITLBEEGROUP=%%BITLBEEGROUP%%
-BITLBEEUID=%%BITLBEEUID%%
-BITLBEEGID=%%BITLBEEGID%%
-
-ask() {
- local question default answer
-
- question=$1
- default=$2
- if [ -z "${PACKAGE_BUILDING}" ]; then
- read -p "${question} [${default}]? " answer
- fi
- if [ "x${answer}" = "x" ]; then
- answer=${default}
- fi
- echo ${answer}
-}
-
-yesno() {
- local default question answer
-
- question=$1
- default=$2
- while :; do
- answer=$(ask "${question}" "${default}")
- case "${answer}" in
- [Yy][Ee][Ss]|[Yy])
- return 0
- ;;
- [Nn][Oo]|[Nn])
- return 1
- ;;
- esac
- echo "Please answer yes or no."
- done
-}
-
-if [ "$2" = "PRE-INSTALL" ]; then
- if /usr/sbin/pw group show "${BITLBEEGROUP}" 2>&1 >/dev/null; then
- echo "You already have a \"${BITLBEEGROUP}\" group, so I will use it."
- else
- echo "You need a \"${BITLBEEGROUP}\" group."
- if yesno "Would you like me to create it" "YES"; then
- /usr/sbin/pw groupadd "${BITLBEEGROUP}" -g "${BITLBEEGID}" -h - || \
- /usr/sbin/pw groupadd "${BITLBEEGROUP}" -h - || exit
- echo "Done."
- else
- echo "Please create the \"${BITLBEEGROUP}\" group manually and try again."
- exit 1
- fi
- fi
-
- if /usr/sbin/pw user show "${BITLBEEUSER}" 2>&1 >/dev/null; then
- echo "You already have a \"${BITLBEEUSER}\" user, so I will use it."
- else
- echo "You need a \"${BITLBEEUSER}\" user."
- if yesno "Would you like me to create it" "YES"; then
- /usr/sbin/pw useradd "${BITLBEEUSER}" -u "${BITLBEEUID}" -g "${BITLBEEGROUP}" -h - -d "${BITLBEEDIR}" \
- -s /sbin/nologin -c "Bitlbee pseudo-user" || \
- /usr/sbin/pw useradd "${BITLBEEUSER}" -g "${BITLBEEGROUP}" -h - -d "${BITLBEEDIR}" \
- -s /sbin/nologin -c "Bitlbee pseudo-user" || exit
- else
- echo "Please create the \"${BITLBEEUSER}\" user manually and try again."
- exit 1
- fi
- fi
-fi
diff --git a/irc/bitlbee-otr/files/pkg-message.in b/irc/bitlbee-otr/files/pkg-message.in
deleted file mode 100644
index 811f35db2080..000000000000
--- a/irc/bitlbee-otr/files/pkg-message.in
+++ /dev/null
@@ -1,23 +0,0 @@
-/************************************************************************
-To configure bitlbee, do the following:
-
-Copy %%EXAMPLESDIR%%/bitlbee.conf
- to %%PREFIX%%/etc/bitlbee/bitlbee.conf ,
-Copy %%EXAMPLESDIR%%/motd.txt
- to %%PREFIX%%/etc/bitlbee/motd.txt
-and modify them to suit your needs.
-
-You have two options for launching bitlbee: either launch it from
-inetd(8) or run it as a stand-alone daemon (experimental).
-
-To launch bitlbee from inetd(8), add the following line to
-/etc/inetd.conf and reload inetd(8):
-
-ircd stream tcp nowait %%BITLBEEUSER%% /usr/local/sbin/bitlbee bitlbee -I
-
-To instead launch bitlbee as a daemon (experimental), add the
-following line to /etc/rc.conf:
-
-bitlbee_enable="YES"
-
-*************************************************************************/