From: Austin English Date: Tue, 3 May 2016 19:09:33 +0000 (-0500) Subject: net-proxy/tinyproxy: remove unused initd scripts X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2ea93f5a54590068eb88d68e889414e83cea51ed;p=gentoo.git net-proxy/tinyproxy: remove unused initd scripts --- 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 d55aaaea5154..000000000000 --- 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 0539996033eb..000000000000 --- 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 -}