summaryrefslogtreecommitdiff
path: root/libraries/Impacket/Impacket.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-05-15 00:32:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-05-15 00:44:33 +0700
commit6feeb4cf9c14fd6ea888ed512bc8b4c1d587167a (patch)
treec045c14feceab94eafeb4c1e5d061f9ef23dd1ce /libraries/Impacket/Impacket.SlackBuild
parent2fe7e24ab0a80b5f2460bb9609d8ca68de0cd7ee (diff)
downloadslackbuilds-6feeb4cf9c14fd6ea888ed512bc8b4c1d587167a.tar.gz
libraries/Impacket: Fix perms.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/Impacket/Impacket.SlackBuild')
-rw-r--r--libraries/Impacket/Impacket.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/libraries/Impacket/Impacket.SlackBuild b/libraries/Impacket/Impacket.SlackBuild
index 2dea75a7d0..9f21cf7734 100644
--- a/libraries/Impacket/Impacket.SlackBuild
+++ b/libraries/Impacket/Impacket.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=Impacket
SRCNAM=impacket
-VERSION=0.9.13
+VERSION=${VERSION:-0.9.13}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,14 +56,14 @@ tar -xzvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
python setup.py install --root=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -73,5 +73,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+chmod 644 $PKG/usr/share/doc/impacket/testcases/*/*
+
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}