summaryrefslogtreecommitdiff
path: root/community-testing/connman
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-24 01:50:39 -0700
committerroot <root@rshg054.dnsready.net>2012-10-24 01:50:39 -0700
commit120df4e0db159525806a9b33364483e76f9d51d3 (patch)
treeb78de64b601a46cc403d8663201bad6feb41c791 /community-testing/connman
parent3c19af9355ba86a5b99d6e5a57ecaa68a7ea6e8e (diff)
Wed Oct 24 01:47:51 PDT 2012
Diffstat (limited to 'community-testing/connman')
-rw-r--r--community-testing/connman/PKGBUILD46
-rw-r--r--community-testing/connman/allow_group_network.diff12
-rwxr-xr-xcommunity-testing/connman/connmand-daemon44
3 files changed, 102 insertions, 0 deletions
diff --git a/community-testing/connman/PKGBUILD b/community-testing/connman/PKGBUILD
new file mode 100644
index 000000000..a52740fca
--- /dev/null
+++ b/community-testing/connman/PKGBUILD
@@ -0,0 +1,46 @@
+#$Id: PKGBUILD 78716 2012-10-23 04:26:25Z dwallace $
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Lucas De Marchi <lucas.de.marchi@gmail.com>
+
+pkgname=connman
+pkgver=1.8
+pkgrel=2
+pkgdesc="Wireless LAN network manager"
+url="http://connman.net/"
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('dbus-core' 'iptables' 'glib2' 'gnutls')
+conflicts=('openresolv')
+optdepends=('bluez: Support for Bluetooth devices'
+ 'wpa_supplicant: For WiFi devices')
+makedepends=('bluez' 'wpa_supplicant' 'openconnect' 'openvpn')
+options=('!libtool')
+source=('connmand-daemon'
+ "http://www.kernel.org/pub/linux/network/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+ 'allow_group_network.diff')
+
+md5sums=('88ece7cbf1d0d289545ce4f8553fdab8'
+ '689468f92a1dcb2c0e30d7d00410ad87'
+ 'a8d22ee089fb0ed725130d16ad393047')
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -Np1 -i "${srcdir}/allow_group_network.diff"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --with-systemdunitdir=/usr/lib/systemd/system \
+ --enable-threads \
+ --enable-openconnect \
+ --enable-openvpn \
+ --enable-polkit \
+ --enable-client
+
+ make
+}
+
+package(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+ install -Dm755 "$srcdir"/connmand-daemon "$pkgdir"/etc/rc.d/connmand
+}
diff --git a/community-testing/connman/allow_group_network.diff b/community-testing/connman/allow_group_network.diff
new file mode 100644
index 000000000..027d933f7
--- /dev/null
+++ b/community-testing/connman/allow_group_network.diff
@@ -0,0 +1,12 @@
+--- a/src/connman-polkit.conf 2010-11-05 12:09:04.285423955 -0200
++++ b/src/connman-polkit.conf 2010-11-05 12:10:53.041423934 -0200
+@@ -5,6 +5,9 @@
+ <allow own="net.connman"/>
+ <allow send_interface="net.connman.Agent"/>
+ </policy>
++ <policy group="network">
++ <allow send_interface="net.connman.Agent"/>
++ </policy>
+ <policy context="default">
+ <allow send_destination="net.connman"/>
+ </policy>
diff --git a/community-testing/connman/connmand-daemon b/community-testing/connman/connmand-daemon
new file mode 100755
index 000000000..aff1ddeb2
--- /dev/null
+++ b/community-testing/connman/connmand-daemon
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+DESC="Connection Manager"
+NAME="connmand"
+ARGS=""
+DAEMON="/usr/sbin/$NAME"
+
+PID=`pidof -o %PPID ${DAEMON}`
+case "$1" in
+ start)
+ stat_busy "Starting ${DESC}"
+ if [ -z "$PID" ]; then
+ ${DAEMON} ${ARGS}
+ fi
+ if [ ! -z "$PID" -o $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon ${NAME}
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping ${DESC}"
+ [ ! -z "$PID" ] && killall ${DAEMON} &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon ${NAME}
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+ ;;
+esac
+exit 0