blob: b5af63be79a9c741272c1e2941ab53995c6c4c0e (
plain)
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
49
50
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/miredo/miredo-1.2.3-r1.ebuild,v 1.2 2011/01/26 11:18:58 bangert Exp $
EAPI=3
inherit eutils
DESCRIPTION="Miredo is an open-source Teredo IPv6 tunneling software."
HOMEPAGE="http://www.remlab.net/miredo/"
SRC_URI="http://www.remlab.net/files/miredo/miredo-1.2.3.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+caps"
DEPEND="dev-libs/judy
caps? ( sys-libs/libcap )"
RDEPEND="${DEPEND}
sys-apps/iproute2"
#tries to connect to external networks (#339180)
RESTRICT="test"
src_configure() {
econf --enable-miredo-user \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--docdir="/usr/share/doc/${P}"
use caps || \
echo "#undef HAVE_SYS_CAPABILITY_H" >> config.h
}
src_install() {
emake DESTDIR="${D}" install || die "failed install"
newinitd "${FILESDIR}"/miredo-server.rc miredo-server
newconfd "${FILESDIR}"/miredo-server.conf miredo-server
newinitd "${FILESDIR}"/miredo.rc miredo
newconfd "${FILESDIR}"/miredo.conf miredo
insinto /etc/miredo
doins misc/miredo-server.conf
dodoc README NEWS ChangeLog AUTHORS THANKS TODO
}
pkg_preinst() {
enewgroup miredo
enewuser miredo -1 -1 /var/empty miredo
}
|