summaryrefslogtreecommitdiffstats
path: root/network/cmst
diff options
context:
space:
mode:
Diffstat (limited to 'network/cmst')
-rw-r--r--network/cmst/README15
-rw-r--r--network/cmst/cmst.SlackBuild46
-rw-r--r--network/cmst/cmst.info14
-rw-r--r--network/cmst/doinst.sh6
-rw-r--r--network/cmst/slack-desc18
5 files changed, 55 insertions, 44 deletions
diff --git a/network/cmst/README b/network/cmst/README
index 3cea99b65f..e42b7bcb3a 100644
--- a/network/cmst/README
+++ b/network/cmst/README
@@ -1,10 +1,9 @@
-cmst (GUI for connman daemon)
+cmst (Qt frontend for Connman)
-QT GUI for Connman with system tray icon.
+Graphical user interface to control the connman daemon. The connman
+daemon must be started as you normally would, this program just
+interfaces with that daemon. You can see what technologies and
+services connman has found, and for wifi services an agent is
+registered to assist in obtaining the information from you necessary
+to logon to the wifi service.
-The program provides graphical user interface to control the connman
-daemon. The connman daemon must be started as you normally would,
-this program just interfaces with that daemon. You can see what
-technologies and services connman has found, and for wifi services an
-agent is registered to assist in obtaining the information from you
-necessary to logon the wifi service.
diff --git a/network/cmst/cmst.SlackBuild b/network/cmst/cmst.SlackBuild
index 6fa731b543..88b8c3976e 100644
--- a/network/cmst/cmst.SlackBuild
+++ b/network/cmst/cmst.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for cmst
-# Copyright 2015 Diego Borghetti <bdiego[at]gmail[dot]com>
+# Copyright 2023 Samuel Young, MO, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -11,7 +11,7 @@
# 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
+# 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,
@@ -22,26 +22,33 @@
# 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=cmst
-VERSION=${VERSION:-2016.04.03}
+VERSION=${VERSION:-2023.03.14}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -59,10 +66,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf ${PRGNAM}
-tar xvf $CWD/${PRGNAM}-$VERSION.tar.gz
-# The original tar.gz file don't have the version in the folder.
-cd ${PRGNAM}
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,24 +76,24 @@ 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 {} \;
-export CFLAGS="$SLKCFLAGS"
-export CXXFLAGS="$SLKCFLAGS"
-export OPENSOURCE_CXXFLAGS="$SLKCFLAGS"
-export USE_LIBPATH="/usr/lib${LIBDIRSUFFIX}"
-
qmake-qt5 DISTRO=slackware
+USE_LIBPATH="/usr/lib${LIBDIRSUFFIX}" \
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
make
make install INSTALL_ROOT=$PKG
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
-mv $PKG/usr/share/man $PKG/usr/man
+mv $PKG/usr/share/man $PKG/usr
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/usr/doc/$PRGNAM-$VERSION
-cp -a text/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ README.md text/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -95,4 +101,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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/cmst/cmst.info b/network/cmst/cmst.info
index 4152c3ce9a..dc28e059ab 100644
--- a/network/cmst/cmst.info
+++ b/network/cmst/cmst.info
@@ -1,10 +1,10 @@
PRGNAM="cmst"
-VERSION="2016.04.03"
-HOMEPAGE="https://github.com/andrew-bibb/cmst/releases"
-DOWNLOAD="https://github.com/andrew-bibb/cmst/releases/download/cmst-2016.04.03/cmst-2016.04.03.tar.gz"
-MD5SUM="62aceed905b0d837ece686696d247d17"
+VERSION="2023.03.14"
+HOMEPAGE="https://github.com/andrew-bibb/cmst"
+DOWNLOAD="https://github.com/andrew-bibb/cmst/releases/download/cmst-2023.03.14/cmst-2023.03.14.tar.xz"
+MD5SUM="e4d0d63b23010b9a6a39dca08b973d73"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="qt5 connman"
-MAINTAINER="Diego Borghetti"
-EMAIL="bdiego[at]gmail[dot]com"
+REQUIRES="connman"
+MAINTAINER="Samuel Young"
+EMAIL="samyoung12788@gmail.com"
diff --git a/network/cmst/doinst.sh b/network/cmst/doinst.sh
index 5fb28930db..65c7e2eeb9 100644
--- a/network/cmst/doinst.sh
+++ b/network/cmst/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/network/cmst/slack-desc b/network/cmst/slack-desc
index 3df28a6b1d..7a0d2ef7b0 100644
--- a/network/cmst/slack-desc
+++ b/network/cmst/slack-desc
@@ -6,14 +6,14 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-cmst: cmst (GUI for connman daemon)
+cmst: cmst (Qt frontend for Connman)
cmst:
-cmst: The program provides graphical user interface to control the
-cmst: connman daemon. The connman daemon must be started
-cmst: as you normally would, this program just interfaces with that
-cmst: daemon. You can see what technologies and services connman
-cmst: has found, and for wifi services an agent is registered to assist
-cmst: in obtaining the information from you necessary to logon the
-cmst: wifi service.
+cmst: Cmst is a Qt based frontend for the connman connection manager. This
+cmst: package also provides a systemtray icon.
+cmst:
+cmst:
+cmst:
+cmst:
+cmst:
+cmst: Homepage: https://github.com/andrew-bibb/cmst
cmst:
-cmst: Homepage: https://github.com/andrew-bibb/cmst/releases