aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-10 15:14:16 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-10 15:14:16 -0400
commit4b08353a5317704b73c2447978343b1bed2d3282 (patch)
tree8deb824449743896250aa44563bd625e89b32115
parent368e9b1c4d2a0e0467e057150a72af1035f8a761 (diff)
system/ticpp: Fix /usr/include permissions.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--system/ticpp/ticpp.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/system/ticpp/ticpp.SlackBuild b/system/ticpp/ticpp.SlackBuild
index 8d05813f54747..22bd7fdf72a06 100644
--- a/system/ticpp/ticpp.SlackBuild
+++ b/system/ticpp/ticpp.SlackBuild
@@ -25,12 +25,16 @@
# Revision date: 2020/Nov/25
+# 20220410 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - do not install headers in /usr/include with execute permissions.
+# - remove useless and actually misleading build_instructions.txt.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ticpp
VERSION=${VERSION:-0.1}
COMVER=eb79120ea16b847ce9f483a298a394050f463d6b
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -42,9 +46,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
@@ -81,9 +82,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 {} \+
mkdir -p build
cd build
@@ -97,11 +98,11 @@ cd build
cd ..
mkdir -p "$PKG/usr/include"
-install -Dm775 ticpp.h "$PKG/usr/include"
-install -Dm775 ticppapi.h "$PKG/usr/include"
-install -Dm775 ticpprc.h "$PKG/usr/include"
-install -Dm775 tinystr.h "$PKG/usr/include"
-install -Dm775 tinyxml.h "$PKG/usr/include"
+install -Dm644 ticpp.h "$PKG/usr/include"
+install -Dm644 ticppapi.h "$PKG/usr/include"
+install -Dm644 ticpprc.h "$PKG/usr/include"
+install -Dm644 tinystr.h "$PKG/usr/include"
+install -Dm644 tinyxml.h "$PKG/usr/include"
mkdir -p "$PKG/usr/lib${LIBDIRSUFFIX}"
install -Dm775 build/libticpp.a "$PKG"/usr/lib${LIBDIRSUFFIX}
@@ -110,7 +111,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a build_instructions.txt changes.txt LICENSE README.md tutorial_gettingStarted.txt \
+cp -a changes.txt LICENSE README.md tutorial_gettingStarted.txt \
tutorial_ticpp.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild