| 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/connman/connman-0.79.ebuild,v 1.1 2012/04/20 10:32:50 chainsaw Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit base eutils systemd
|
| 8 |
|
| 9 |
DESCRIPTION="Provides a daemon for managing internet connections"
|
| 10 |
HOMEPAGE="http://connman.net"
|
| 11 |
SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
| 16 |
IUSE="bluetooth +caps debug doc examples +ethernet google ofono openvpn policykit threads tools vpnc +wifi wimax"
|
| 17 |
|
| 18 |
RDEPEND=">=dev-libs/glib-2.16
|
| 19 |
>=sys-apps/dbus-1.2.24
|
| 20 |
>=dev-libs/libnl-1.1
|
| 21 |
>=net-firewall/iptables-1.4.8
|
| 22 |
net-libs/gnutls
|
| 23 |
bluetooth? ( net-wireless/bluez )
|
| 24 |
caps? ( sys-libs/libcap-ng )
|
| 25 |
ofono? ( net-misc/ofono )
|
| 26 |
policykit? ( sys-auth/polkit )
|
| 27 |
openvpn? ( net-misc/openvpn )
|
| 28 |
vpnc? ( net-misc/vpnc )
|
| 29 |
wifi? ( >=net-wireless/wpa_supplicant-0.7[dbus] )
|
| 30 |
wimax? ( net-wireless/wimax )"
|
| 31 |
|
| 32 |
DEPEND="${RDEPEND}
|
| 33 |
>=sys-kernel/linux-headers-2.6.39
|
| 34 |
doc? ( dev-util/gtk-doc )"
|
| 35 |
|
| 36 |
PATCHES=( "${FILESDIR}/${P}-glib-include.patch" )
|
| 37 |
|
| 38 |
src_configure() {
|
| 39 |
econf \
|
| 40 |
--localstatedir=/var \
|
| 41 |
--enable-client \
|
| 42 |
--enable-fake \
|
| 43 |
--enable-datafiles \
|
| 44 |
--enable-loopback=builtin \
|
| 45 |
$(use_enable caps capng) \
|
| 46 |
$(use_enable examples test) \
|
| 47 |
$(use_enable ethernet ethernet builtin) \
|
| 48 |
$(use_enable wifi wifi builtin) \
|
| 49 |
$(use_enable bluetooth bluetooth builtin) \
|
| 50 |
$(use_enable ofono ofono builtin) \
|
| 51 |
$(use_enable google google builtin) \
|
| 52 |
$(use_enable openvpn openvpn builtin) \
|
| 53 |
$(use_enable policykit polkit builtin) \
|
| 54 |
$(use_enable vpnc vpnc builtin) \
|
| 55 |
$(use_enable wimax iwmx builtin) \
|
| 56 |
$(use_enable debug) \
|
| 57 |
$(use_enable doc gtk-doc) \
|
| 58 |
$(use_enable threads) \
|
| 59 |
$(use_enable tools) \
|
| 60 |
--disable-iospm \
|
| 61 |
--disable-hh2serial-gps \
|
| 62 |
--disable-meego \
|
| 63 |
--disable-openconnect \
|
| 64 |
"$(systemd_with_unitdir systemdunitdir)"
|
| 65 |
}
|
| 66 |
|
| 67 |
src_install() {
|
| 68 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 69 |
dobin client/cm || die "client installation failed"
|
| 70 |
|
| 71 |
keepdir /var/lib/${PN} || die
|
| 72 |
newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
|
| 73 |
newconfd "${FILESDIR}"/${PN}.confd ${PN} || die
|
| 74 |
}
|