diff options
author | Damian Perticone <mjolnirdam@gmail.com> | 2022-05-04 16:42:16 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-05-07 13:59:35 +0700 |
commit | b141ea80b00ae4cfdcea7b3bbe1b44c5b306d893 (patch) | |
tree | 4f536f4f2499182f5ec748ad5fa5bb1617960206 /desktop | |
parent | 703e0e772a9a17cb2f28a945d6057f0f978b714a (diff) |
desktop/mwm-utils: Added (utilities for emwm)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/mwm-utils/README | 29 | ||||
-rw-r--r-- | desktop/mwm-utils/mwm-utils.SlackBuild | 113 | ||||
-rw-r--r-- | desktop/mwm-utils/mwm-utils.info | 10 | ||||
-rw-r--r-- | desktop/mwm-utils/slack-desc | 19 |
4 files changed, 171 insertions, 0 deletions
diff --git a/desktop/mwm-utils/README b/desktop/mwm-utils/README new file mode 100644 index 0000000000000..57ab613e25a1d --- /dev/null +++ b/desktop/mwm-utils/README @@ -0,0 +1,29 @@ +UTILITIES FOR EMWM +================== +xmsm is simple session manager that provides session configuration and +screen locking and also launches the window manager and the toolbox. + +xmtoolbox is an application launcher/menu configured with a simple +text file. +It also communicates with the session manager to provide lock, log out, +and shutdown commands. + +NOTES +======================= +The session manager may be run from XDM by setting the +DisplayManager*session X resource in xdm-config to xmsession, or by +execing xmsm from ~/.Xprofile. +Just make sure to test whether it works by running 'xinit xmsession' +before doing any of the above. Note that 'xmsession' is just a shell +script that sets up the environment for xmsm, and is not needed when +this has been done already. +- +xmsm is installed suid root, this is required for screen locking and +running sbin commands. Privileges are dropped at startup and are +reacquired only when necessary. +- +System shutdown, reboot and suspend commands can be altered at compile +time only. Edit constants in smconf.h, or override them in CFLAGS if +necessary. + +copy /etc/X11/toolboxrc to ~/.toolboxrc for per-user configuration diff --git a/desktop/mwm-utils/mwm-utils.SlackBuild b/desktop/mwm-utils/mwm-utils.SlackBuild new file mode 100644 index 0000000000000..8f1a308543dd2 --- /dev/null +++ b/desktop/mwm-utils/mwm-utils.SlackBuild @@ -0,0 +1,113 @@ +#!/bin/bash + +# Slackware build script for mwm-utils + +# Copyright 2022 Damian Perticone, Berisso, Argentina +# 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=mwm-utils +VERSION=${VERSION:-1.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make + +cd src +install -Dm 755 xmsession -t $PKG/usr/bin +install -Dm 755 xmtoolbox -t $PKG/usr/bin +install -Dm 4755 xmsm -t $PKG/usr/bin +install -Dm 644 xmtoolbox.1 -t $PKG/usr/man/man1 +install -Dm 644 xmsm.1 -t $PKG/usr/man/man1 +mv XmSm.ad XmSm +install -Dm 644 XmSm -t $PKG/etc/X11/app-defaults +mv XmToolbox.ad XmToolbox +install -Dm 644 XmToolbox -t $PKG/etc/X11/app-defaults +install -Dm 644 toolboxrc -t $PKG/etc/X11 + +cd .. + +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 + +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 COPYING README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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 diff --git a/desktop/mwm-utils/mwm-utils.info b/desktop/mwm-utils/mwm-utils.info new file mode 100644 index 0000000000000..6434ea9f6f758 --- /dev/null +++ b/desktop/mwm-utils/mwm-utils.info @@ -0,0 +1,10 @@ +PRGNAM="mwm-utils" +VERSION="1.0" +HOMEPAGE="https://fastestcode.org/emwm.html" +DOWNLOAD="https://github.com/alx210/mwm-utils/archive/v1.0/mwm-utils-1.0.tar.gz" +MD5SUM="a7d796a1196b027a5e8749aaac0b6994" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Damian Perticone" +EMAIL="mjolnirdam@gmail.com" diff --git a/desktop/mwm-utils/slack-desc b/desktop/mwm-utils/slack-desc new file mode 100644 index 0000000000000..9c800a7498eca --- /dev/null +++ b/desktop/mwm-utils/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------------------------------------------------------| +mwm-utils: mwm-utils (utilities for emwm) +mwm-utils: +mwm-utils: Mwm-utils consist on xmsm and xmtoolbox, xmsm is simple session +mwm-utils: manager provides session configuration, screen locking and launches +mwm-utils: the window manager and toolbox. xmtoolbox is an application +mwm-utils: launcher/menu it communicates with the session manager to provide +mwm-utils: lock, log out, and shutdown commands. +mwm-utils: +mwm-utils: +mwm-utils: +mwm-utils: |