aboutsummaryrefslogtreecommitdiff
path: root/t/travis-deps
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-11-28 09:59:36 -0500
committerSlack Coder <slackcoder@server.ky>2025-02-19 09:55:01 -0500
commit24493e32d8548110c514db9bc09efb5aba276ca5 (patch)
tree80319bacf6eb845741beb8d331969884495d6f4c /t/travis-deps
parent82a520dcb6f6cfe538c68fd04a8a7b94f3b177c2 (diff)
downloadsbotools2-24493e32d8548110c514db9bc09efb5aba276ca5.tar.xz
Set To Do branch
Diffstat (limited to 't/travis-deps')
-rwxr-xr-xt/travis-deps/convertpkg-compat3259
-rw-r--r--t/travis-deps/install.sh22
-rwxr-xr-xt/travis-deps/installpkg57
-rwxr-xr-xt/travis-deps/makepkg25
-rw-r--r--t/travis-deps/perf.dummy2
-rwxr-xr-xt/travis-deps/removepkg3
-rwxr-xr-xt/travis-deps/upgradepkg119
7 files changed, 0 insertions, 287 deletions
diff --git a/t/travis-deps/convertpkg-compat32 b/t/travis-deps/convertpkg-compat32
deleted file mode 100755
index fd9c3d0..0000000
--- a/t/travis-deps/convertpkg-compat32
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/bash
-
-while [[ $# > 1 ]]
-do
-key="$1"
-
-case $key in
- -i)
- INPUT="$2"
- shift
- ;;
- -o)
- OUTPKG="$2"
- shift
- ;;
- -d)
- DESTINATION="$2"
- shift
- ;;
- -s)
- DESC="$2"
- shift
- ;;
- -e)
- EXT="$2"
- shift
- ;;
-esac
-shift
-done
-
-ARCH=${ARCH:-$(uname -m)}
-TAG=${TAG:-compat32}
-OUTPUT=${OUTPUT:-/tmp}
-TMP=${TMP:-/tmp}
-EXT=${EXT:-tgz}
-PKGFILE="$(basename ${INPUT})"
-PKGPATH="$(cd $(dirname ${INPUT}); pwd)/$(basename ${INPUT})"
-PKGNAM=$(echo $PKGFILE | rev | cut -f4- -d- | rev)
-VERSION=$(echo $PKGFILE | rev | cut -f3 -d- | rev)
-BUILD=$(echo $PKGFILE | rev | cut -f1 -d- | cut -f2- -d. | rev)
-OUTPKG=${OUTPKG:-"${PKGNAM}-compat32-${VERSION}-${ARCH}-${BUILD}${TAG}.${EXT}"}
-PKGNAM32=$(echo $OUTPKG | rev | cut -f4- -d- | rev)
-
-echo "Converting package $PKGNAM (version $VERSION) to $OUTPKG ($PKGNAM32)"
-
-if [ "$PKGNAM" = "multilibfail" ]
-then
- exit 1
-fi
-
-PKG=$TMP/package-$PKGNAM32
-rm -rf $PKG
-mkdir -p $PKG $TMP
-
-touch $OUTPUT/$OUTPKG
-echo "Slackware package $OUTPUT/$OUTPKG created."
-
-echo "Package created: $OUTPUT/$OUTPKG"
diff --git a/t/travis-deps/install.sh b/t/travis-deps/install.sh
deleted file mode 100644
index 77b4b80..0000000
--- a/t/travis-deps/install.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-mkdir -p /var/log/packages
-mkdir -p /home/travis/build/pink-mist/sbotools/cover_db
-touch "/var/log/packages/aaa_base-14.1-x86_64-1"
-cp -a t/travis-deps/*pkg /sbin/
-echo "127.0.0.1 slackware.uk" >> /etc/hosts
-mkdir -p /usr/sbo/repo
-touch "/usr/sbo/repo/SLACKBUILDS.TXT"
-
-if [ "$TEST_MULTILIB" = "1" ]
-then
- mkdir -p /etc/profile.d/
- touch /etc/profile.d/32dev.sh
-elif [ "$TEST_MULTILIB" = "2" ]
-then
- mkdir -p /etc/profile.d/ /usr/sbin/
- touch /etc/profile.d/32dev.sh
- cp -a t/travis-deps/convertpkg-compat32 /usr/sbin
-fi
-git config --global user.email "sbotools@travis.ci"
-git config --global user.name "Travis CI"
-echo "travis-deps/install.sh: Done.";
diff --git a/t/travis-deps/installpkg b/t/travis-deps/installpkg
deleted file mode 100755
index 1c4c8b7..0000000
--- a/t/travis-deps/installpkg
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/bash
-
-# Stripped down and useless version of this script merely used for testing.
-# But some bits taken from the original upgradepkg, so here's its copyright
-# notice.
-
-# Copyright 1999 Patrick Volkerding, Moorhead, Minnesota, USA
-# Copyright 2001, 2002, 2003 Slackware Linux, Inc., Concord, California, USA
-# Copyright 2009, 2015 Patrick J. Volkerding, Sebeka, MN, USA
-# Copyright 2015 Michal Nazarewicz <mina86@mina86.com>
-# 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.
-#
-# Modified to handle either old 8.3 or new package-version-arch-build.tgz
-# packages, Sat Nov 17 14:25:58 PST 2001 volkerdi
-#
-# Rewritten to clean out _all_ old packages of a given basename, not just
-# the first one found, Thu Apr 4 01:01:05 PST 2002 volkerdi
-#
-# Added --install-new and --reinstall, Fri May 31 14:11:14 PDT 2002 volkerdi
-# Added --dry-run, Sat Apr 26 18:13:29 PDT 2003
-#
-# Sat Apr 25 21:18:53 UTC 2009
-# Support new compression types and package extensions.
-# Converted to use new pkgbase() function to remove pathname and
-# valid package extensions.
-#
-# Sat 17 Jan 16:21:32 UTC 2015 mina86
-# Various optimisation mostly resolving around avoiding having to fork
-# and call cut, basename and other helper commands. Slight
-# refactoring of code calling removepkg.
-
-pkgbase() {
- PKGRETURN=${1##*/}
- case "$PKGRETURN" in *.t[gblx]z)
- PKGRETURN=${PKGRETURN%.*}
- esac
- echo "$PKGRETURN"
-}
-
-touch /var/log/packages/$(pkgbase $1)
diff --git a/t/travis-deps/makepkg b/t/travis-deps/makepkg
deleted file mode 100755
index 5636dd2..0000000
--- a/t/travis-deps/makepkg
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-while [[ $# > 1 ]]
-do
-key="$1"
-
-case $key in
- -l|--linkadd)
- LINKADD="$2"
- shift
- ;;
- -c|--chown)
- CHOWN="$2"
- shift
- ;;
- -p|--prepend)
- PREPEND=1
- ;;
-esac
-shift
-done
-
-touch $1
-
-echo "Slackware package $1 created."
diff --git a/t/travis-deps/perf.dummy b/t/travis-deps/perf.dummy
deleted file mode 100644
index 9bcf29e..0000000
--- a/t/travis-deps/perf.dummy
+++ /dev/null
@@ -1,2 +0,0 @@
-Since the sources for this package are in the slackware kernel sources, this
-file is just a notice to that effect.
diff --git a/t/travis-deps/removepkg b/t/travis-deps/removepkg
deleted file mode 100755
index e78e080..0000000
--- a/t/travis-deps/removepkg
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-rm /var/log/packages/$1 &>/dev/null || rm /var/log/packages/$1-* &>/dev/null
diff --git a/t/travis-deps/upgradepkg b/t/travis-deps/upgradepkg
deleted file mode 100755
index 3591936..0000000
--- a/t/travis-deps/upgradepkg
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/bash
-
-# Stripped down and useless version of this script merely used for testing.
-# But some bits taken from the original, so here's the original copyright
-# notice.
-
-# Copyright 1999 Patrick Volkerding, Moorhead, Minnesota, USA
-# Copyright 2001, 2002, 2003 Slackware Linux, Inc., Concord, California, USA
-# Copyright 2009, 2015 Patrick J. Volkerding, Sebeka, MN, USA
-# Copyright 2015 Michal Nazarewicz <mina86@mina86.com>
-# 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.
-#
-# Modified to handle either old 8.3 or new package-version-arch-build.tgz
-# packages, Sat Nov 17 14:25:58 PST 2001 volkerdi
-#
-# Rewritten to clean out _all_ old packages of a given basename, not just
-# the first one found, Thu Apr 4 01:01:05 PST 2002 volkerdi
-#
-# Added --install-new and --reinstall, Fri May 31 14:11:14 PDT 2002 volkerdi
-# Added --dry-run, Sat Apr 26 18:13:29 PDT 2003
-#
-# Sat Apr 25 21:18:53 UTC 2009
-# Support new compression types and package extensions.
-# Converted to use new pkgbase() function to remove pathname and
-# valid package extensions.
-#
-# Sat 17 Jan 16:21:32 UTC 2015 mina86
-# Various optimisation mostly resolving around avoiding having to fork
-# and call cut, basename and other helper commands. Slight
-# refactoring of code calling removepkg.
-
-
-while [[ $# > 1 ]]
-do
-key="$1"
-
-case $key in
- --dryrun)
- DRYRUN=1
- ;;
- --install-new)
- NEW=1
- ;;
- --reinstall)
- REINSTALL=1
- ;;
- --verbose)
- VERBOSE=1
- ;;
-esac
-shift
-done
-
-PACKAGE="$1"
-
-pkgbase() {
- PKGRETURN=${1##*/}
- case "$PKGRETURN" in *.t[gblx]z)
- PKGRETURN=${PKGRETURN%.*}
- esac
- echo "$PKGRETURN"
-}
-
-package_name() {
- STRING=$(pkgbase "$1")
- case "$STRING" in
- *-*-*-*)
- # At least four segments, strip version arch and build and return name:
- echo "${STRING%-*-*-*}"
- ;;
- *)
- # Old style package name with one segment or we don't have four
- # segments: return the old-style (or out of spec) package name.
- echo $STRING
- esac
-}
-
-for ARG; do
- OLD=${ARG%'%'*}
- NEW=${ARG#*'%'}
-
- INCOMINGDIR=$(dirname $NEW)
- NNAME=${NEW##*/}
- ONAME=${OLD##*/}
- NEW=$(pkgbase $NEW)
- OLD=$(pkgbase $OLD)
-
- SHORT="$(package_name $OLD)"
- if [ ! -r /var/log/packages/$OLD ]; then
- if ls /var/log/packages/$SHORT* &>/dev/null ; then
- for installed_package in /var/log/packages/$SHORT* ; do
- if [ "$(package_name $installed_package)" = "$SHORT" ]; then
- OLD="${installed_package##*/}"
- break
- fi
- done
- fi
- fi
-
- /sbin/removepkg $OLD
- /sbin/installpkg $INCOMINGDIR/$NNAME
-done