# Template file for 'connman'
pkgname=connman
version=0.47
distfiles="${KERNEL_SITE}/network/$pkgname/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--localstatedir=/var --enable-pie
 --enable-ethernet --enable-wifi --enable-bluetooth --enable-threads
 --enable-modemmgr --enable-udhcp --enable-dhclient --enable-resolvconf
 --enable-loopback --enable-dnsproxy --enable-hso --enable-mbm
 --enable-client --enable-tools --enable-test --enable-fake
 --disable-ofono --disable-ppp --disable-iwmx --disable-iospm --disable-polkit"
short_desc="Open Source CONNection MANager"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=40a3080a1cdec399033490a9b57b071237a898d2518178096479ea80ed48f9d8
long_desc="
 The ConnMan project provides a daemon for managing internet connections
 within embedded devices running the Linux operating system. The Connection
 Manager is designed to be slim and to use as few resources as possible,
 so it can be easily integrated. It is a fully modular system that can be
 extended, through plug-ins, to support all kinds of wired or wireless
 technologies. Also, configuration methods, like DHCP and domain name
 resolving, are implemented using plug-ins. The plug-in approach allows for
 easy adaption and modification for various use cases."

conf_files="/etc/dbus-1/system.d/connman.conf"
openrc_services="connmand default"
subpackages="$pkgname-devel"

Add_dependency full glibc
Add_dependency full dbus
Add_dependency full glib
Add_dependency full udev

post_install()
{
	install -D -m755 ${FILESDIR}/connmand.rc \
		${DESTDIR}/etc/init.d/connmand
}
