diff options
author | Jan-Espen Oversand <sigsegv@radiotube.org> | 2023-03-28 21:08:15 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-04-10 11:10:02 +0300 |
commit | dbeeaa226d6be4c217e5de37351b3afa7fca1d99 (patch) | |
tree | bbd87b4d22138df93271415b377a0f8b6d7a2d9f /net-vpn/vtun/vtun-3.0.4-r3.ebuild | |
parent | net-vpn/vtun: drop 3.0.3-r4 (diff) | |
download | gentoo-dbeeaa226d6be4c217e5de37351b3afa7fca1d99.tar.gz gentoo-dbeeaa226d6be4c217e5de37351b3afa7fca1d99.tar.bz2 gentoo-dbeeaa226d6be4c217e5de37351b3afa7fca1d99.zip |
net-vpn/vtun: add 3.0.4-r3
regen autoconf to fix old test. clang-16 prep
Bug: https://bugs.gentoo.org/900336
Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
Closes: https://github.com/gentoo/gentoo/pull/30384
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-vpn/vtun/vtun-3.0.4-r3.ebuild')
-rw-r--r-- | net-vpn/vtun/vtun-3.0.4-r3.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-vpn/vtun/vtun-3.0.4-r3.ebuild b/net-vpn/vtun/vtun-3.0.4-r3.ebuild new file mode 100644 index 000000000000..6aa76ddf8156 --- /dev/null +++ b/net-vpn/vtun/vtun-3.0.4-r3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info autotools + +DESCRIPTION="Create tunnels over TCP/IP networks with shaping, encryption, and compression" +SRC_URI="https://sourceforge.net/projects/vtun/files/${PN}/${PV}/${P}.tar.gz" +HOMEPAGE="https://vtun.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="lzo socks5 ssl zlib" + +RDEPEND=" + lzo? ( dev-libs/lzo:2 ) + socks5? ( net-proxy/dante ) + ssl? ( dev-libs/openssl:0= ) + zlib? ( sys-libs/zlib ) + dev-libs/libbsd" +DEPEND="${RDEPEND}" +BDEPEND=" + app-alternatives/lex + app-alternatives/yacc +" + +DOCS=( ChangeLog Credits FAQ README README.Setup README.Shaper TODO ) +CONFIG_CHECK="~TUN" + +PATCHES=( + "${FILESDIR}"/${P}-libssl-ctx.patch + "${FILESDIR}"/${P}-includes.patch + "${FILESDIR}"/${P}-naughty-inlines.patch + "${FILESDIR}"/${P}-autoconf-fork-not-working.patch +) + +src_prepare() { + default + eautoreconf + sed -i -e '/^LDFLAGS/s|=|+=|g' Makefile.in || die + sed -i 's:$(BIN_DIR)/strip $(DESTDIR)$(SBIN_DIR)/vtund::' 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.rc vtun + insinto /etc + doins "${FILESDIR}"/vtund-start.conf + rm -r "${ED}"/var || die +} |