summaryrefslogblamecommitdiff
path: root/net-vpn/miredo/miredo-1.3.2.ebuild
blob: 70c2835128e06e6e6a9be6bc33f346f7c15435b1 (plain) (tree)















































                                                                                      
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit autotools

DESCRIPTION="Teredo IPv6 tunneling software"
HOMEPAGE="https://www.remlab.net/miredo"
SRC_URI="https://gitlab.com/rindeal-ns/abandonware/${PN}/-/archive/${PV}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+caps nls"

DEPEND="sys-apps/iproute2
	sys-devel/gettext
	caps? ( sys-libs/libcap )"
RDEPEND="${DEPEND}
	acct-user/miredo"
BDEPEND=""

src_prepare () {
	eautoreconf

	# mimic autogen.sh
	cp "/usr/share/gettext/gettext.h" "${S}/include/gettext.h" || die

	default
}

src_configure () {
	econf \
		$(use_enable nls) \
		$(use_with caps libcap) \
		--enable-miredo-user \
		--localstatedir=/
}

src_install () {
	default

	rm -rf "${ED}/run" || die
	find "${ED}" -type f -name '*.la' -delete || die

	insinto /etc/miredo
	doins misc/miredo-server.conf
}