From 33723a8059c0d6c0e9726c37eeb26fdfaf2ccf0d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 3 Dec 2009 07:42:16 +0100 Subject: [PATCH] Added connman-0.47 build template. --HG-- extra : convert_revision : 1e749c486bf6d00cadac6971a6de67ad1527b5fc --- srcpkgs/connman-devel | 1 + srcpkgs/connman/connman-devel.template | 18 ++++++++++++ srcpkgs/connman/files/connmand.rc | 9 ++++++ srcpkgs/connman/template | 38 ++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 120000 srcpkgs/connman-devel create mode 100644 srcpkgs/connman/connman-devel.template create mode 100644 srcpkgs/connman/files/connmand.rc create mode 100644 srcpkgs/connman/template diff --git a/srcpkgs/connman-devel b/srcpkgs/connman-devel new file mode 120000 index 0000000000..b57e8c232d --- /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 0000000000..f1158be295 --- /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 0000000000..10f222131f --- /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 0000000000..99cab8da19 --- /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 +}