| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools git-r3 systemd tmpfiles
DESCRIPTION="TCP port redirector"
HOMEPAGE="https://github.com/troglobit/redir"
EGIT_REPO_URI="https://github.com/troglobit/${PN}.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="+ftp +shaper tcpd xinetd"
RDEPEND="acct-user/redir
xinetd? ( sys-apps/xinetd )"
DEPEND="tcpd? ( sys-apps/tcp-wrappers )"
DOCS=( {ChangeLog,README}.md TODO transproxy.txt )
src_prepare() {
default
eautoreconf
}
src_configure() {
econf "$(use_enable shaper shaping)" "$(use_enable ftp)" \
"$(use_with tcpd libwrap)"
}
src_install() {
default
newinitd "${FILESDIR}"/redir.initd redir
newconfd "${FILESDIR}"/redir.confd redir
systemd_dounit "${FILESDIR}"/redir.service
newtmpfiles "${FILESDIR}"/redir.tmpfile redir.conf
}
pkg_postinst() {
tmpfiles_process redir.conf
}
tcpd? ( sys-apps/tcp-wrappers )
acct-user/redir xinetd? ( sys-apps/xinetd )