From 120df4e0db159525806a9b33364483e76f9d51d3 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 24 Oct 2012 01:50:39 -0700 Subject: Wed Oct 24 01:47:51 PDT 2012 --- community-testing/connman/PKGBUILD | 46 ++++++++++++++++++++++ community-testing/connman/allow_group_network.diff | 12 ++++++ community-testing/connman/connmand-daemon | 44 +++++++++++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 community-testing/connman/PKGBUILD create mode 100644 community-testing/connman/allow_group_network.diff create mode 100755 community-testing/connman/connmand-daemon (limited to 'community-testing/connman') 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 +# Contributor: Lucas De Marchi + +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 @@ + + + ++ ++ ++ + + + 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 -- cgit v1.2.3-54-g00ecf