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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jun 20 06:22:44 2012 UTC (2 years, 3 months ago) by xmw
Branch: MAIN
Revbump to improve ebuils (thanks for suggestions by Bertrand Jacquin and Diego Elio Pettenò on bug 421171), drop old.

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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.4 2012/06/13 07:35:21 jdhore Exp $
4
5 EAPI=4
6
7 inherit autotools 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 DOCS=( AUTHORS ChangeLog NEWS README TODO THANKS )
30
31 src_prepare() {
32 epatch "${FILESDIR}"/${P}-configure-libcap.diff
33 eautoreconf
34 }
35
36 src_configure() {
37 econf \
38 --disable-static \
39 --enable-miredo-user \
40 --localstatedir=/var \
41 $(use_with caps libcap "${ROOT}usr")
42 }
43
44 src_install() {
45 default
46 prune_libtool_files
47
48 newinitd "${FILESDIR}"/miredo-server.rc miredo-server
49 newconfd "${FILESDIR}"/miredo-server.conf miredo-server
50 newinitd "${FILESDIR}"/miredo.rc miredo
51 newconfd "${FILESDIR}"/miredo.conf miredo
52
53 insinto /etc/miredo
54 doins misc/miredo-server.conf
55 }
56
57 pkg_preinst() {
58 enewgroup miredo
59 enewuser miredo -1 -1 /var/empty miredo
60 }

  ViewVC Help
Powered by ViewVC 1.1.20