commit:     2ea93f5a54590068eb88d68e889414e83cea51ed
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 19:09:33 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue May  3 19:17:01 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea93f5a

net-proxy/tinyproxy: remove unused initd scripts

 net-proxy/tinyproxy/files/tinyproxy-1.8.2.initd | 45 -------------------------
 net-proxy/tinyproxy/files/tinyproxy-1.8.3.initd | 41 ----------------------
 2 files changed, 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 d55aaae..0000000
--- 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 0539996..0000000
--- 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
-}

Reply via email to