blob: 77abdb7f4f0fec8cf430ff372af440961f7727c5 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/knetworkmanager/knetworkmanager-0.2.1_p20071228.ebuild,v 1.1 2008/02/17 15:58:33 rbu Exp $
inherit kde eutils
MY_PV="0.2.1r749926"
MY_P=${PN}-${MY_PV}
DESCRIPTION="A KDE frontend for NetworkManager"
HOMEPAGE="http://en.opensuse.org/Projects/KNetworkManager"
LICENSE="GPL-2"
#SRC_URI="ftp://ftp.kde.org/pub/kde/stable/apps/KDE3.x/network/${P}.tar.bz2"
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="cisco openvpn pptp dialup"
DEPEND="net-misc/networkmanager
=kde-base/kdelibs-3.5*
>=dev-libs/dbus-qt3-old-0.70
sys-apps/hal
net-wireless/wireless-tools
>=dev-libs/libnl-1.0_pre6-r1
cisco? ( <net-misc/networkmanager-vpnc-0.7.0 )
openvpn? ( <net-misc/networkmanager-openvpn-0.3.3 )
pptp? ( <net-misc/networkmanager-pptp-0.7.0 )
dialup? ( || ( =kde-base/kppp-3.5* =kde-base/kdenetwork-3.5* ) )"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
kde_pkg_setup
if has_version "<sys-apps/dbus-0.9" && ! built_with_use sys-apps/dbus qt3 ; then
echo
eerror "You must rebuild sys-apps/dbus with USE=\"qt3\" or use a newer version of dbus"
die "sys-apps/dbus not built with qt3 bindings"
fi
}
src_unpack() {
kde_src_unpack
cd "${S}"
epatch "${FILESDIR}/${PN}-0.2-pam_console-fix.patch"
epatch "${FILESDIR}/${PN}-0.2.1-fixbuild_u64-hschaa-01.patch"
epatch "${FILESDIR}/${PN}-0.2.1-autostart.patch"
}
src_compile() {
set-kdedir
export PREFIX="${KDEDIR}"
local myconf="$(use_with cisco vpnc) \
$(use_with openvpn) \
$(use_with pptp) \
$(use_with dialup) \
--with-distro=gentoo --disable-rpath"
kde_src_compile
}
src_install() {
kde_src_install
# kde.eclass sets sysconfdir too weird for us, delete conf from there and reinstall to /etc
set-kdedir
rm -rf "${D}/${KDEDIR}/etc"
insinto /etc/dbus-1/system.d/
doins knetworkmanager/knetworkmanager.conf
}
|