mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-proxy/tayga: add init script
Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
2
net-proxy/tayga/files/tayga.confd
Normal file
2
net-proxy/tayga/files/tayga.confd
Normal file
@@ -0,0 +1,2 @@
|
||||
# Should match the tayga.conf tun-device
|
||||
#rc_need="net.nat64"
|
||||
20
net-proxy/tayga/files/tayga.initd
Normal file
20
net-proxy/tayga/files/tayga.initd
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
#
|
||||
|
||||
description='tayga NAT64 gateway'
|
||||
pidfile=${pidfile:=/var/run/tayga.pid}
|
||||
user=${user:=nobody}
|
||||
group=${group:=nogroup}
|
||||
datadir=${datadir:=/var/db/tayga}
|
||||
|
||||
command='/usr/sbin/tayga'
|
||||
command_args="--pidfile ${pidfile} -u ${user} -g ${group}"
|
||||
|
||||
start_pre() {
|
||||
checkpath --directory --owner ${user}:${group} ${datadir}
|
||||
checkpath --owner ${user}:${group} ${datadir}/dynamic.map
|
||||
}
|
||||
|
||||
|
||||
36
net-proxy/tayga/tayga-0.9.2-r3.ebuild
Normal file
36
net-proxy/tayga/tayga-0.9.2-r3.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="out-of-kernel stateless NAT64 implementation based on TUN"
|
||||
HOMEPAGE="http://www.litech.org/tayga/"
|
||||
SRC_URI="http://www.litech.org/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-static-EAM.patch
|
||||
"${FILESDIR}"/${P}-manpage-RFC.patch
|
||||
"${FILESDIR}"/${P}-release-reserved-addr.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e '/^CFLAGS/d' \
|
||||
-i configure.ac || die "sed failed"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newconfd "${FILESDIR}"/tayga.confd
|
||||
newinitd "${FILESDIR}"/tayga.initd
|
||||
}
|
||||
Reference in New Issue
Block a user