diff options
author | Hank Leininger <hlein@korelogic.com> | 2022-11-14 21:12:39 -0700 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-03 01:35:27 +0000 |
commit | c24f1f933c3c5264da5ab53d4f74afc0fa037965 (patch) | |
tree | ad1b1e90ebb2538ff77d6792ba2a1245773b3309 /net-vpn/iodine/iodine-0.7.0-r4.ebuild | |
parent | x11-themes/mate-themes: forward ~loong ~riscv (diff) | |
download | gentoo-c24f1f933c3c5264da5ab53d4f74afc0fa037965.tar.gz gentoo-c24f1f933c3c5264da5ab53d4f74afc0fa037965.tar.bz2 gentoo-c24f1f933c3c5264da5ab53d4f74afc0fa037965.zip |
net-vpn/iodine: Add support for arbitrary args in conf.d/iodined
Signed-off-by: Hank Leininger <hlein@korelogic.com>
Closes: https://bugs.gentoo.org/881355
Closes: https://github.com/gentoo/gentoo/pull/28276
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-vpn/iodine/iodine-0.7.0-r4.ebuild')
-rw-r--r-- | net-vpn/iodine/iodine-0.7.0-r4.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-vpn/iodine/iodine-0.7.0-r4.ebuild b/net-vpn/iodine/iodine-0.7.0-r4.ebuild new file mode 100644 index 000000000000..acd02810647f --- /dev/null +++ b/net-vpn/iodine/iodine-0.7.0-r4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info toolchain-funcs + +DESCRIPTION="IP over DNS tunnel" +HOMEPAGE="https://code.kryo.se/iodine/" +SRC_URI="https://code.kryo.se/${PN}/${P}.tar.gz" + +CONFIG_CHECK="~TUN" + +LICENSE="ISC GPL-2" #GPL-2 for init script bug #426060 +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + test? ( dev-libs/check )" + +PATCHES=( + "${FILESDIR}"/${P}-TestMessage.patch + "${FILESDIR}"/${P}-new-systemd.patch +) + +src_prepare() { + default + + sed -e '/^\s@echo \(CC\|LD\)/d' \ + -e 's:^\(\s\)@:\1:' \ + -i {,src/}Makefile || die + + tc-export CC +} + +src_install() { + # Don't re-run submake + sed -e '/^install:/s: all: :' \ + -i Makefile || die + emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install + einstalldocs + + newinitd "${FILESDIR}"/iodined-1.init-r1 iodined + newconfd "${FILESDIR}"/iodined.conf-r1 iodined + keepdir /var/empty + fperms 600 /etc/conf.d/iodined +} |