network/lizardfs: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Marcin Szychowski 2019-04-05 07:09:42 +07:00 committed by Willy Sudiarto Raharjo
parent 2387a20ac0
commit f0a6d4b7f9
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- src/chunkserver/iostat.h 2019-04-03 07:52:10.528372925 -0000
+++ src/chunkserver/iostat.h 2019-04-03 07:50:48.295368946 -0000
@@ -28,6 +28,7 @@
#include <algorithm>
#include <unordered_map>
#include <vector>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/types.h>

View File

@ -52,7 +52,7 @@ if ! getent group mfs 2>&1 > /dev/null; then
exit 1
elif ! getent passwd mfs 2>&1 > /dev/null; then
echo " You must have a mfs user to run this script."
echo " # useradd -u $LIZARDFS_UID -g $LIZARDFS_GID -d /var/lib/pgsql mfs"
echo " # useradd -u $LIZARDFS_UID -g $LIZARDFS_GID -d /var/lib/mfs mfs"
exit 1
fi
@ -77,6 +77,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
(cd $PRGNAM-$VERSION; patch -p0 < $CWD/iostat.h.patch)
cd $PRGNAM-$VERSION
for z in $CWD/*.zip; do
unzip $z -d external/
@ -102,6 +103,8 @@ cd build
-DENABLE_CLIENT_LIB=YES \
-DENABLE_NFS_GANESHA=YES \
-DCMAKE_BUILD_TYPE=Release ..
# For the brave
# make -j 24 || make -j 12 || make -j 6 || make -j 3 || make -j 2 || make
make
make install DESTDIR=$PKG
cd ..
@ -120,6 +123,7 @@ for l in '' global; do
mv $PKG/etc/mfs/${l}iolimits.cfg.dist $PKG/etc/mfs/${l}iolimits.cfg.new
done
chown -R root:root .
mkdir -p $PKG/var/run/mfs $PKG/var/lib/mfs
chown mfs:mfs $PKG/var/run/mfs $PKG/var/lib/mfs