summaryrefslogtreecommitdiff
path: root/recipes/networkmanager/networkmanager_0.6.4.bb
blob: 737d9544d07b25adcf2a9ed499bd305e726b99a3 (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
DESCRIPTION = "GNOME NetworkManager port"
SECTION = "network/misc"
LICENSE = "GPL"
HOMEPAGE = "http://www.gnome.org"
PRIORITY = "optional"
DEPENDS = "libnl dbus dbus-glib libhal-nm libgpewidget gnome-keyring gconf-dbus wireless-tools libglade"
RDEPENDS = "wpa-supplicant iproute2 dhcdbd gnome-keyring hicolor-icon-theme"

PR = "r5"

SRC_URI="http://www.handhelds.org/~mmp/files/NetworkManager-${PV}-gpe.tar.gz \
	file://dbus-api-fix.patch;patch=1 \
	file://dbus-1.0-fix.patch;patch=1 \
        file://99_networkmanager \
	file://NetworkManager \
	file://nm-applet.desktop"

EXTRA_OECONF = " \
		--without-gnome \
		--with-gpe \
		--with-distro=debian \
		--without-gcrypt \
 		--with-wpa_supplicant=/usr/sbin/wpa_supplicant \
		--disable-hal  \
		--with-dhcdbd=/sbin/dhcdbd"

S = "${WORKDIR}/NetworkManager-${PV}"

inherit autotools

do_staging () {
	autotools_stage_includes
	oe_libinstall -C libnm-util libnm-util ${STAGING_LIBDIR}
	oe_libinstall gnome/libnm_glib libnm_glib ${STAGING_LIBDIR}
}

do_install () {
	oe_libinstall -C libnm-util libnm-util ${D}/usr/lib
	oe_libinstall -C gnome/libnm_glib libnm_glib ${D}/usr/lib

	oe_runmake -C src DESTDIR="${D}" install
	oe_runmake -C gnome/applet DESTDIR="${D}" install
	install -d ${D}/etc/default/volatiles
	install -m 0644 ${WORKDIR}/99_networkmanager ${D}/etc/default/volatiles
	install -d ${D}/etc/init.d/
	install -m 0755 ${WORKDIR}/NetworkManager ${D}/etc/init.d/
	install -d ${D}/${datadir}/
	install -m 0755 ${WORKDIR}/nm-applet.desktop ${D}/${datadir}/
}

pkg_postinst () {
	/etc/init.d/populate-volatile.sh update
}

FILES_${PN} += "${datadir} \
		${libdir}/*.so* \
		${libdir}/*.la \
		${sbindir} \
             	${bindir} \
		${sysconfdir} \
		${libexecdir}"

FILES_${PN}-dev = "${incdir} \
		   ${libdir}/*.a \
		   ${libdir}/pkgconfig"