summaryrefslogtreecommitdiff
path: root/system/apparmor
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-01-04 09:27:48 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-01-12 08:47:44 +0700
commit5f625c9133369a627a8285d51b7896c53e79032e (patch)
treeffcdface133414f75e8804bfe36488ed7fe7c175 /system/apparmor
parent335cc8bac5a99d9a44239ecaa8bdf57284f2489f (diff)
downloadslackbuilds-5f625c9133369a627a8285d51b7896c53e79032e.tar.gz
system/apparmor: Remove template comments from script.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/apparmor')
-rw-r--r--system/apparmor/apparmor.SlackBuild11
1 files changed, 2 insertions, 9 deletions
diff --git a/system/apparmor/apparmor.SlackBuild b/system/apparmor/apparmor.SlackBuild
index cf7e299959..99602fa413 100644
--- a/system/apparmor/apparmor.SlackBuild
+++ b/system/apparmor/apparmor.SlackBuild
@@ -27,20 +27,18 @@ VERSION=${VERSION:-2.13.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -128,11 +126,9 @@ make
make install DESTDIR=$PKG
popd
-# Strip binaries and libraries
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Compress man pages
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
@@ -141,18 +137,15 @@ find $PKG -name perllocal.pod \
-o -name "*.bs" \
| xargs rm -f
-# Copy program documentation into the package
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE README.md documentation/ \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Copy the slack-desc and a custom doinst.sh into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Make the package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}