summaryrefslogtreecommitdiff
path: root/chat/kgb-bot/files
diff options
context:
space:
mode:
authortonnerre <tonnerre@pkgsrc.org>2013-11-05 02:13:42 +0000
committertonnerre <tonnerre@pkgsrc.org>2013-11-05 02:13:42 +0000
commitbb93424250ea0dca9ad0e79857fe9e1b729d41b1 (patch)
tree3cfb2196957b39291fd5beede79abbf611c77ac0 /chat/kgb-bot/files
parent46fe1e663fb1227c1c00a9e1d102def7f8984401 (diff)
downloadpkgsrc-bb93424250ea0dca9ad0e79857fe9e1b729d41b1.tar.gz
Fix the dependencies of the kgb-bot package and add an init script. Bump
pkg_revision.
Diffstat (limited to 'chat/kgb-bot/files')
-rw-r--r--chat/kgb-bot/files/kgb_bot.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/chat/kgb-bot/files/kgb_bot.sh b/chat/kgb-bot/files/kgb_bot.sh
new file mode 100644
index 00000000000..6865d066717
--- /dev/null
+++ b/chat/kgb-bot/files/kgb_bot.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# $NetBSD: kgb_bot.sh,v 1.1 2013/11/05 02:13:42 tonnerre Exp $
+#
+# PROVIDE: kgb_bot
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="kgb_bot"
+rcvar=$name
+command="@PREFIX@/sbin/kgb-bot"
+required_files="@PKG_SYSCONFDIR@/kgb-bot/kgb.conf"
+
+load_rc_config $name
+run_rc_command "$1"