office/SOGo: Update script.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Chris Walker 2018-09-23 00:15:34 +01:00 committed by Willy Sudiarto Raharjo
parent 761f5387b3
commit 4d89dfa704
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -24,7 +24,7 @@
PRGNAM=SOGo
VERSION=${VERSION:-4.0.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -93,14 +93,6 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
# The symbolic links created to libSOGo.so are broken; remove them and create
# symbolic links that work
( cd $PKG/usr/lib${LIBDIRSUFFIX}/sogo
ln -sf ../../lib/GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so libSOGo.so
ln -sf ../../lib/GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so.4 libSOGo.so.4
ln -sf ../../lib/GNUstep/Frameworks/SOGo.framework/Versions/Current/sogo/libSOGo.so.4.0.2 libSOGo.so.4.0.2
)
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
@ -128,11 +120,13 @@ cat Scripts/logrotate > $PKG/etc/logrotate.d/sogo.new
# Install configuration files
mkdir -p $PKG/etc/{sogo,sysconfig}
cat Scripts/sogo.conf > $PKG/etc/sogo/sogo.conf.new
sed -e "s,USER=sogo,USER=$PRGUSR,g" Scripts/sogo-default > $PKG/etc/sysconfig/sogo.new
sed -e "s,USER=sogo,USER=$PRGUSR,g" \
Scripts/sogo-default > $PKG/etc/sysconfig/sogo.new
# Install example SOGo Apache configuration files
mkdir -p $PKG/etc/httpd/extra
cat Apache/SOGo.conf > $PKG/etc/httpd/extra/httpd-sogo.conf.new
sed -e "s,/lib/GNUstep,/lib${LIBDIRSUFFIX}/GNUstep,g" \
Apache/SOGo.conf > $PKG/etc/httpd/extra/httpd-sogo.conf.new
# Install documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION