diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-19 17:03:21 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-19 17:03:21 -0400 |
commit | 59844e182482b4a3f7a970ff76efd5de47a1e85d (patch) | |
tree | 35a33e256756f95bdd2d681b2b196ba503c62a09 /libraries/xapian-bindings | |
parent | d39d0eaa290968d480612effc1248b01a600b94f (diff) |
libraries/xapian-bindings: Do not include /tmp in the package.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/xapian-bindings')
-rw-r--r-- | libraries/xapian-bindings/xapian-bindings.SlackBuild | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/libraries/xapian-bindings/xapian-bindings.SlackBuild b/libraries/xapian-bindings/xapian-bindings.SlackBuild index e7043290ffa8..a59a3009d137 100644 --- a/libraries/xapian-bindings/xapian-bindings.SlackBuild +++ b/libraries/xapian-bindings/xapian-bindings.SlackBuild @@ -22,11 +22,15 @@ # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=4: +# - *DO NOT* install /tmp (with wrong permissions) as part of the package! +# - remove useless INSTALL from docs. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xapian-bindings VERSION=${VERSION:-1.4.19} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +42,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 @@ -70,14 +71,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz 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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ export PERL_ARCH="$(perl -MConfig -e 'print $Config{installvendorarch}')" export PERL_LIB="$(perl -MConfig -e 'print $Config{installvendorlib}')" @@ -95,14 +96,15 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# 20220419 bkw: BAD! Installing the old build of this package breaks +# your OS, because it changes the permissions on /tmp to 0755. +rm -rf $PKG/tmp mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS HACKING README \ + AUTHORS COPYING ChangeLog NEWS HACKING README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/apidoc |