/[gentoo-x86]/net-misc/miredo/miredo-1.2.5.ebuild
Gentoo

Contents of /net-misc/miredo/miredo-1.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 13 07:35:21 2012 UTC (2 years, 1 month ago) by jdhore
Branch: MAIN
Changes since 1.3: +2 -2 lines
marked x86 per bug 419313

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/miredo/miredo-1.2.5.ebuild,v 1.3 2012/06/11 10:19:11 ago Exp $
4
5 EAPI=4
6
7 inherit eutils linux-info
8
9 DESCRIPTION="Miredo is an open-source Teredo IPv6 tunneling software."
10 HOMEPAGE="http://www.remlab.net/miredo/"
11 SRC_URI="http://www.remlab.net/files/${PN}/${P}.tar.xz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="+caps"
17
18 RDEPEND="sys-apps/iproute2
19 dev-libs/judy
20 caps? ( sys-libs/libcap )"
21 DEPEND="${RDEPEND}
22 app-arch/xz-utils"
23
24 CONFIG_CHECK="~IPV6" #318777
25
26 #tries to connect to external networks (#339180)
27 RESTRICT="test"
28
29 src_configure() {
30 econf --disable-static \
31 --enable-miredo-user \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --localstatedir=/var \
35 --docdir="/usr/share/doc/${P}"
36 use caps || \
37 echo "#undef HAVE_SYS_CAPABILITY_H" >> config.h
38 }
39
40 src_install() {
41 emake DESTDIR="${D}" install
42 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
43
44 newinitd "${FILESDIR}"/miredo-server.rc miredo-server
45 newconfd "${FILESDIR}"/miredo-server.conf miredo-server
46 newinitd "${FILESDIR}"/miredo.rc miredo
47 newconfd "${FILESDIR}"/miredo.conf miredo
48
49 insinto /etc/miredo
50 doins misc/miredo-server.conf
51
52 dodoc README NEWS ChangeLog AUTHORS THANKS TODO
53 }
54
55 pkg_preinst() {
56 enewgroup miredo
57 enewuser miredo -1 -1 /var/empty miredo
58 }

  ViewVC Help
Powered by ViewVC 1.1.20