diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-10 13:48:51 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-10 13:48:51 -0400 |
commit | 51eb62e3767f13672c4dd568ca8e8bdfcb56e650 (patch) | |
tree | 7173e7531f56f31a2558357d70864f6e04a9233a /network | |
parent | 7cbf8b792ebdcea327ec3b31e2e1f09ceba5f206 (diff) |
network/argus-clients: Fix /usr/include permissions.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network')
-rw-r--r-- | network/argus-clients/argus-clients.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/network/argus-clients/argus-clients.SlackBuild b/network/argus-clients/argus-clients.SlackBuild index ba46a338f40c6..c9c7a09f280b4 100644 --- a/network/argus-clients/argus-clients.SlackBuild +++ b/network/argus-clients/argus-clients.SlackBuild @@ -3,11 +3,15 @@ # Written by R. Bailey <GooseYArd@gmail.com> # Emmanuel N. Millan <emmanueln@gmail.com> - 2018 +# 20220410 bkw: Modified by SlackBuilds.org, BUILD=2: +# - do not install headers in /usr/include with execute permission! +# - remove useless INSTALL from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=argus-clients VERSION=${VERSION:-3.0.8.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -19,9 +23,6 @@ if [ -z "$ARCH" ]; then esac 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 echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -56,9 +57,9 @@ 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -77,16 +78,17 @@ make \ make install \ docdir=/usr/doc/$PRGNAM-$VERSION \ DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* + +# 20220410 bkw: wtf, upstream? +find $PKG/usr/include/argus/ -type f -exec chmod 0644 {} \+ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -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 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - ChangeLog COPYING CREDITS INSTALL MANIFEST README VERSION \ + ChangeLog COPYING CREDITS MANIFEST README VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |