diff options
Diffstat (limited to 'network/connman')
-rw-r--r-- | network/connman/README | 6 | ||||
-rw-r--r-- | network/connman/connman.SlackBuild | 104 | ||||
-rw-r--r-- | network/connman/connman.info | 10 | ||||
-rw-r--r-- | network/connman/netdev.patch | 15 | ||||
-rw-r--r-- | network/connman/rc.connmand | 33 | ||||
-rw-r--r-- | network/connman/slack-desc | 19 |
6 files changed, 187 insertions, 0 deletions
diff --git a/network/connman/README b/network/connman/README new file mode 100644 index 0000000000..a9efd3e6d8 --- /dev/null +++ b/network/connman/README @@ -0,0 +1,6 @@ +ConnMan is a daemon for managing Internet connections within embedded device and +integrates a vast range of communication features usually split between many daemons +such as DHCP, DNS and NTP. + +The result of this consolidation is low memory consumption with a fast, coherent, +synchronized reaction to changing network conditions. diff --git a/network/connman/connman.SlackBuild b/network/connman/connman.SlackBuild new file mode 100644 index 0000000000..c2f51e4ead --- /dev/null +++ b/network/connman/connman.SlackBuild @@ -0,0 +1,104 @@ +#!/bin/sh +# +# Slackware build script for connman + +# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version, with the following exception: +# the text of the GPL license may be omitted. + +# This program is distributed in the hope that it will be useful, but +# without any warranty; without even the implied warranty of +# merchantability or fitness for a particular purpose. Compiling, +# interpreting, executing or merely reading the text of the program +# may result in lapses of consciousness and/or very being, up to and +# including the end of all existence and the Universe as we know it. +# See the GNU General Public License for more details. + +# You may have received a copy of the GNU General Public License along +# with this program (most likely, a file named COPYING). If not, see +# <http://www.gnu.org/licenses/>. + + +PRGNAM=connman +VERSION=1.26 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z +cd $PRGNAM-$VERSION + +# use correct group for Slackware +patch -p1 -i ${CWD}/netdev.patch + +# Configure +CFLAGS=${SCFLAGS} CXXFLAGS=${SCXXFLAGS} LIBS=-lncurses \ + ./configure \ + --prefix=/usr \ + --libdir=/usr/${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-nmcompat \ + --enable-polkit \ + --enable-openvpn \ + --build=${ARCH}-slackware-linux + +make OPTS="$SLKCFLAGS" +make DESTDIR=${PKG} install + +mkdir -p ${PKG}/etc/rc.d +install -m 644 ${CWD}/rc.connmand ${PKG}/etc/rc.d/ + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p ${PKG}/usr/doc/${NAME}-${VERSION} +install -m644 AUTHORS COPYING ChangeLog INSTALL README TODO doc/*.txt \ + ${PKG}/usr/doc/${NAME}-${VERSION}/ +mkdir -p ${PKG}/usr/doc/${NAME}-${VERSION}/api +mv ${PKG}/usr/doc/${NAME}-${VERSION}/{*-api.txt,api/} + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +cd ${PKG} +mkdir install +install -m644 ${CWD}/slack-desc install/ +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/connman/connman.info b/network/connman/connman.info new file mode 100644 index 0000000000..38b07f4283 --- /dev/null +++ b/network/connman/connman.info @@ -0,0 +1,10 @@ +PRGNAM="connman" +VERSION="1.26" +HOMEPAGE="https://01.org/connman" +DOWNLOAD="https://www.kernel.org/pub/linux/network/connman/connman-1.26.tar.xz" +MD5SUM="ba05b110b7c81e5fa14e8b402ef37a9e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Ryan P.C. McQuen" +EMAIL="ryan.q@linux.com" diff --git a/network/connman/netdev.patch b/network/connman/netdev.patch new file mode 100644 index 0000000000..b125472e4b --- /dev/null +++ b/network/connman/netdev.patch @@ -0,0 +1,15 @@ +diff -Naur connman-1.20.orig/src/connman-dbus.conf connman-1.20/src/connman-dbus.conf +--- connman-1.20.orig/src/connman-dbus.conf 2011-04-18 09:03:56.000000000 +0000 ++++ connman-1.20/src/connman-dbus.conf 2014-01-01 07:52:53.758797399 +0000 +@@ -8,6 +8,11 @@ + <allow send_interface="net.connman.Counter"/> + <allow send_interface="net.connman.Notification"/> + </policy> ++ <policy group="netdev"> ++ <allow send_destination="net.connman"/> ++ <allow send_interface="net.connman.Agent"/> ++ <allow send_interface="net.connman.Counter"/> ++ </policy> + <policy at_console="true"> + <allow send_destination="net.connman"/> + </policy> diff --git a/network/connman/rc.connmand b/network/connman/rc.connmand new file mode 100644 index 0000000000..cac2087cfa --- /dev/null +++ b/network/connman/rc.connmand @@ -0,0 +1,33 @@ +#!/bin/sh +# Start/stop/restart the connman daemon. + +connmand_start() { + if [ -x /usr/sbin/connmand ]; then + echo "Starting connman daemon: /usr/sbin/connmand " + /usr/sbin/connmand + fi +} + +connmand_stop() { + killall connmand 2> /dev/null +} + +connmand_restart() { + connmand_stop + sleep 1 + connmand_start +} + +case "$1" in +'start') + connmand_start + ;; +'stop') + connmand_stop + ;; +'restart') + connmand_restart + ;; +*) + echo "usage $0 start|stop|restart" +esac diff --git a/network/connman/slack-desc b/network/connman/slack-desc new file mode 100644 index 0000000000..7a1d361633 --- /dev/null +++ b/network/connman/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +connman: connman (open source connection manager) +connman: +connman: ConnMan provides a daemon for managing internet connections within +connman: embedded devices running Linux. The Connection Manager is designed +connman: to be slim and to use as few resources as possible. It is fully +connman: modular, and can be extended through plug-ins, to support various +connman: wired and wireless technologies. +connman: +connman: https://01.org/connman +connman: +connman: |