#$ID$ # Maintainer: Daniel Wallace # Contributor: Lucas De Marchi pkgname=connman pkgver=1.6 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' '317fc8603c15fba07478d71c1891e7cb' 'a8d22ee089fb0ed725130d16ad393047') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i "${srcdir}/allow_group_network.diff" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --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 }