forked from nfs-ganesha/nfs-ganesha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_rpms.sh
executable file
·34 lines (31 loc) · 1.3 KB
/
build_rpms.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Make sure you have correct libntirpc submodule checked out. For
# example, the following would checkout the needed submodules
#
# git clone --branch=ibm2.7 --recursive https://github.com/ganltc/nfs-ganesha.git
# ./build_rpms.sh # to build rpms for RHEL and SLES
# Remove build directory with force option.
if [[ $# -eq 1 && $1 == "-f" ]]
then
rm -rf build
fi
mkdir build && \
cd build && \
cmake ../src -DBUILD_CONFIG=rpmbuild -DCMAKE_BUILD_TYPE=Release \
-DUSE_ADMIN_TOOLS=ON -DUSE_GUI_ADMIN_TOOLS=OFF \
-DUSE_DBUS=ON \
-D_MSPAC_SUPPORT=ON \
-DRADOS_URLS=OFF -DUSE_RADOS_RECOV=OFF \
-DUSE_9P=OFF \
-DUSE_FSAL_NULL=OFF \
-DUSE_FSAL_XFS=OFF \
-DUSE_FSAL_MEM=OFF \
-DUSE_FSAL_LUSTRE=OFF \
-DUSE_FSAL_CEPH=OFF \
-DUSE_FSAL_RGW=OFF \
-DUSE_FSAL_PANFS=OFF \
-DUSE_FSAL_GLUSTER=OFF \
-DUSE_FSAL_PROXY=OFF \
-DUSE_FSAL_GPFS=ON && \
make dist && \
QA_RPATHS=2 rpmbuild -ta nfs-ganesha*.tar.gz