Browse Source

Some updates I guess

master
mid-kid 8 years ago
parent
commit
ac4391c6ff
  1. 2
      binutils-ROCKET.TXT
  2. 1
      convert32-supported
  3. 48
      convert32pkg.sh
  4. 2
      glib2-ROCKET.TXT
  5. 2
      gtk+2-ROCKET.TXT
  6. 3
      kernel.SlackBuild
  7. 20
      massconvert32.sh
  8. 15
      readme.txt
  9. 3
      update-repo.sh

2
binutils-ROCKET.TXT

@ -1,2 +0,0 @@
Modifications:
- Apply a fix for https://sourceware.org/bugzilla/show_bug.cgi?id=19775.

1
convert32-supported

@ -14,6 +14,7 @@ mpg123
# d # d
libtool libtool
llvm
# l # l
alsa-lib alsa-lib

48
convert32pkg.sh

@ -24,7 +24,7 @@ pkgbuild="$(echo "$pkgbase" | sed -e 's?.*-[^-]*-[^-]*-\([^-]*\)$?\1?')"
case "$pkgarch" in case "$pkgarch" in
i?86) pkgarch=x86_64 ;; i?86) pkgarch=x86_64 ;;
*) *)
echo "Unknown package architecture '$pkgarch'. Can't proceed." 1>&2 echo "Unsupported package architecture '$pkgarch'. Can't proceed." 1>&2
exit 1 exit 1
;; ;;
esac esac
@ -49,8 +49,9 @@ explodepkg "$pkg32"
if [ "$pkg64" ]; then if [ "$pkg64" ]; then
echo echo
echo "Removing files:" echo "Removing files:"
$tool -cd "$pkg64" | tar-1.13 t | grep -v "^install/" | while read -r file; do $tool -cd "$pkg64" | tar-1.13 t | grep -v '^install/' | while read -r file; do
rm -vf "./$file" 2> /dev/null || true echo "./$file"
rm -f "./$file" 2> /dev/null || true
done done
else else
if [ ! -f "$pkginfo" ]; then if [ ! -f "$pkginfo" ]; then
@ -59,23 +60,24 @@ else
fi fi
# See /sbin/removepkg # See /sbin/removepkg
if fgrep "./" "$pkginfo" 1> /dev/null 2>&1; then if fgrep './' "$pkginfo" 1> /dev/null 2>&1; then
TRIGGER="^\.\/" TRIGGER='^\.\/'
else else
TRIGGER="FILE LIST:" TRIGGER='FILE LIST:'
fi fi
echo echo
echo "Removing files:" echo 'Removing files:'
sed -n "/$TRIGGER/,/^$/p" "$pkginfo" | fgrep -v "FILE LIST:" | grep -v "^install/" | while read -r file; do sed -n "/$TRIGGER/,/^$/p" "$pkginfo" | fgrep -v 'FILE LIST:' | grep -v '^install/' | while read -r file; do
rm -vf "./$file" 2> /dev/null || true echo "./$file"
rm -f "./$file" 2> /dev/null || true
done done
fi fi
# Clean empty directories # Clean empty directories
echo echo
echo "Empty directories:" echo 'Empty directories:'
find . -mindepth 1 -type d -empty -print -delete find . -type d -empty -print -delete
# Remove all symlinks present in the 64bit package # Remove all symlinks present in the 64bit package
if [ -f install/doinst.sh ]; then if [ -f install/doinst.sh ]; then
@ -107,16 +109,24 @@ if [ -f install/doinst.sh ]; then
fi fi
# Extract all lines treating with symlinks. See /sbin/removepkg # Extract all lines treating with symlinks. See /sbin/removepkg
sed -n -e 's,^[ ]*( [ ]*cd[ ]* .* [ ]*; [ ]*\(rm\|ln\) [ ]*-\(rf\|sf\)[ ]* .* [ ]*)[ ]*$,&,p' -e 's,^[ ]*config .*[ ]*,&,p' install/doinst.64 > install/doinst sed -n -e 's,^[ ]*( [ ]*cd[ ]* .* [ ]*; [ ]*\(rm\|ln\) [ ]*-\(rf\|sf\)[ ]* .* [ ]*)[ ]*$,&,p' -e 's,^[ ]*config .*[ ]*$,&,p' install/doinst.64 > install/doinst
rm install/doinst.64
echo echo
echo "Removed lines in doinst.sh:" echo 'Removed lines in doinst.sh:'
fgrep -xf install/doinst install/doinst.sh || true if [ -s install/doinst ]; then
fgrep -xf install/doinst install/doinst.sh || true
# Remove all symlinks present in the 64bit package
fgrep -vxf install/doinst install/doinst.sh > install/doinst.sh.new || true
mv install/doinst.sh.new install/doinst.sh
# Remove all symlinks present in the 64bit package # If the resulting doinst.sh is empty, remove it.
fgrep -vxf install/doinst install/doinst.sh > install/doinst.sh.new || true if [ ! -s install/doinst.sh ]; then
mv install/doinst.sh.new install/doinst.sh rm install/doinst.sh
rm -f install/doinst install/doinst.64 fi
fi
rm install/doinst
fi fi
# Rename package in slack-desc # Rename package in slack-desc
@ -126,7 +136,7 @@ fi
if ! find . | grep -v '^.$\|^./install' > /dev/null; then if ! find . | grep -v '^.$\|^./install' > /dev/null; then
echo echo
echo "Package is empty. Not running makepkg." 1>&2 echo 'Package is empty. Not running makepkg.' 1>&2
exit 0 exit 0
fi fi

