system/aespipe: New maintainer, add bz2aespipe.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-07-09 16:48:06 -04:00 committed by Willy Sudiarto Raharjo
parent 969cc941a5
commit 98289deced
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 25 additions and 27 deletions

View file

@ -23,13 +23,17 @@
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE. # SUCH DAMAGE.
# #
# markus reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 # markus reichelt, (email removed)
# 20230709 bkw: BUILD=2
# - new maintainer.
# - include bz2aespipe in package.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=aespipe PRGNAM=aespipe
VERSION=${VERSION:-2.4f} VERSION=${VERSION:-2.4f}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -43,9 +47,6 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0 exit 0
@ -55,24 +56,25 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
OPT="--enable-padlock --enable-intelaes"
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" OPT+=" --enable-asm=x86"
OPT="--enable-asm=x86 --enable-padlock --enable-intelaes"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX="" OPT+=" --enable-asm=x86"
OPT="--enable-asm=x86 --enable-padlock --enable-intelaes"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64" OPT+=" --enable-asm=amd64"
OPT="--enable-asm=amd64 --enable-padlock --enable-intelaes" elif [ "$ARCH" = "aarch64" ]; then # hope this is correct
SLKCFLAGS="-O2 -fPIC"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
OPT=""
fi fi
echo "===> configure options: $OPT"
set -e set -e
rm -rf $PKG rm -rf $PKG
@ -82,11 +84,8 @@ rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2
cd $PRGNAM-$SRCVER cd $PRGNAM-$SRCVER
chown -R root:root . chown -R root:root .
find -L . \ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
-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 {} \;
set -e set -e
@ -101,18 +100,17 @@ fi
LDFLAGS=$LDFLAGS \ LDFLAGS=$LDFLAGS \
CFLAGS=$SLKCFLAGS \ CFLAGS=$SLKCFLAGS \
./configure \ ./configure \
--bindir=$PKG/usr/bin \ --bindir=/usr/bin \
--mandir=$PKG/usr/man \ --mandir=/usr/man \
$OPT $OPT
make make
make tests make tests
make install make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man*/*
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ # 20230709 bkw: this loox useful and the README shows an example for it:
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true cp -a bz2aespipe $PKG/usr/bin
find $PKG/usr/man/man1 -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README* ChangeLog* $PKG/usr/doc/$PRGNAM-$VERSION cp -a README* ChangeLog* $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -6,5 +6,5 @@ MD5SUM="ed05c62c1954110f009bedda4bc1562f"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""
MAINTAINER="Markus Reichelt" MAINTAINER="B. Watson"
EMAIL="slackbuilds@mareichelt.de" EMAIL="urchlay@slackware.uk"