aboutsummaryrefslogtreecommitdiff
path: root/system/encfs/encfs.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2017-06-03 15:09:14 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-06 07:56:51 +0700
commit7a9b43f88b923b1a3a104f3981c2500fc63b8f25 (patch)
tree5f269441f8dd697c37e29df5b169db34d886cd7e /system/encfs/encfs.SlackBuild
parentfde650ea487bb7e68c37ce8714d8915d36e0ab18 (diff)
system/encfs: Updated for version 1.9.1.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/encfs/encfs.SlackBuild')
-rw-r--r--system/encfs/encfs.SlackBuild38
1 files changed, 21 insertions, 17 deletions
diff --git a/system/encfs/encfs.SlackBuild b/system/encfs/encfs.SlackBuild
index 01958f3b0f28..aaf0e3538f7f 100644
--- a/system/encfs/encfs.SlackBuild
+++ b/system/encfs/encfs.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for encfs
-# Copyright 2007-2016 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2007-2017 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=encfs
-VERSION=${VERSION:-1.8.1}
+VERSION=${VERSION:-1.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,28 +69,32 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-autoreconf -vif
+# Fix building against openssl 1.1
+patch -p1 -i $CWD/encfs-openssl-1.1.patch
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --with-boost-libdir=/usr/lib$LIBDIRSUFFIX \
- --disable-static \
- --build=$ARCH-slackware-linux
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=lib$LIBDIRSUFFIX \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DUSE_INTERNAL_TINYXML=OFF \
+ -DINSTALL_LIBENCFS=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ ..
+ make
+ make install/strip DESTDIR=$PKG
+cd -
-make
-make install-strip DESTDIR=$PKG
+mv $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING* INSTALL.md PERFORMANCE.md README.md \
- README-NLS TRANSLATORS \
+ README-NLS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild