summaryrefslogtreecommitdiffstats
path: root/system/afio
diff options
context:
space:
mode:
Diffstat (limited to 'system/afio')
-rw-r--r--system/afio/README12
-rw-r--r--system/afio/afio.SlackBuild50
-rw-r--r--system/afio/afio.info8
3 files changed, 40 insertions, 30 deletions
diff --git a/system/afio/README b/system/afio/README
index 51e85268ab..18fda14eb6 100644
--- a/system/afio/README
+++ b/system/afio/README
@@ -1,8 +1,10 @@
-Afio makes compressed archives that are safer than compressed tar or
-cpio archives, allowing better handling of input data corruption. Afio
+afio (archiver and backup program with internal compression support)
+
+Afio makes compressed archives that are safer than compressed tar or
+cpio archives, allowing better handling of input data corruption. Afio
also supports multi-volume archives during interactive operation.
-Afio makes cpio archives with ASCII-formatted header information (odc).
-Where the odc format cannot represent some files and file properties
-that could be present on a modern UNIX filesystem, it uses an afio-
+Afio makes cpio archives with ASCII-formatted header information (odc).
+Where the odc format cannot represent some files and file properties
+that could be present on a modern UNIX filesystem, it uses an afio-
specific 'large ASCII' header for the files concerned.
diff --git a/system/afio/afio.SlackBuild b/system/afio/afio.SlackBuild
index a22fb9c783..04d164cea8 100644
--- a/system/afio/afio.SlackBuild
+++ b/system/afio/afio.SlackBuild
@@ -1,33 +1,46 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for afio
# Written by ruario <sbo@ruari.com>
+# 20220212 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - i486 => i586
+# - use correct github download URL.
+# - don't install executable scripts in doc dir.
+# - don't install installation instructions in doc dir.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=afio
-VERSION=${VERSION:-2.5.1}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-2.5.2}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+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" = "i486" ]; then
- SLKCFLAGS="-march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-fPIC"
+ SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS=""
fi
@@ -38,27 +51,22 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
+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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find . -type d -a -exec chmod 755 {} \+
+find . -type f -a -exec chmod 644 {} \+
-sed "s/\(^CFLAGS = \)/\1 $SLKCFLAGS /" -i.original Makefile
+sed -i "s,-O2,$SLKCFLAGS," Makefile
make
-install -Dm755 afio $PKG/usr/bin/afio
+install -Dm755 -s afio $PKG/usr/bin/afio
install -Dm644 afio.1 $PKG/usr/man/man1/afio.1
-strip --strip-unneeded $PKG/usr/bin/afio
gzip $PKG/usr/man/man1/afio.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- ANNOUNCE* HISTORY INSTALLATION PORTING README* SCRIPTS script* afio_license_issues_*.txt \
+cp -a ANNOUNCE* HISTORY PORTING README* SCRIPTS script* *.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -66,4 +74,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l n -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/afio/afio.info b/system/afio/afio.info
index 161531dea5..861e920a03 100644
--- a/system/afio/afio.info
+++ b/system/afio/afio.info
@@ -1,8 +1,8 @@
PRGNAM="afio"
-VERSION="2.5.1"
-HOMEPAGE="http://members.chello.nl/~k.holtman/afio.html"
-DOWNLOAD="http://members.chello.nl/~k.holtman/afio-2.5.1.tgz"
-MD5SUM="03a04d7b16684dce6c628eba5a4c7c93"
+VERSION="2.5.2"
+HOMEPAGE="https://github.com/kholtman/afio"
+DOWNLOAD="https://github.com/kholtman/afio/archive/v2.5.2/afio-2.5.2.tar.gz"
+MD5SUM="2ab7c66d2b6c100aef5fce596baf2247"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""