summaryrefslogtreecommitdiffstats
path: root/network/connman
diff options
context:
space:
mode:
Diffstat (limited to 'network/connman')
-rw-r--r--network/connman/README31
-rw-r--r--network/connman/allow_group_network.diff13
-rw-r--r--network/connman/connman.SlackBuild91
-rw-r--r--network/connman/connman.info12
-rw-r--r--network/connman/slack-desc18
5 files changed, 88 insertions, 77 deletions
diff --git a/network/connman/README b/network/connman/README
index 4ce1967544..31cba91d83 100644
--- a/network/connman/README
+++ b/network/connman/README
@@ -1,8 +1,27 @@
-connman (open source connection manager)
+connman (Connection management daemon)
-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.
+Connman provides a daemon for managing Internet connections. The
+Connection Manager is designed to be slim and to use as few resources
+as possible. It is fully modular system that can be extended through
+plug-ins. The plug-in approach allows for easy adaption and
+modification for various use cases. Connman implements DNS resolving
+and caching, DHCP clients for both IPv4 and IPv6, link-local IPv4
+address handling and tethering (IP connection sharing) to clients via
+USB, ethernet, WiFi, cellular and Bluetooth.
-The result of this consolidation is low memory consumption with a fast,
-coherent, synchronized reaction to changing network conditions.
+To run connman on startup, run (as root):
+ chmod +x /etc/rc.d/rc.connmand
+then add this to your /etc/rc.d/rc.local:
+ if [ -x /etc/rc.d/rc.connmand ]; then
+ /etc/rc.d/rc.connmand start
+ fi
+Make sure other networking services like NetworkManager or WPA
+Supplicant are not also configured to run on startup.
+
+By default, this SlackBuild will build connman with support for iwd,
+polkit, and nmcompat (NetworkManager compatibility interfaces). If
+you wish to disable any of these, you may run the SlackBuild with
+the DISABLE_IWD, DISABLE_POLKIT, and DISABLE_NMCOMPAT environment
+variables set, e.g.
+ DISABLE_IWD=yes DISABLE_POLKIT=yes DISABLE_NMCOMPAT=yes \
+ ./connman.SlackBuild
diff --git a/network/connman/allow_group_network.diff b/network/connman/allow_group_network.diff
deleted file mode 100644
index 2ab8d9f720..0000000000
--- a/network/connman/allow_group_network.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/src/connman-polkit.conf 2010-11-05 12:09:04.285423955 -0200
-+++ b/src/connman-polkit.conf 2010-11-05 12:10:53.041423934 -0200
-@@ -5,6 +5,9 @@
- <allow own="net.connman"/>
- <allow send_interface="net.connman.Agent"/>
- </policy>
-+ <policy group="network">
-+ <allow send_interface="net.connman.Agent"/>
-+ </policy>
- <policy context="default">
- <allow send_destination="net.connman"/>
- </policy>
-
diff --git a/network/connman/connman.SlackBuild b/network/connman/connman.SlackBuild
index 2cee777343..8883b13f7d 100644
--- a/network/connman/connman.SlackBuild
+++ b/network/connman/connman.SlackBuild
@@ -1,31 +1,34 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for connman
-# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
-
-# 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 2 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/>.
+# Copyright 2023 Samuel Young, MO, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=connman
-VERSION=${VERSION:-1.32}
+VERSION=${VERSION:-1.42}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -60,7 +67,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,14 +76,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -p1 < $CWD/allow_group_network.diff
+iwd="--enable-iwd" ; [ "${DISABLE_IWD:-no}" != "no" ] && iwd=""
+polkit="--enable-polkit" ; [ "${DISABLE_POLKIT:-no}" != "no" ] && polkit=""
+nmcompat="--enable-nmcompat" ; [ "${DISABLE_NMCOMPAT:-no}" != "no" ] && nmcompat=""
-# fix cmst issue
-sed -i "s|deny|allow|" plugins/connman-nmcompat.conf
+autoreconf -i
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-LIBS=-lncurses \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -84,16 +91,19 @@ LIBS=-lncurses \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-nmcompat \
- --enable-polkit \
- --enable-openvpn \
- --enable-client \
- --build=${ARCH}-slackware-linux
+ --disable-static \
+ --build=$ARCH-slackware-linux \
+ $iwd \
+ $polkit \
+ $nmcompat
make
make install DESTDIR=$PKG
-cp -av client/connmanctl $PKG/usr/sbin/
+mkdir -p $PKG/etc/rc.d
+install -m 644 $CWD/rc.connmand $PKG/etc/rc.d/
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
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
@@ -101,19 +111,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
-mkdir -p ${PKG}/etc/rc.d
-install -m 644 ${CWD}/rc.connmand ${PKG}/etc/rc.d/
-
-mkdir -p ${PKG}/usr/doc/${PRGNAM}-${VERSION}
-install -m644 AUTHORS COPYING ChangeLog INSTALL README TODO doc/*.txt \
- ${PKG}/usr/doc/${PRGNAM}-${VERSION}/
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog HACKING README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-mkdir -p ${PKG}/usr/doc/${PRGNAM}-${VERSION}/api
-mv ${PKG}/usr/doc/${PRGNAM}-${VERSION}/{*-api.txt,api/}
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/connman/connman.info b/network/connman/connman.info
index ae7d3d5b18..101cde64c9 100644
--- a/network/connman/connman.info
+++ b/network/connman/connman.info
@@ -1,10 +1,10 @@
PRGNAM="connman"
-VERSION="1.32"
-HOMEPAGE="https://01.org/connman"
-DOWNLOAD="https://www.kernel.org/pub/linux/network/connman/connman-1.32.tar.xz"
-MD5SUM="d0c3071c1d8dec9cd17b760f862de2ad"
+VERSION="1.42"
+HOMEPAGE="https://git.kernel.org/pub/scm/network/connman/connman.git"
+DOWNLOAD="https://git.kernel.org/pub/scm/network/connman/connman.git/snapshot/connman-1.42.tar.gz"
+MD5SUM="5943f0687dff53f7c252e8a44cb9eb90"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Jason Graham"
-EMAIL="jgraha8@gmail.com"
+MAINTAINER="Samuel Young"
+EMAIL="samyoung12788@gmail.com"
diff --git a/network/connman/slack-desc b/network/connman/slack-desc
index 7a1d361633..d1039da9af 100644
--- a/network/connman/slack-desc
+++ b/network/connman/slack-desc
@@ -6,14 +6,14 @@
# 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 (Connection management daemon)
connman:
+connman: Connman provides a daemon for managing Internet connections. The
+connman: Connection Manager is designed to be slim and to use as few resources
+connman: as possible. It is fully modular system that can be extended through
+connman: plug-ins. The plug-in approach allows for easy adaption and
+connman: modification for various use cases. Connman implements DNS resolving
+connman: and caching, DHCP clients for both IPv4 and IPv6, link-local IPv4
+connman: address handling and tethering (IP connection sharing) to clients via
+connman: USB, ethernet, WiFi, cellular and Bluetooth.
connman: