diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-03 13:39:29 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-03 13:39:29 -0400 |
commit | f227a03d5b04839e6c6e36c5cb497ff8c7ce27a2 (patch) | |
tree | cbbedc83c850049d9cf2a187e09e9928347553fb /network | |
parent | 90065abccb0c4911bb42aa7f40537bc705e0c635 (diff) |
network/aoetools: Fix permissions.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network')
-rw-r--r-- | network/aoetools/aoetools.SlackBuild | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/network/aoetools/aoetools.SlackBuild b/network/aoetools/aoetools.SlackBuild index d72d372d53733..17bc652402861 100644 --- a/network/aoetools/aoetools.SlackBuild +++ b/network/aoetools/aoetools.SlackBuild @@ -22,25 +22,26 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220403 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix permissions on binaries and man pages. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=aoetools VERSION=${VERSION:-36} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; 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 @@ -50,8 +51,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -75,18 +76,19 @@ 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 {} \+ -make +# 20220403 bkw: -Wl,-s strips the binaries. +make CFLAGS="$SLKCFLAGS -Wl,-s" make install MANDIR=/usr/man DESTDIR=$PKG -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 +gzip -9 $PKG/usr/man/man*/* -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 +# 20220403 bkw: permissions were bad (binaries were 700, man pages were 664). +chmod 755 $PKG/usr/sbin/* +chmod 644 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |