diff options
Diffstat (limited to 'network/ejabberd/ejabberd.SlackBuild')
-rw-r--r-- | network/ejabberd/ejabberd.SlackBuild | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/network/ejabberd/ejabberd.SlackBuild b/network/ejabberd/ejabberd.SlackBuild index 1e3262a987..e0e6fd450c 100644 --- a/network/ejabberd/ejabberd.SlackBuild +++ b/network/ejabberd/ejabberd.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ejabberd -# Copyright 2022, Alexander Verbovetsky, Moscow, Russia +# Copyright 2022-2024, Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,9 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ejabberd -VERSION=${VERSION:-22.05_git75a771b} -COMMIT=75a771bfec3626145d404349fdaec4f0eef83bbc -BUILD=${BUILD:-1} +VERSION=${VERSION:-24.02} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -81,15 +80,16 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$COMMIT -tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz -cd $PRGNAM-$COMMIT +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION -find -L $CWD -type f -name "*.tar.gz" ! -name "$PRGNAM-$COMMIT.tar.gz" \ - | while read f +rm -f rebar rebar3 + +find -L $CWD -maxdepth 1 -type f \ + -name "*.tar.gz" ! -name "$PRGNAM-$VERSION.tar.gz" | while read f do - fn=$(basename $f | sed -e 's/ejabberd-po.*/ejabberd_po/' \ - | rev | cut -d- -f2 | rev) + fn=$(basename $f | rev | cut -d- -f2 | rev) mkdir -p deps/$fn tar xvf $f -C deps/$fn --strip-components=1 done @@ -107,7 +107,6 @@ pgsql=""; [ "${PGSQL:-no}" != "no" ] && pgsql="--enable-pgsql" sqlite=""; [ "${SQLITE:-no}" != "no" ] && sqlite="--enable-sqlite" pam=""; [ "${PAM:-no}" != "no" ] && pam="--enable-pam" redis=""; [ "${REDIS:-no}" != "no" ] && redis="--enable-redis" -elixir=""; [ "${ELIXIR:-no}" != "no" ] && elixir="--enable-elixir" sip=""; [ "${SIP:-no}" != "no" ] && sip="--enable-sip" lua=""; [ "${LUA:-no}" != "no" ] && lua="--enable-lua" tools=""; [ "${TOOLS:-no}" != "no" ] && tools="--enable-tools" @@ -124,22 +123,24 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-user=ejabberd \ --build=$ARCH-slackware-linux \ + --with-rebar=rebar \ $odbc \ $mysql \ $pgsql \ $sqlite \ $pam \ $redis \ - $elixir \ $sip \ $lua \ $tools -make +unshare -n make make install DESTDIR=$PKG rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +find -L $PKG/usr/lib${LIBDIRSUFFIX} -type f -name "*.so" -exec chmod 755 {} \; + 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 |