2
glib2-ROCKET.TXT

@ -1,2 +0,0 @@
Modifications:
- Applied glib-thumbnailer.patch which is required by the patched gtk+2. Requires tumbler.

2
gtk+2-ROCKET.TXT

@ -1,2 +0,0 @@
Modifications:
- Applied gtk2-filechooser-icon-view.patch which adds support for an icon view.

3
kernel.SlackBuild

@ -1,4 +1,5 @@
#!/bin/sh -e #!/bin/sh
set -e
PKGNAM=${PKGNAM:-linux} PKGNAM=${PKGNAM:-linux}
BASEVER=${BASEVER:-4.4.29} BASEVER=${BASEVER:-4.4.29}

20
massconvert32.sh

@ -1,4 +1,5 @@
#!/bin/sh -e #!/bin/sh
set -e
# DISCLAIMER # DISCLAIMER
# Don't ever think of installing every single package generated with this script. # Don't ever think of installing every single package generated with this script.
@ -22,7 +23,6 @@ find "$slackware" -type f -name "*.t?z" -printf '%P\n' | sort | while read -r pk
pkgname="$(echo "$pkgbase" | sed -e 's?-[^-]*-[^-]*-[^-]*$??')" pkgname="$(echo "$pkgbase" | sed -e 's?-[^-]*-[^-]*-[^-]*$??')"
pkgver="$(echo "$pkgbase" | sed -e 's?.*-\([^-]*\)-[^-]*-[^-]*$?\1?')" pkgver="$(echo "$pkgbase" | sed -e 's?.*-\([^-]*\)-[^-]*-[^-]*$?\1?')"
pkgarch="$(echo "$pkgbase" | sed -e 's?.*-[^-]*-\([^-]*\)-[^-]*$?\1?')" pkgarch="$(echo "$pkgbase" | sed -e 's?.*-[^-]*-\([^-]*\)-[^-]*$?\1?')"
pkgbuild="$(echo "$pkgbase" | sed -e 's?.*-[^-]*-[^-]*-\([^-]*\)$?\1?')"
if [ "$whitelist" ]; then if [ "$whitelist" ]; then
if ! grep -v '^#' "$whitelist" | fgrep -xq "$pkgname"; then if ! grep -v '^#' "$whitelist" | fgrep -xq "$pkgname"; then
@ -32,17 +32,23 @@ find "$slackware" -type f -name "*.t?z" -printf '%P\n' | sort | while read -r pk
case "$pkgarch" in case "$pkgarch" in
i?86) pkgarch=x86_64 ;; i?86) pkgarch=x86_64 ;;
*) continue ;; # Architecture-independent stuff
noarch|fw) continue ;;
# Only kernel-headers uses x86 as pkgarch. That doesn't need conversion.
x86) continue ;;
*)
echo "WARNING: Package '$pkg' has an unsupported architecture: '$pkgarch'"
exit
;;
esac esac
pkg64="$(dirname "$pkg")/$pkgname-$pkgver-$pkgarch-$pkgbuild.$pkgext" if [ ! -f "$slackware64/$(dirname "$pkg")/$pkgname-$pkgver-$pkgarch-"*".$pkgext" ]; then
echo "WARNING: Package '$pkg' doesn't exist in slackware64, or there were multiple with different build versions."
if [ ! -f "$slackware64/$pkg64" ]; then
continue continue
fi fi
rpkg="$(realpath "$slackware/$pkg")" rpkg="$(realpath "$slackware/$pkg")"
rpkg64="$(realpath "$slackware64/$pkg64")" rpkg64="$(realpath "$slackware64/$(dirname "$pkg")/$pkgname-$pkgver-$pkgarch-"*".$pkgext")"
mkdir -p "$(dirname "$pkg")" mkdir -p "$(dirname "$pkg")"

15
readme.txt

@ -1,8 +1,15 @@
This repo contains all my slackware modifications of the base install. This repo contains all my slackware modifications of the base install.
Additional packages are contained in RocketLinux and built in a non-standard manner. Additional packages are contained in RocketLinux and built in a non-standard manner.
This branch contains a few scripts I use to manage things.
This branch contains general bookkeeping information about the entire repo. - kernel.SlackBuild is capable of building a near-identical slackware kernel
- convert32pkg.sh converts a 32bit package to be installable on 64bit (by
Right now, it's populated by .TXT files, containing ideas I will later implement. removing everything present in the 64bit package).
There's also a kernel.SlackBuild, which I could use to build a new, nearly-identical slackware kernel. It is only designed to support some packages in the official slackware iso,
because there's all kinds of packages that need special treatment,
especially for their doinst.sh scripts.
- massconvert32.sh calls convert32pkg.sh over an entire package directory
- update-repo.sh is my shitty implementation of a slackware repo generator,
that tries to generate everything as close to the official slackware repo as
possible.

3
update-repo.sh

@ -1,4 +1,5 @@
#!/bin/sh -e #!/bin/sh
set -e
gpgkey='' gpgkey=''
timestamp="$(LC_ALL=C date -u)" timestamp="$(LC_ALL=C date -u)"

Loading…
Cancel
Save