summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-07-13 21:15:33 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-07-13 22:55:05 +0200
commit650918b576ae8e8297fd4f57df61cdcecf70ed22 (patch)
treeae717951a090d318cf0333ac1e6c71045cba6df7 /net-proxy
parentnet-misc/ices: drop old version (diff)
downloadgentoo-650918b576ae8e8297fd4f57df61cdcecf70ed22.tar.gz
gentoo-650918b576ae8e8297fd4f57df61cdcecf70ed22.tar.bz2
gentoo-650918b576ae8e8297fd4f57df61cdcecf70ed22.zip
net-proxy/redsocks: drop old version
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/redsocks/files/redsocks.init53
-rw-r--r--net-proxy/redsocks/redsocks-0.5.ebuild49
2 files changed, 0 insertions, 102 deletions
diff --git a/net-proxy/redsocks/files/redsocks.init b/net-proxy/redsocks/files/redsocks.init
deleted file mode 100644
index 853d9b57a6bb..000000000000
--- a/net-proxy/redsocks/files/redsocks.init
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-: ${REDSOCKS_BINARY:=/usr/sbin/redsocks}
-: ${REDSOCKS_CONFIG:=/etc/redsocks.conf}
-: ${REDSOCKS_PIDFILE:=/run/redsocks/redsocks.pid}
-
-extra_commands="checkconfig"
-extra_started_commands="reload"
-
-depend() {
- need localmount
- use dns
-}
-
-checkconfig() {
- if [ ! -f "${REDSOCKS_CONFIG}" ] ; then
- eerror "No ${REDSOCKS_CONFIG} file exists!"
- return 1
- fi
-
- "${REDSOCKS_BINARY}" -t -c ${REDSOCKS_CONFIG} || return 1
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --exec "${REDSOCKS_BINARY}" \
- -p "${REDSOCKS_PIDFILE}" -c ${REDSOCKS_CONFIG}
- eend $?
-}
-
-stop() {
- if [ "${RC_CMD}" = "restart" ] ; then
- checkconfig || return 1
- fi
-
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --stop --exec "${REDSOCKS_BINARY}" \
- -p "${REDSOCKS_PIDFILE}" -c "${REDSOCKS_CONFIG}"
- eend $?
-}
-
-reload() {
- checkconfig || return 1
-
- ebegin "Reloading ${SVCNAME}"
- start-stop-daemon --signal HUP --exec "${REDSOCKS_BINARY}" \
- -p "${REDSOCKS_PIDFILE}" -c "${REDSOCKS_CONFIG}"
- eend $?
-}
diff --git a/net-proxy/redsocks/redsocks-0.5.ebuild b/net-proxy/redsocks/redsocks-0.5.ebuild
deleted file mode 100644
index 187dcecd68ad..000000000000
--- a/net-proxy/redsocks/redsocks-0.5.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-if [[ ${PV} != *9999* ]]; then
- SRC_URI="https://github.com/darkk/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
-else
- GIT_ECLASS="git-r3"
- EGIT_REPO_URI="https://github.com/darkk/${PN}.git"
-fi
-
-inherit systemd toolchain-funcs user ${GIT_ECLASS}
-
-DESCRIPTION="Transparent redirector of any TCP connection to proxy"
-HOMEPAGE="http://darkk.net.ru/redsocks/"
-LICENSE="Apache-2.0 LGPL-2.1+ ZLIB"
-SLOT="0"
-IUSE="doc"
-RESTRICT="test"
-
-DEPEND="dev-libs/libevent:0="
-RDEPEND="${DEPEND}
- net-firewall/iptables"
-
-[[ ${PV} != *9999 ]] && S="${WORKDIR}"/"${PN}"-release-"${PV}"
-
-pkg_setup() {
- enewgroup redsocks
- enewuser redsocks -1 -1 /run/redsocks redsocks
-}
-
-src_compile() {
- CC="$(tc-getCC)" emake
-}
-
-src_install() {
- dosbin redsocks
- doman debian/redsocks.8
- use doc && dodoc README doc/*
- insinto /etc
- newins debian/redsocks.conf redsocks.conf
-
- newinitd "${FILESDIR}"/redsocks.init redsocks
- newconfd "${FILESDIR}"/redsocks.conf redsocks
-
- systemd_dounit "${FILESDIR}"/redsocks.service
-}