1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager-pptp/networkmanager-pptp-0.1.0_p20070726.ebuild,v 1.5 2009/04/22 14:22:09 rbu Exp $ |
4 |
|
5 |
inherit gnome2 eutils autotools |
6 |
|
7 |
# NetworkManager likes itself with capital letters |
8 |
MY_P=${P/networkmanager/NetworkManager} |
9 |
|
10 |
DESCRIPTION="NetworkManager PPTP plugin." |
11 |
HOMEPAGE="http://www.gnome.org/projects/NetworkManager/" |
12 |
#SRC_URI="http://dev.gentoo.org/~rbu/distfiles/${MY_P}.tar.gz" |
13 |
SRC_URI="mirror://gentoo/${MY_P}.tar.gz |
14 |
mirror://gentoo/${P}-pppd-plugindir.patch.bz2" |
15 |
|
16 |
LICENSE="GPL-2" |
17 |
SLOT="0" |
18 |
KEYWORDS="~amd64 ~ppc ~x86" |
19 |
IUSE="crypt debug doc gnome" |
20 |
|
21 |
RDEPEND=">=sys-apps/dbus-0.35.2 |
22 |
>=dev-libs/glib-2.8 |
23 |
=net-misc/networkmanager-0.6* |
24 |
net-dialup/ppp |
25 |
gnome? ( >=x11-libs/gtk+-2.8 |
26 |
>=gnome-base/libglade-2 |
27 |
>=gnome-base/gnome-keyring-0.4 |
28 |
>=gnome-base/gnome-panel-2 |
29 |
>=gnome-base/gconf-2 |
30 |
>=gnome-base/libgnomeui-2 ) |
31 |
!gnome? ( >=gnome-base/libglade-2 |
32 |
>=gnome-base/gnome-keyring-0.4 |
33 |
>=gnome-base/gconf-2 ) |
34 |
>=net-misc/openvpn-2.0.5 |
35 |
crypt? ( dev-libs/libgcrypt )" |
36 |
|
37 |
DEPEND="${RDEPEND} |
38 |
dev-util/pkgconfig |
39 |
dev-util/intltool" |
40 |
RDEPEND="net-dialup/pptpclient" |
41 |
|
42 |
S=${WORKDIR}/${MY_P} |
43 |
|
44 |
DOCS="AUTHORS ChangeLog NEWS README" |
45 |
USE_DESTDIR="1" |
46 |
|
47 |
G2CONF="${G2CONF} \ |
48 |
`use_with crypt gcrypt` \ |
49 |
`use_with gnome` \ |
50 |
--disable-more-warnings \ |
51 |
--with-dbus-sys=/etc/dbus-1/system.d \ |
52 |
--enable-notification-icon" |
53 |
|
54 |
src_unpack () { |
55 |
unpack ${A} |
56 |
cd "${S}" |
57 |
|
58 |
epatch "${FILESDIR}/${P}-service-name.patch" |
59 |
epatch "${WORKDIR}/${P}-pppd-plugindir.patch" |
60 |
rm -rf "${S}/src/pppd" |
61 |
eautoreconf |
62 |
intltoolize --force || die "intltoolize failed" |
63 |
} |