diff options
author | Ned Ludd <solar@gentoo.org> | 2003-07-25 21:25:01 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2003-07-25 21:25:01 +0000 |
commit | e0b302546f0f2efc28af88a2f40a9c21e7bb5a38 (patch) | |
tree | e1288ad2aa1715db7dfa080d0b8754481c43a1db /net-www/middleman/files | |
parent | Initial import of middle-man filtering proxy to gentoo (diff) | |
download | historical-e0b302546f0f2efc28af88a2f40a9c21e7bb5a38.tar.gz historical-e0b302546f0f2efc28af88a2f40a9c21e7bb5a38.tar.bz2 historical-e0b302546f0f2efc28af88a2f40a9c21e7bb5a38.zip |
Initial import of middle-man filtering proxy to gentoo
Diffstat (limited to 'net-www/middleman/files')
-rw-r--r-- | net-www/middleman/files/conf.d/mman | 6 | ||||
-rw-r--r-- | net-www/middleman/files/digest-middleman-1.8.1 | 1 | ||||
-rw-r--r-- | net-www/middleman/files/init.d/mman | 38 |
3 files changed, 45 insertions, 0 deletions
diff --git a/net-www/middleman/files/conf.d/mman b/net-www/middleman/files/conf.d/mman new file mode 100644 index 000000000000..6d640cea0623 --- /dev/null +++ b/net-www/middleman/files/conf.d/mman @@ -0,0 +1,6 @@ +# +# MiddleMan filtering proxy server +# +LOGFILE=/var/log/mman.log +CONFIG=/etc/mman/config.xml +LOGLEVEL=32767 diff --git a/net-www/middleman/files/digest-middleman-1.8.1 b/net-www/middleman/files/digest-middleman-1.8.1 new file mode 100644 index 000000000000..d599ce7295df --- /dev/null +++ b/net-www/middleman/files/digest-middleman-1.8.1 @@ -0,0 +1 @@ +MD5 ca19b93426df463ecb4532c2ec717381 middleman-1.8.1.tar.gz 606529 diff --git a/net-www/middleman/files/init.d/mman b/net-www/middleman/files/init.d/mman new file mode 100644 index 000000000000..3378e9cb7547 --- /dev/null +++ b/net-www/middleman/files/init.d/mman @@ -0,0 +1,38 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/middleman/files/init.d/mman,v 1.1 2003/07/25 21:24:55 solar Exp $ + + +opts="depend checkconfig stop start" + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/mman/mman.conf ]; then + eerror "You need to create /etc/mman/mman.conf first." + eerror "An example can be found in /etc/mman/sample/mman.conf.sample" + return 1 + fi +} + +stop() { + ebegin "Stopping mman" + start-stop-daemon --stop --quiet --pidfile /var/run/mman.pid + result=$? + eend $result +} + +start() { + local myopts="" + [ -z "${CONFIG}" ] && myopts="${myopts} -c ${CONFIG}" + [ -z "${LOGFILE}" ] && myopts="${myopts} -l ${LOGFILE}" + [ -z "${LOGLEVEL}" ] && myopts="${myopts} -d ${LOGLEVEL}" + + ebegin "Starting mman" + start-stop-daemon --start --quiet --exec /usr/bin/mman -- ${myopts} + result=$? + eend $result +} |