net-p2p/monero-gui: fixed build on gcc-12
[booboo.git] / net-vpn / miredo / miredo-1.2.6.ebuild
bloba9e3adea438c24c63fe58f3744551632d8faccbc
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit autotools linux-info
8 DESCRIPTION="Miredo is an open-source Teredo IPv6 tunneling software"
9 HOMEPAGE="http://www.remlab.net/miredo/"
10 SRC_URI="http://www.remlab.net/files/${PN}/${P}.tar.xz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="+caps"
17 RDEPEND="sys-apps/iproute2
18 dev-libs/judy
19 caps? ( sys-libs/libcap )
20 acct-user/miredo
21 acct-group/miredo"
22 DEPEND="${RDEPEND}
23 app-arch/xz-utils"
25 CONFIG_CHECK="~IPV6" #318777
27 #tries to connect to external networks (#339180)
28 RESTRICT="test"
30 DOCS=( AUTHORS ChangeLog NEWS README TODO THANKS )
32 src_prepare() {
33 eapply "${FILESDIR}"/${PN}-1.2.5-configure-libcap.diff
34 eapply "${FILESDIR}"/${PN}-1.2.5-ip-path.patch
35 default
36 eautoreconf
39 src_configure() {
40 econf \
41 --disable-static \
42 --enable-miredo-user \
43 --localstatedir=/var \
44 $(use_with caps libcap)
47 src_install() {
48 default
49 find "${ED}" -name '*.la' -delete || die
51 newinitd "${FILESDIR}"/miredo.rc.2 miredo
52 newconfd "${FILESDIR}"/miredo.conf.2 miredo
53 newinitd "${FILESDIR}"/miredo.rc.2 miredo-server
54 newconfd "${FILESDIR}"/miredo.conf.2 miredo-server
56 insinto /etc/miredo
57 doins misc/miredo-server.conf