[Lunar-commits] <moonbase> connman: Errp. It would help if I added the POST_INSTALL. Also I forgot to

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Tue Jan 10 20:41:30 CET 2012


commit 5e6b24b2b6729035882104ec766d80dc3f56f101
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Tue Jan 10 14:41:30 2012 -0500

    connman: Errp. It would help if I added the POST_INSTALL. Also I forgot to
    
    check 2.6 kernels. Seems they lack a linux/if_alg.h header and adjusting the
    BUILD via a couple of sedits, see; http://patches.openembedded.org/patch/16621/
    
    Note the date of the patch link.
---
 net/connman/BUILD        |    9 +++++++++
 net/connman/POST_INSTALL |    6 ++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/net/connman/BUILD b/net/connman/BUILD
index 0cf1c83..89f6a57 100644
--- a/net/connman/BUILD
+++ b/net/connman/BUILD
@@ -1,5 +1,14 @@
 (
 
+# Need to remove this. Kernels 2.6 do not have the if_alg.h header. See
+# http://patches.openembedded.org/patch/16621/ 
+  sedit "s:tools/alg-test::" Makefile.am &&
+  sedit 's:AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes,::g;
+                s:AC_MSG_ERROR(User-space algorithm header files are required))::g' configure.ac &&
+
+  automake &&
+  autoconf &&
+
   OPTS+=" --enable-ethernet --enable-loopback --enable-client --enable-pie --enable-threads --enable-tools" &&
 
   default_build
diff --git a/net/connman/POST_INSTALL b/net/connman/POST_INSTALL
new file mode 100644
index 0000000..79e8a79
--- /dev/null
+++ b/net/connman/POST_INSTALL
@@ -0,0 +1,6 @@
+if [ "$(/usr/lib/connman/test/get-state | grep "System is online")" != "System is online" ] ; then
+    message "Connamn is online"
+   else
+    /usr/lib/connman/test/test-connman enable wifi
+    /usr/lib/connman/test/test-connman enable ethernet
+fi


More information about the Lunar-commits mailing list