-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathbuild-SUSE-15.sh
executable file
·40 lines (36 loc) · 1.33 KB
/
build-SUSE-15.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
35
36
37
38
39
#!/bin/bash
# For SLES-15, add the backport repo to zypper. Replace [-SPx] with the correct service pack
# https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15[-SPx]/standard
zypper install autoconf automake libacl-devel libattr-devel libuuid-devel nfs-kernel-server device-mapper-devel xz-devel apache2 apache2-mod_perl xinetd tftp dhcp-server tcpdump python3-policycoreutils util-linux mariadb perl-DBD-mysql libopenssl-devel wget gcc ipmitool ipxe-bootimgs python3 make libtirpc-devel parted autofs bzip2 ntp perl-CGI
if [ $? -eq 0 ]; then
for SUBDIR in common cluster vnfs ipmi provision; do
OPTIONS=" "
cd ../$SUBDIR
if [ $? -ne 0 ]; then
break
fi
if [ "$SUBDIR" = "provision" ]; then
OPTIONS="--with-apache2moddir=/usr/lib64/apache2"
fi
if [ "$SUBDIR" = "ipmi" ]; then
OPTIONS="--with-local-ipmitool"
fi
./autogen.sh --prefix=/ --bindir=/usr/bin $OPTIONS
if [ $? -eq 0 ]; then
make
else
echo "$SUBDIR: autogen failed"
break
fi
if [ $? -eq 0 ]; then
make install
else
echo "$SUBDIR: make failed"
break
fi
if [ $? -ne 0 ]; then
echo "$SUBDIR: make install failed"
break
fi
done
fi