diff options
author | Marcin Szychowski <szycha@gmail.com> | 2019-04-05 07:09:42 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-05 07:38:46 +0700 |
commit | f0a6d4b7f984bb131ccbad8834dd0ba6f9a8daae (patch) | |
tree | d6739024408334a0c554322eb91652a14f38e07c /network | |
parent | 2387a20ac07ff31170488db956083c36e66f8f5d (diff) | |
download | slackbuilds-f0a6d4b7f984bb131ccbad8834dd0ba6f9a8daae.tar.gz |
network/lizardfs: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/lizardfs/iostat.h.patch | 10 | ||||
-rw-r--r-- | network/lizardfs/lizardfs.SlackBuild | 6 |
2 files changed, 15 insertions, 1 deletions
diff --git a/network/lizardfs/iostat.h.patch b/network/lizardfs/iostat.h.patch new file mode 100644 index 0000000000..abb7c9613f --- /dev/null +++ b/network/lizardfs/iostat.h.patch @@ -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> diff --git a/network/lizardfs/lizardfs.SlackBuild b/network/lizardfs/lizardfs.SlackBuild index a8b291afe2..2360f179ea 100644 --- a/network/lizardfs/lizardfs.SlackBuild +++ b/network/lizardfs/lizardfs.SlackBuild @@ -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 |