diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-01-30 16:18:02 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-31 10:15:39 +0700 |
commit | e711c6f3de02b1c23323e7a63107591a88b908ae (patch) | |
tree | ea37d3d44f61461d3eb4c4a2759b88478c9e50c7 /system | |
parent | 216079a09e6c1c2fdfd7b9fa783c39d57ede4cad (diff) |
Update CDEmu software series
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/cdemu-client/cdemu-client.SlackBuild | 6 | ||||
-rw-r--r-- | system/cdemu-client/cdemu-client.info | 6 | ||||
-rw-r--r-- | system/cdemu-daemon/cdemu-daemon.SlackBuild | 38 | ||||
-rw-r--r-- | system/cdemu-daemon/cdemu-daemon.info | 6 | ||||
-rw-r--r-- | system/cdemu-daemon/config/cdemu-daemon-dbus.conf | 19 | ||||
-rwxr-xr-x | system/cdemu-daemon/config/cdemu-daemon-session.sh | 19 | ||||
-rw-r--r-- | system/gcdemu/gcdemu.SlackBuild | 8 | ||||
-rw-r--r-- | system/gcdemu/gcdemu.info | 6 | ||||
-rw-r--r-- | system/image-analyzer/image-analyzer.SlackBuild | 6 | ||||
-rw-r--r-- | system/image-analyzer/image-analyzer.info | 8 |
10 files changed, 83 insertions, 39 deletions
diff --git a/system/cdemu-client/cdemu-client.SlackBuild b/system/cdemu-client/cdemu-client.SlackBuild index 60db85835814..4a5d06a6976c 100644 --- a/system/cdemu-client/cdemu-client.SlackBuild +++ b/system/cdemu-client/cdemu-client.SlackBuild @@ -4,7 +4,7 @@ # command-line client for cdemu-daemon # Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil <niels.horn@gmail.com> -# Copyright 2018-2020 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2018-2022 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cdemu-client -VERSION=${VERSION:-3.2.4} +VERSION=${VERSION:-3.2.5} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,7 +53,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ diff --git a/system/cdemu-client/cdemu-client.info b/system/cdemu-client/cdemu-client.info index 217ea9702710..e314bfa6a87b 100644 --- a/system/cdemu-client/cdemu-client.info +++ b/system/cdemu-client/cdemu-client.info @@ -1,8 +1,8 @@ PRGNAM="cdemu-client" -VERSION="3.2.4" +VERSION="3.2.5" HOMEPAGE="https://cdemu.sourceforge.io/about/client/" -DOWNLOAD="https://downloads.sourceforge.net/cdemu/cdemu-client-3.2.4.tar.bz2" -MD5SUM="5eadc5691fabfc7c54e926d5d1ceb8bc" +DOWNLOAD="https://downloads.sourceforge.net/cdemu/cdemu-client-3.2.5.tar.xz" +MD5SUM="965b27c5b36848c3420740c92fd64aad" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="cdemu-daemon" diff --git a/system/cdemu-daemon/cdemu-daemon.SlackBuild b/system/cdemu-daemon/cdemu-daemon.SlackBuild index 136050e5310a..514b798a135f 100644 --- a/system/cdemu-daemon/cdemu-daemon.SlackBuild +++ b/system/cdemu-daemon/cdemu-daemon.SlackBuild @@ -4,7 +4,7 @@ # Copyright 2008 Niklas "Nille" Åkerström # Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil <niels.horn@gmail.com> -# Copyright 2018-2020 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2018-2022 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cdemu-daemon -VERSION=${VERSION:-3.2.4} +VERSION=${VERSION:-3.2.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -74,7 +74,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -96,23 +96,29 @@ cd build make install DESTDIR=$PKG cd .. -# Fix standard configuration to make it more "Slackware"-like -sed \ - -e "/^LOG_FILE/s|/tmp/|/var/log/|" \ - -e "/^CONFIG_FILE/s|/etc/sysconfig/|/etc/|" \ - -i $PKG/usr/libexec/$PRGNAM-system.sh - -# Fix a silly error in the dbus file -sed \ - -e "/^Name=/s/CdemuDaemon/CDEmuDaemon/" \ - -i $PKG/usr/share/dbus-1/system-services/net.sf.cdemu.CDEmuDaemon.service - # Install init script mkdir -p $PKG/etc/rc.d install -m 0755 $CWD/rc.cdemud $PKG/etc/rc.d/rc.cdemud.new -# dbus and udev rules -mv $PKG/etc/dbus-1/system.d/cdemu-daemon-dbus.conf \ +# Install systemd sample services +mkdir -p $PKG/usr/lib/systemd/user +cp $TMP/$PRGNAM-$VERSION/service-example/cdemu-daemon.service \ + $PKG/usr/lib/systemd/user/cdemu-daemon.service +mkdir -p $PKG/usr/share/dbus-1/services +cp $TMP/$PRGNAM-$VERSION/service-example/net.sf.cdemu.CDEmuDaemon.service \ + $PKG/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service + +# Adapt systemd service for Slackware +sed \ + -e "/^SystemdService/d" \ + -e "/^Exec=/s|/bin/true|/usr/libexec/cdemu-daemon-session.sh|" \ + -i $PKG/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service +mkdir -p $PKG/usr/libexec +cp $CWD/config/cdemu-daemon-session.sh $PKG/usr/libexec/cdemu-daemon-session.sh + +# Install dbus and udev rules +mkdir -p $PKG/etc/dbus-1/system.d +cp $CWD/config/cdemu-daemon-dbus.conf \ $PKG/etc/dbus-1/system.d/cdemu-daemon-dbus.conf.new sed -i 's/group="root"/group="'$GROUP'"/' \ $PKG/etc/dbus-1/system.d/cdemu-daemon-dbus.conf.new diff --git a/system/cdemu-daemon/cdemu-daemon.info b/system/cdemu-daemon/cdemu-daemon.info index 3a27c0b19b5f..25b7e9156a52 100644 --- a/system/cdemu-daemon/cdemu-daemon.info +++ b/system/cdemu-daemon/cdemu-daemon.info @@ -1,8 +1,8 @@ PRGNAM="cdemu-daemon" -VERSION="3.2.4" +VERSION="3.2.6" HOMEPAGE="https://cdemu.sourceforge.io/about/daemon/" -DOWNLOAD="https://downloads.sourceforge.net/cdemu/cdemu-daemon-3.2.4.tar.bz2" -MD5SUM="9021f56fd95686f5b14d3b32f68e7b1a" +DOWNLOAD="https://downloads.sourceforge.net/cdemu/cdemu-daemon-3.2.6.tar.xz" +MD5SUM="21c8d2b4e8952999628ed755304b1b0f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libmirage vhba-module" diff --git a/system/cdemu-daemon/config/cdemu-daemon-dbus.conf b/system/cdemu-daemon/config/cdemu-daemon-dbus.conf new file mode 100644 index 000000000000..c450d78cf03b --- /dev/null +++ b/system/cdemu-daemon/config/cdemu-daemon-dbus.conf @@ -0,0 +1,19 @@ +<!DOCTYPE busconfig PUBLIC + "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> + +<busconfig> + <!-- Only root can own the CDEmuDaemon service on bus --> + <policy user="root"> + <allow own="net.sf.cdemu.CDEmuDaemon"/> + </policy> + <policy group="root"> + <allow own="net.sf.cdemu.CDEmuDaemon"/> + </policy> + + <!-- Allow anyone to invoke methods on the interface --> + <policy context="default"> + <allow send_destination="net.sf.cdemu.CDEmuDaemon"/> + </policy> +</busconfig> + diff --git a/system/cdemu-daemon/config/cdemu-daemon-session.sh b/system/cdemu-daemon/config/cdemu-daemon-session.sh new file mode 100755 index 000000000000..c533612a733e --- /dev/null +++ b/system/cdemu-daemon/config/cdemu-daemon-session.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# Starts the CDEmu daemon instance on D-Bus *session* bus. Optional +# configuration (number of devices, audio driver, log file) are read +# from ~/.cdemu-daemon + +# Default settings +NUM_DEVICES=1 +AUDIO_DRIVER=default +LOG_FILE=~/.cdemu-daemon.log + +# Read the settings +CONFIG_FILE=~/.cdemu-daemon + +if [ -f ${CONFIG_FILE} ]; then + . ${CONFIG_FILE}; +fi + +# Start the daemon +exec cdemu-daemon --ctl-device=/dev/vhba_ctl --bus=session --num-devices=${NUM_DEVICES} --audio-driver=${AUDIO_DRIVER} --logfile=${LOG_FILE} diff --git a/system/gcdemu/gcdemu.SlackBuild b/system/gcdemu/gcdemu.SlackBuild index 1ccf60cac059..0e56fae87403 100644 --- a/system/gcdemu/gcdemu.SlackBuild +++ b/system/gcdemu/gcdemu.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for gcdemu # # Copyright 2013 Niels Horn, Rio de Janeiro, RJ, Brazil <niels.horn@gmail.com> -# Copyright 2018-2020 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2018-2022 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,9 +26,9 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gcdemu -VERSION=${VERSION:-3.2.4} +VERSION=${VERSION:-3.2.6} ARCH=noarch -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,7 +50,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ diff --git a/system/gcdemu/gcdemu.info b/system/gcdemu/gcdemu.info index efc38a790cfb..4d3d405ab1e1 100644 --- a/system/gcdemu/gcdemu.info +++ b/system/gcdemu/gcdemu.info @@ -1,8 +1,8 @@ PRGNAM="gcdemu" -VERSION="3.2.4" +VERSION="3.2.6" HOMEPAGE="https://cdemu.sourceforge.io/about/gcdemu/" -DOWNLOAD="https://downloads.sourceforge.net/cdemu/gcdemu-3.2.4.tar.bz2" -MD5SUM="942e8b223985a67fb8096c44fdc40df4" +DOWNLOAD="https://downloads.sourceforge.net/cdemu/gcdemu-3.2.6.tar.xz" +MD5SUM="7a699b83d8cc68f74c8f9f1c57ed6c00" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="cdemu-daemon" diff --git a/system/image-analyzer/image-analyzer.SlackBuild b/system/image-analyzer/image-analyzer.SlackBuild index b17d3185b677..f80f2b78c9b0 100644 --- a/system/image-analyzer/image-analyzer.SlackBuild +++ b/system/image-analyzer/image-analyzer.SlackBuild @@ -4,7 +4,7 @@ # Application to display tree structure of disc images # Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil <niels.horn@gmail.com> -# Copyright 2018-2020 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2018-2022 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=image-analyzer -VERSION=${VERSION:-3.2.4} +VERSION=${VERSION:-3.2.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -74,7 +74,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ diff --git a/system/image-analyzer/image-analyzer.info b/system/image-analyzer/image-analyzer.info index c5822408b732..cd6cec4a07f4 100644 --- a/system/image-analyzer/image-analyzer.info +++ b/system/image-analyzer/image-analyzer.info @@ -1,8 +1,8 @@ PRGNAM="image-analyzer" -VERSION="3.2.4" -HOMEPAGE="https://cdemu.sourceforge.net/about/analyzer/" -DOWNLOAD="https://downloads.sourceforge.net/cdemu/image-analyzer-3.2.4.tar.bz2" -MD5SUM="ae7cb81e5909805bf96ce9dfa3ad1328" +VERSION="3.2.5" +HOMEPAGE="https://cdemu.sourceforge.io/about/analyzer/" +DOWNLOAD="https://downloads.sourceforge.net/cdemu/image-analyzer-3.2.5.tar.xz" +MD5SUM="c192392c2b6f8ae1365cc55b872d0fe9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libmirage cairocffi python3-matplotlib" |