summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-05-03 14:09:33 -0500
committerAustin English <wizardedit@gentoo.org>2016-05-03 14:17:01 -0500
commit2ea93f5a54590068eb88d68e889414e83cea51ed (patch)
treed3ee9ed1dcda0867713d3ac957f9758448350345 /net-proxy/tinyproxy/files
parentnet-proxy/nylon: remove old version (diff)
downloadgentoo-2ea93f5a54590068eb88d68e889414e83cea51ed.tar.gz
gentoo-2ea93f5a54590068eb88d68e889414e83cea51ed.tar.bz2
gentoo-2ea93f5a54590068eb88d68e889414e83cea51ed.zip
net-proxy/tinyproxy: remove unused initd scripts
Diffstat (limited to 'net-proxy/tinyproxy/files')
-rw-r--r--net-proxy/tinyproxy/files/tinyproxy-1.8.2.initd45
-rw-r--r--net-proxy/tinyproxy/files/tinyproxy-1.8.3.initd41
2 files changed, 0 insertions, 86 deletions
diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.8.2.initd b/net-proxy/tinyproxy/files/tinyproxy-1.8.2.initd
deleted file mode 100644
index d55aaaea515..00000000000
--- a/net-proxy/tinyproxy/files/tinyproxy-1.8.2.initd
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-CONFFILE="/etc/${SVCNAME}.conf"
-
-depend() {
- use logger dns
- need net
-}
-
-checkconfig() {
- if [ ! -f "${CONFFILE}" ]; then
- eerror "Configuration file ${CONFFILE} not found!"
- return 1
- fi
-
- PIDFILE=$(sed -n -e 's/^[[:space:]]*PidFile[[:space:]]\+"\(.*\)"[[:space:]]*$/\1/p' "${CONFFILE}")
- return 0
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting tinyproxy"
- if [ -n "${PIDFILE}" ]; then
- start-stop-daemon --start --pidfile "${PIDFILE}" --startas /usr/sbin/tinyproxy -- -c "${CONFFILE}"
- else
- start-stop-daemon --start --exec /usr/sbin/tinyproxy -- -c "${CONFFILE}"
- fi
- eend $?
-}
-
-stop() {
- checkconfig || return 1
-
- ebegin "Stopping tinyproxy"
- if [ -n "${PIDFILE}" ]; then
- start-stop-daemon --stop --pidfile "${PIDFILE}"
- else
- start-stop-daemon --stop --exec /usr/sbin/tinyproxy
- fi
- eend $?
-}
diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.8.3.initd b/net-proxy/tinyproxy/files/tinyproxy-1.8.3.initd
deleted file mode 100644
index 0539996033e..00000000000
--- a/net-proxy/tinyproxy/files/tinyproxy-1.8.3.initd
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-get_config() {
- res=$(awk '$1 == "'$1'" { s=$2 } END { print s }' "$CONFFILE")
-
- if [ "x$res" = "x" ]; then
- echo "$2"
- else
- eval echo "$res"
- fi
-}
-
-: ${CONFFILE:="/etc/${SVCNAME}.conf"}
-
-command=/usr/sbin/tinyproxy
-command_args="-c ${CONFFILE}"
-pidfile=$(get_config PidFile /var/run/tinyproxy/${SVCNAME}.pid)
-
-depend() {
- config "$CONFFILE"
-
- use dns
-
- [ "$(get_config Syslog Off)" = "On" ] && \
- use logger
-}
-
-start_pre() {
- piddir=$(dirname ${pidfile})
-
- if [ "${piddir}" = "/var/run" ]; then
- eerror "Please change your PidFile settings to be within the"
- eerror "/var/run/tinyproxy directory"
- eend 1
- else
- checkpath -d -o $(get_config User tinyproxy):$(get_config Group tinyproxy) ${piddir}
- fi
-}