net-vpn/vtun-embedded: add 3.0.7

Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
This commit is contained in:
Jan-Espen Oversand
2025-11-20 20:41:26 +01:00
parent af5b87c4fe
commit a3ff8eba4e
2 changed files with 60 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST vtun-embedded-3.0.6.tar.gz 170935 BLAKE2B 0804589eb0a8c15bc7bc36781a4e9bdcb251540f3e569dcf865a796a54750cf8a4f3aba99eca0da66a98e5581c7f673445cbaefe3f02bd4f73632c97bdf966b8 SHA512 62190e4c8ed5f3cd12b04394d0324954d2fb47edeff0428aeb57f51a45330bd11569c5aeab06082e9cab9d7ed7fdfc7c542584b4fd96b7b2495ecfc2211cea7e
DIST vtun-embedded-3.0.7.tar.gz 188065 BLAKE2B 630ab6e77ab15b24261eadb0140220f23de87340ddc92f0478d5262524cee5e5a4b14bf48f3eb9951c350d997a8af4a1346d7f25ab72ef95ce44ddfacf6d761a SHA512 dc87114b8dda73a99962c6ad15b14a17d4a6099d01eafb0713afb478c5bc8484e397e0c4676dc6025b072d47d0ec2b22451a07a07c2428f010f9da8ba58ab5bd

View File

@@ -0,0 +1,59 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-info autotools systemd
DESCRIPTION="Create tunnels over TCP/IP networks with shaping, encryption, and compression"
HOMEPAGE="https://github.com/leakingmemory/vtun-embedded"
SRC_URI="https://github.com/leakingmemory/vtun-embedded/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~sparc ~x86"
IUSE="systemd lzo socks5 ssl zlib"
RDEPEND="
lzo? ( dev-libs/lzo:2 )
socks5? ( net-proxy/dante )
ssl? ( dev-libs/openssl:0= )
zlib? ( virtual/zlib:= )
dev-libs/libbsd"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/bison
"
DOCS=( ChangeLog Credits FAQ README README.Setup README.Shaper TODO )
CONFIG_CHECK="~TUN"
src_prepare() {
default
eautoreconf
sed -i -e '/^LDFLAGS/s|=|+=|g' Makefile.in || die
sed -i 's:$(BIN_DIR)/strip $(DESTDIR)$(SBIN_DIR)/vtunemd::' Makefile.in || die
}
src_configure() {
econf \
$(use_enable ssl) \
$(use_enable zlib) \
$(use_enable lzo) \
$(use_enable socks5 socks) \
--enable-shaper
}
src_install() {
default
newinitd "${FILESDIR}"/vtun-embedded.rc vtun-embedded
insinto /etc
doins "${FILESDIR}"/vtunemd-start.conf
rm -r "${ED}"/var || die
if use systemd; then
insinto /etc/vtunemd
newins "${S}"/scripts/sample-client.env.systemd sample-client.env
fi
systemd_newunit "${S}"/scripts/vtunemd.service.systemd vtunemd.service
systemd_newunit "${S}"/scripts/vtunemd-client.service.systemd vtunemd@.service
}