diff --git a/srcpkgs/connman-devel b/srcpkgs/connman-devel new file mode 120000 index 00000000000..b57e8c232da --- /dev/null +++ b/srcpkgs/connman-devel @@ -0,0 +1 @@ +connman \ No newline at end of file diff --git a/srcpkgs/connman/connman-devel.template b/srcpkgs/connman/connman-devel.template new file mode 100644 index 00000000000..f1158be2958 --- /dev/null +++ b/srcpkgs/connman/connman-devel.template @@ -0,0 +1,18 @@ +# Template file for 'connman-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run udev-devel +Add_dependency run dbus-glib-devel +Add_dependency run connman + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/connman/files/connmand.rc b/srcpkgs/connman/files/connmand.rc new file mode 100644 index 00000000000..10f222131fa --- /dev/null +++ b/srcpkgs/connman/files/connmand.rc @@ -0,0 +1,9 @@ +#!/sbin/runscript + +command=/usr/sbin/connmand +name="Connection Manager daemon" + +depend() +{ + need dbus localmount +} diff --git a/srcpkgs/connman/template b/srcpkgs/connman/template new file mode 100644 index 00000000000..99cab8da19e --- /dev/null +++ b/srcpkgs/connman/template @@ -0,0 +1,38 @@ +# 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 " +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 +}