diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-19 15:44:00 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-19 15:44:00 -0400 |
commit | f0f70704d9d39bfe784f350ddc62089506aa90bc (patch) | |
tree | 6f9610ed6bcc3fd0859656a19a37844212b95386 | |
parent | 8b24bad1c0ebc2aca2d56afed1d6cda8e611f8c5 (diff) |
libraries/fcgi: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r-- | libraries/fcgi/fcgi.SlackBuild | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/libraries/fcgi/fcgi.SlackBuild b/libraries/fcgi/fcgi.SlackBuild index 05819ce4db4d..804db3e62b2d 100644 --- a/libraries/fcgi/fcgi.SlackBuild +++ b/libraries/fcgi/fcgi.SlackBuild @@ -21,25 +21,26 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3: +# - fix doc permissions (they were *really* bad). +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=fcgi VERSION=${VERSION:-2.4.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} 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 @@ -49,8 +50,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" @@ -65,18 +66,17 @@ fi set -e +# 20220419 bkw: tarball permissions are *horrible*, do not remove +# --no-same-permissions nor revert find/chmod to template please. rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz --no-same-permissions 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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find . -type f -exec chmod 644 {} \+ +find . -type d -exec chmod 755 {} \+ # Fix compilation by recent gcc (thanks to Debian) cat $CWD/fcgi-2.4.0-gcc44-fix-include.patch | patch -p1 @@ -91,7 +91,7 @@ autoreconf -vif CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure \ +sh ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ @@ -102,16 +102,12 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -j1 -make install 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 +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/man/man{1,3} cp -a doc/*.1 $PKG/usr/man/man1/ cp -a doc/*.3 $PKG/usr/man/man3/ -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 +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |