aboutsummaryrefslogtreecommitdiff
path: root/system/vmbinstallpkg
diff options
context:
space:
mode:
Diffstat (limited to 'system/vmbinstallpkg')
-rw-r--r--system/vmbinstallpkg/README13
-rw-r--r--system/vmbinstallpkg/doinst.sh29
-rw-r--r--system/vmbinstallpkg/slack-desc19
-rw-r--r--system/vmbinstallpkg/vmbinstallpkg.SlackBuild84
-rw-r--r--system/vmbinstallpkg/vmbinstallpkg.info10
5 files changed, 155 insertions, 0 deletions
diff --git a/system/vmbinstallpkg/README b/system/vmbinstallpkg/README
new file mode 100644
index 0000000000..d759430e6a
--- /dev/null
+++ b/system/vmbinstallpkg/README
@@ -0,0 +1,13 @@
+vmbinstallpkg and vmbremovepkg install and remove packages built from
+the SlackBuilds.org repository. Using HooRex, a dialog screen showing
+the target and all packages it depends on is presented for the user
+to approve for installation (or removal).
+
+The target dependencies calculated by HooRex must be up to date. This
+implies access to a local, up to date version of the SBo repository
+with HooRex configured to use it (man hoorex).
+
+Configurable settings are defined in /etc/default/vmbinstallpkg
+
+After packages are approved for installation or removal, sudo is used
+to enable the user to perform the necessary action.
diff --git a/system/vmbinstallpkg/doinst.sh b/system/vmbinstallpkg/doinst.sh
new file mode 100644
index 0000000000..d5669db6ad
--- /dev/null
+++ b/system/vmbinstallpkg/doinst.sh
@@ -0,0 +1,29 @@
+# $RCSfile: doinst.sh,v $
+# $Revision: 1.9 $
+# $Date: 2023-05-11 07:58:15+01 $
+# DW
+
+
+# FUNCTION: config()
+# DESCRIPTION: Discards identical copies of config and rc.INIT files.
+# ARGUMENTS: A single filename.
+# NOTE
+# Files should be installed with a .new extension.
+# Example: etc/rc.d/rc.myshinynewdaemon.new
+# We don't clobber if it's avoidable.
+# "slackpkg new-config" is one way that users can list+process .new files.
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/default/vmbinstallpkg.new
diff --git a/system/vmbinstallpkg/slack-desc b/system/vmbinstallpkg/slack-desc
new file mode 100644
index 0000000000..fdca383996
--- /dev/null
+++ b/system/vmbinstallpkg/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------------------------------------------------------|
+vmbinstallpkg: vmbinstallpkg (SlackBuild package installer/remover)
+vmbinstallpkg:
+vmbinstallpkg: vmbinstallpkg and vmbremovepkg install and remove packages built from
+vmbinstallpkg: the SlackBuilds.org repository. Using HooRex, a dialog screen showing
+vmbinstallpkg: the target and all packages it depends on is presented for the user
+vmbinstallpkg: to approve installation (or removal).
+vmbinstallpkg:
+vmbinstallpkg:
+vmbinstallpkg:
+vmbinstallpkg:
+vmbinstallpkg:
diff --git a/system/vmbinstallpkg/vmbinstallpkg.SlackBuild b/system/vmbinstallpkg/vmbinstallpkg.SlackBuild
new file mode 100644
index 0000000000..4829426428
--- /dev/null
+++ b/system/vmbinstallpkg/vmbinstallpkg.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/bash
+
+# Slackware build script for vmbinstallpkg
+
+# Copyright 2025 Christoph Willing, Sydney Australia
+# 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=vmbinstallpkg
+VERSION=${VERSION:-0.10.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH=noarch
+
+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}
+
+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 {} \;
+
+sed -i -e "s/%VERSION%/$VERSION/" vmb{install,remove}pkg
+
+mkdir -p $PKG/usr/bin
+cp vmbinstallpkg vmbremovepkg $PKG/usr/bin
+chmod 0755 $PKG/usr/bin/vmb{install,remove}pkg
+
+mkdir -p $PKG/etc/default
+cp vmbinstallpkg.defaults $PKG/etc/default/vmbinstallpkg.new
+chmod 0644 $PKG/etc/default/vmbinstallpkg.new
+
+# Might have a manpage sometime but not quite yet
+#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 \
+ README* LICENSE \
+ $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/vmbinstallpkg/vmbinstallpkg.info b/system/vmbinstallpkg/vmbinstallpkg.info
new file mode 100644
index 0000000000..7f9d77eaec
--- /dev/null
+++ b/system/vmbinstallpkg/vmbinstallpkg.info
@@ -0,0 +1,10 @@
+PRGNAM="vmbinstallpkg"
+VERSION="0.10.3"
+HOMEPAGE="https://gitlab.com/vmbuilder/vmbinstallpkg"
+DOWNLOAD="https://gitlab.com/vmbuilder/vmbinstallpkg/-/archive/0.10.3/vmbinstallpkg-0.10.3.tar.gz"
+MD5SUM="aa9d52fc65049f50b7eaadc9b78a6c80"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="hoorex"
+MAINTAINER="Christoph Willing"
+EMAIL="chris.willing@linux.com"