diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-02-11 00:07:04 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-11 09:30:38 +0700 |
commit | 3b7dafa1f1b1190cf024826896b963a8c937d87d (patch) | |
tree | 3b9d8b63bad199e2de6940a39bc13b32339d2775 /network/geomyidae/geomyidae.SlackBuild | |
parent | 22d97a85cbacb1cee0f82687efc7db55c37c6f88 (diff) |
network/geomyidae: Updated for version 0.69.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/geomyidae/geomyidae.SlackBuild')
-rw-r--r-- | network/geomyidae/geomyidae.SlackBuild | 53 |
1 files changed, 37 insertions, 16 deletions
diff --git a/network/geomyidae/geomyidae.SlackBuild b/network/geomyidae/geomyidae.SlackBuild index 534e278ed9ddb..924012c8e4610 100644 --- a/network/geomyidae/geomyidae.SlackBuild +++ b/network/geomyidae/geomyidae.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=geomyidae -VERSION=${VERSION:-v0.34} +VERSION=${VERSION:-0.69} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -68,39 +68,60 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tgz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-v$VERSION +tar xvf $CWD/$PRGNAM-v$VERSION.tar.gz +cd $PRGNAM-v$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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + \ + -o \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + + +# check libtls installed +if pkg-config --exists libtls && [[ $TLS =~ YES|yes ]]; then + # extra flags for TLS + SLKCFLAGS="$SLKCFLAGS -I/opt/libressl/include" + SLKLDFLAGS=-L/opt/libressl/lib$LIBDIRSUFFIX + SLKPKG_CONFIG_PATH=/opt/libressl/lib$LIBDIRSUFFIX/pkgconfig: + SLKLD_LIBRARY_PATH=/opt/libressl/lib$LIBDIRSUFFIX: +else + # comment out TLS flags + sed -i "s,^TLS_CFLAGS,#&," Makefile + sed -i "s,^TLS_LDFLAGS,#&," Makefile +fi sed -i 's,PREFIX =.*,PREFIX = /usr,' Makefile sed -i 's,MANDIR = .*,MANDIR = ${PREFIX}/man/man8,' Makefile CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -make +LDFLAGS="$LDFLAGS $SLKLDFLAGS" \ +PKG_CONFIG_PATH="${SLKPKG_CONFIG_PATH}${PKG_CONFIG_PATH}" \ +LD_LIBRARY_PATH="${SLKLD_LIBRARY_PATH}${LD_LIBRARY_PATH}" \ +make PREFIX=/usr MANDIR=${PREFIX}/man/man8 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 +# install vim files +for dir in ftdetect syntax; do + install -D -m 0644 gph/vim/$dir/gph.vim $PKG/usr/share/vim/$dir/gph.vim +done mkdir -p $PKG/etc/rc.d cat rc.d/rc.geomyidae > $PKG/etc/rc.d/rc.geomyidae.new -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 +strip --strip-unneeded $PKG/usr/bin/geomyidae +gzip -9 $PKG/usr/man/man8/geomyidae.8 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - LICENSE README LINKS index.gph gph \ + CGI.md LICENSE README LINKS index.gph gph/ docker/ \ + haproxy/ patches/ cgi-examples/ \ + tls-gen-selfsign-cert.sh \ + xinetd-gopher-request-filter.conf \ + xinetd-gopher-request-filter.sh \ + geomyidae.svg \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod -c 644 '{}' + + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh |