summaryrefslogtreecommitdiffstats
path: root/irc/bopm/files
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-06 07:46:51 +0000
committerkrion <krion@FreeBSD.org>2004-08-06 07:46:51 +0000
commit405958a0773cc9287121c381009f1451a08ebdb9 (patch)
tree62a3512caa7fb7b837690c3d3461319ab7e770c3 /irc/bopm/files
parentc1466ea43c6ba221471c1ecc4aa16388ca1028c4 (diff)
downloadFreeBSD-ports-405958a0773cc9287121c381009f1451a08ebdb9.zip
FreeBSD-ports-405958a0773cc9287121c381009f1451a08ebdb9.tar.gz
Add bopm 3.1.2,
bopm is an open-source open proxy monitor, designed for use with hybrid-based ircds, although it can be used with slight modification on any server which has +c to show connects to opers and that supports KLINEs in order to K-LINE incoming connects from open proxies. PR: ports/70065 Submitted by: Evgueni V. Gavrilov <aquatique@rusunix.org>
Diffstat (limited to 'irc/bopm/files')
-rw-r--r--irc/bopm/files/bopm.sh.sample24
1 files changed, 24 insertions, 0 deletions
diff --git a/irc/bopm/files/bopm.sh.sample b/irc/bopm/files/bopm.sh.sample
new file mode 100644
index 0000000..5a2adbe
--- /dev/null
+++ b/irc/bopm/files/bopm.sh.sample
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+PREFIX=$(expr $0 : "\(/.*/\)etc/rc\.d/$(basename $0)\$")
+
+BOPM=${PREFIX}bin/bopm
+
+case "$1" in
+start)
+ if [ -x $BOPM ]; then
+ su bopm -c $BOPM -d >/dev/null 2>&1
+ echo -n ' bopm'
+ fi
+ ;;
+stop)
+# kill `cat ${PREFIX}/etc/ircd-hybrid-ru/ircd.pid` >/dev/null 2>&1
+ killall bopm >/dev/null 2>&1
+ echo -n ' bopm'
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
OpenPOWER on IntegriCloud