blob: 70c2835128e06e6e6a9be6bc33f346f7c15435b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# 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
}
|