diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-09-19 11:41:41 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-09-19 14:05:45 +0200 |
commit | 2ae61da55c908e70c34af31ea2124e8f92992e5d (patch) | |
tree | 2731c74978bd2841e6819d77e2cc6df23b42897c /meta-oe | |
parent | 549f974a5df4c3e117d269007e9b671cf4e925f9 (diff) | |
download | meta-openembedded-2ae61da55c908e70c34af31ea2124e8f92992e5d.tar.gz |
networkmanager: add 0.9.0
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-connectivity/networkmanager/networkmanager/gtk-doc.make | 173 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.0.bb | 112 |
2 files changed, 285 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager/gtk-doc.make b/meta-oe/recipes-connectivity/networkmanager/networkmanager/gtk-doc.make new file mode 100644 index 000000000..354ffb7c6 --- /dev/null +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager/gtk-doc.make | |||
@@ -0,0 +1,173 @@ | |||
1 | # -*- mode: makefile -*- | ||
2 | |||
3 | #################################### | ||
4 | # Everything below here is generic # | ||
5 | #################################### | ||
6 | |||
7 | if GTK_DOC_USE_LIBTOOL | ||
8 | GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
9 | GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) | ||
10 | else | ||
11 | GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
12 | GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) | ||
13 | endif | ||
14 | |||
15 | # We set GPATH here; this gives us semantics for GNU make | ||
16 | # which are more like other make's VPATH, when it comes to | ||
17 | # whether a source that is a target of one rule is then | ||
18 | # searched for in VPATH/GPATH. | ||
19 | # | ||
20 | GPATH = $(srcdir) | ||
21 | |||
22 | TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) | ||
23 | |||
24 | EXTRA_DIST = \ | ||
25 | $(content_files) \ | ||
26 | $(HTML_IMAGES) \ | ||
27 | $(DOC_MAIN_SGML_FILE) \ | ||
28 | $(DOC_MODULE)-sections.txt \ | ||
29 | $(DOC_MODULE)-overrides.txt | ||
30 | |||
31 | DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ | ||
32 | $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp | ||
33 | |||
34 | SCANOBJ_FILES = \ | ||
35 | $(DOC_MODULE).args \ | ||
36 | $(DOC_MODULE).hierarchy \ | ||
37 | $(DOC_MODULE).interfaces \ | ||
38 | $(DOC_MODULE).prerequisites \ | ||
39 | $(DOC_MODULE).signals | ||
40 | |||
41 | REPORT_FILES = \ | ||
42 | $(DOC_MODULE)-undocumented.txt \ | ||
43 | $(DOC_MODULE)-undeclared.txt \ | ||
44 | $(DOC_MODULE)-unused.txt | ||
45 | |||
46 | CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) | ||
47 | |||
48 | if ENABLE_GTK_DOC | ||
49 | all-local: html-build.stamp | ||
50 | else | ||
51 | all-local: | ||
52 | endif | ||
53 | |||
54 | docs: html-build.stamp | ||
55 | |||
56 | #### scan #### | ||
57 | |||
58 | scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) | ||
59 | @echo 'gtk-doc: Scanning header files' | ||
60 | @-chmod -R u+w $(srcdir) | ||
61 | cd $(srcdir) && \ | ||
62 | gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES) | ||
63 | if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ | ||
64 | CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ | ||
65 | else \ | ||
66 | cd $(srcdir) ; \ | ||
67 | for i in $(SCANOBJ_FILES) ; do \ | ||
68 | test -f $$i || touch $$i ; \ | ||
69 | done \ | ||
70 | fi | ||
71 | touch scan-build.stamp | ||
72 | |||
73 | $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp | ||
74 | @true | ||
75 | |||
76 | #### templates #### | ||
77 | |||
78 | tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt | ||
79 | @echo 'gtk-doc: Rebuilding template files' | ||
80 | @-chmod -R u+w $(srcdir) | ||
81 | cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) | ||
82 | touch tmpl-build.stamp | ||
83 | |||
84 | tmpl.stamp: tmpl-build.stamp | ||
85 | @true | ||
86 | |||
87 | tmpl/*.sgml: | ||
88 | @true | ||
89 | |||
90 | |||
91 | #### xml #### | ||
92 | |||
93 | sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) | ||
94 | @echo 'gtk-doc: Building XML' | ||
95 | @-chmod -R u+w $(srcdir) | ||
96 | cd $(srcdir) && \ | ||
97 | gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS) | ||
98 | touch sgml-build.stamp | ||
99 | |||
100 | sgml.stamp: sgml-build.stamp | ||
101 | @true | ||
102 | |||
103 | #### html #### | ||
104 | |||
105 | html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) | ||
106 | @echo 'gtk-doc: Building HTML' | ||
107 | @-chmod -R u+w $(srcdir) | ||
108 | rm -rf $(srcdir)/html | ||
109 | mkdir $(srcdir)/html | ||
110 | cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) | ||
111 | test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) | ||
112 | @echo 'gtk-doc: Fixing cross-references' | ||
113 | cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) | ||
114 | touch html-build.stamp | ||
115 | |||
116 | ############## | ||
117 | |||
118 | clean-local: | ||
119 | rm -f *~ *.bak | ||
120 | rm -rf .libs | ||
121 | |||
122 | distclean-local: | ||
123 | cd $(srcdir) && \ | ||
124 | rm -rf xml $(REPORT_FILES) \ | ||
125 | $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt | ||
126 | |||
127 | maintainer-clean-local: clean | ||
128 | cd $(srcdir) && rm -rf xml html | ||
129 | |||
130 | install-data-local: | ||
131 | -installfiles=`echo $(srcdir)/html/*`; \ | ||
132 | if test "$$installfiles" = '$(srcdir)/html/*'; \ | ||
133 | then echo '-- Nothing to install' ; \ | ||
134 | else \ | ||
135 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \ | ||
136 | for i in $$installfiles; do \ | ||
137 | echo '-- Installing '$$i ; \ | ||
138 | $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \ | ||
139 | done; \ | ||
140 | echo '-- Installing $(srcdir)/html/index.sgml' ; \ | ||
141 | $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \ | ||
142 | which gtkdoc-rebase >/dev/null && \ | ||
143 | gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \ | ||
144 | fi | ||
145 | |||
146 | |||
147 | uninstall-local: | ||
148 | rm -f $(DESTDIR)$(TARGET_DIR)/* | ||
149 | |||
150 | # | ||
151 | # Require gtk-doc when making dist | ||
152 | # | ||
153 | if ENABLE_GTK_DOC | ||
154 | dist-check-gtkdoc: | ||
155 | else | ||
156 | dist-check-gtkdoc: | ||
157 | @echo "*** gtk-doc must be installed and enabled in order to make dist" | ||
158 | @false | ||
159 | endif | ||
160 | |||
161 | dist-hook: dist-check-gtkdoc dist-hook-local | ||
162 | mkdir $(distdir)/tmpl | ||
163 | mkdir $(distdir)/xml | ||
164 | mkdir $(distdir)/html | ||
165 | -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl | ||
166 | -cp $(srcdir)/xml/*.xml $(distdir)/xml | ||
167 | cp $(srcdir)/html/* $(distdir)/html | ||
168 | -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/ | ||
169 | -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/ | ||
170 | cd $(distdir) && rm -f $(DISTCLEANFILES) | ||
171 | -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html | ||
172 | |||
173 | .PHONY : dist-hook-local docs | ||
diff --git a/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.0.bb b/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.0.bb new file mode 100644 index 000000000..1fb923fe6 --- /dev/null +++ b/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.0.bb | |||
@@ -0,0 +1,112 @@ | |||
1 | DESCRIPTION = "NetworkManager" | ||
2 | SECTION = "net/misc" | ||
3 | |||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b" | ||
6 | |||
7 | DEPENDS = "systemd libnl1 dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp" | ||
8 | inherit gnome gettext | ||
9 | |||
10 | SRC_URI = "${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.bz2 \ | ||
11 | file://gtk-doc.make \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "f807102109e63ec708d4fd7a7f3f7deb" | ||
15 | SRC_URI[sha256sum] = "98d928684ab1707a8200aaeb07a648e214096b8f0fe56294a49f08c18e39714f" | ||
16 | |||
17 | S = "${WORKDIR}/NetworkManager-${PV}" | ||
18 | |||
19 | EXTRA_OECONF = " \ | ||
20 | --with-distro=debian \ | ||
21 | --with-crypto=gnutls \ | ||
22 | --disable-more-warnings \ | ||
23 | --with-dhclient=${base_sbindir}/dhclient \ | ||
24 | --with-iptables=${sbindir}/iptables \ | ||
25 | " | ||
26 | |||
27 | do_configure_prepend() { | ||
28 | cp ${WORKDIR}/gtk-doc.make ${S}/ | ||
29 | echo "EXTRA_DIST = version.xml" > gnome-doc-utils.make | ||
30 | sed -i -e 's:man \\:man:' -e s:docs::g ${S}/Makefile.am | ||
31 | sed -i -e /^docs/d ${S}/configure.ac | ||
32 | } | ||
33 | |||
34 | # Work around dbus permission problems since we lack a proper at_console | ||
35 | do_install_prepend() { | ||
36 | sed -i -e s:deny:allow:g ${S}/src/NetworkManager.conf | ||
37 | sed -i -e s:deny:allow:g ${S}/system-settings/src/nm-system-settings.conf || true | ||
38 | sed -i -e s:deny:allow:g ${S}/callouts/nm-dispatcher.conf | ||
39 | } | ||
40 | |||
41 | do_install_append () { | ||
42 | install -d ${D}/etc/dbus-1/event.d | ||
43 | # Test binaries | ||
44 | install -d ${D}/usr/bin | ||
45 | install -m 0755 ${S}/test/.libs/nm-tool ${D}/usr/bin | ||
46 | install -m 0755 ${S}/test/.libs/libnm* ${D}/usr/bin | ||
47 | install -m 0755 ${S}/test/.libs/nm-online ${D}/usr/bin | ||
48 | |||
49 | install -d ${D}/etc/NetworkManager/ | ||
50 | |||
51 | # Install an empty VPN folder as nm-connection-editor will happily segfault without it :o. | ||
52 | # With or without VPN support built in ;). | ||
53 | install -d ${D}/etc/NetworkManager/VPN | ||
54 | } | ||
55 | |||
56 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests" | ||
57 | |||
58 | FILES_libnmutil += "${libdir}/libnm-util.so.*" | ||
59 | FILES_libnmglib += "${libdir}/libnm_glib.so.*" | ||
60 | FILES_libnmglib-vpn += "${libdir}/libnm_glib_vpn.so.*" | ||
61 | |||
62 | |||
63 | FILES_${PN} += " \ | ||
64 | ${libexecdir} \ | ||
65 | ${libdir}/pppd/*/nm-pppd-plugin.so \ | ||
66 | ${libdir}/NetworkManager/*.so \ | ||
67 | ${datadir}/polkit-1 \ | ||
68 | ${datadir}/dbus-1 \ | ||
69 | ${base_libdir}/udev/* \ | ||
70 | ${base_libdir}/systemd \ | ||
71 | " | ||
72 | |||
73 | RRECOMMENDS_${PN} += "iptables" | ||
74 | RCONFLICTS_${PN} = "connman" | ||
75 | RDEPENDS_${PN} = "wpa-supplicant dhcp-client \ | ||
76 | ${@base_contains('COMBINED_FEATURES', '3gmodem', 'ppp', '', d)} \ | ||
77 | " | ||
78 | |||
79 | FILES_${PN}-dbg += "${libdir}/NetworkManager/.debug/ \ | ||
80 | ${libdir}/pppd/*/.debug/ " | ||
81 | |||
82 | FILES_${PN}-dev += "${datadir}/NetworkManager/gdb-cmd \ | ||
83 | ${libdir}/pppd/*/*.a \ | ||
84 | ${libdir}/pppd/*/*.la \ | ||
85 | ${libdir}/NetworkManager/*.a \ | ||
86 | ${libdir}/NetworkManager/*.la" | ||
87 | |||
88 | FILES_${PN}-tests = "${bindir}/nm-tool \ | ||
89 | ${bindir}/libnm_glib_test \ | ||
90 | ${bindir}/nminfotest \ | ||
91 | ${bindir}/nm-online \ | ||
92 | ${bindir}/nm-supplicant \ | ||
93 | ${bindir}/nm-testdevices" | ||
94 | |||
95 | |||
96 | pkg_postinst_${PN}() { | ||
97 | # can't do this offline | ||
98 | if [ "x$D" != "x" ]; then | ||
99 | exit 1 | ||
100 | fi | ||
101 | |||
102 | systemctl enable NetworkManager.service | ||
103 | } | ||
104 | |||
105 | pkg_prerm_${PN}() { | ||
106 | # can't do this offline | ||
107 | if [ "x$D" != "x" ]; then | ||
108 | exit 1 | ||
109 | fi | ||
110 | |||
111 | systemctl disable NetworkManager.service | ||
112 | } | ||