mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
net-vpn/vtun-embedded: fix test deps
vtun-embedded uses dev-libs/check for running tests. Closes: https://bugs.gentoo.org/975536 Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST vtun-embedded-3.0.7.tar.gz 188065 BLAKE2B 630ab6e77ab15b24261eadb0140220f23de87340ddc92f0478d5262524cee5e5a4b14bf48f3eb9951c350d997a8af4a1346d7f25ab72ef95ce44ddfacf6d761a SHA512 dc87114b8dda73a99962c6ad15b14a17d4a6099d01eafb0713afb478c5bc8484e397e0c4676dc6025b072d47d0ec2b22451a07a07c2428f010f9da8ba58ab5bd
|
||||
DIST vtun-embedded-3.1.0.tar.gz 188342 BLAKE2B fe266c7bea748a997c69df6390fb19da052e55ff4f7273415b5dce7d417dfe5f84bc98ad4c2f5726dc014b11bb0a2e7225287343a8f60338c83bd064f4dc742d SHA512 e51ce55bf7ac187ff4814f1a5e60a7d35d1171a049851c45020836b029ed078c196986a05940390751632c8e2121a95bdf5aaaa16743cde01d9daa013713f809
|
||||
|
||||
@@ -12,7 +12,8 @@ SRC_URI="https://github.com/leakingmemory/vtun-embedded/releases/download/v${PV}
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm64 ~ppc ~sparc ~x86"
|
||||
IUSE="systemd lzo socks5 ssl zlib"
|
||||
IUSE="systemd lzo socks5 ssl test zlib"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
lzo? ( dev-libs/lzo:2 )
|
||||
@@ -22,6 +23,7 @@ RDEPEND="
|
||||
dev-libs/libbsd"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
test? ( dev-libs/check )
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user