Lines 572-577
Link Here
|
572 |
CONFIGURE_OPTS="--with-nagios4" |
572 |
CONFIGURE_OPTS="--with-nagios4" |
573 |
fi |
573 |
fi |
574 |
fi |
574 |
fi |
|
|
575 |
# disable stripping to get meaningful backtraces |
576 |
sed -i -e 's/^INSTALL_STRIP_PROGRAM="\\\$(install_sh) -c -s"$/INSTALL_STRIP_PROGRAM="\\\$(install_sh) -c"/' configure |
577 |
sed -i -e 's/install_sh_PROGRAM="\$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \\$/install_sh_PROGRAM="\$(INSTALL_STRIP_PROGRAM)" \\/' Makefile.in |
578 |
sed -i -e 's/install_sh_PROGRAM="\$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \\$/install_sh_PROGRAM="\$(INSTALL_STRIP_PROGRAM)" \\/' src/Makefile.in |
579 |
sed -i -e 's/\$(CXX) \$(LDFLAGS) -s -fPIC -shared \$(livestatus_so_OBJECTS) -o \$@ -lpthread -lstdc++/\$(CXX) \$(LDFLAGS) -fPIC -shared \$(livestatus_so_OBJECTS) -o \$@ -lpthread -lstdc++/' src/Makefile.in |
575 |
./configure --libdir=$libdir --bindir=$bindir $CONFIGURE_OPTS && |
580 |
./configure --libdir=$libdir --bindir=$bindir $CONFIGURE_OPTS && |
576 |
make clean && |
581 |
make clean && |
577 |
cat <<EOF > src/livestatus.h && |
582 |
cat <<EOF > src/livestatus.h && |
Lines 581-587
Link Here
|
581 |
#endif // livestatus_h |
586 |
#endif // livestatus_h |
582 |
EOF |
587 |
EOF |
583 |
make -j 8 2>&1 && |
588 |
make -j 8 2>&1 && |
584 |
strip src/livestatus.o && |
589 |
# disable stripping to get meaningful backtraces |
|
|
590 |
#strip src/livestatus.o && |
585 |
mkdir -p $DESTDIR$libdir && |
591 |
mkdir -p $DESTDIR$libdir && |
586 |
install -m 755 src/livestatus.o $DESTDIR$libdir && |
592 |
install -m 755 src/livestatus.o $DESTDIR$libdir && |
587 |
mkdir -p $DESTDIR$bindir && |
593 |
mkdir -p $DESTDIR$bindir && |
Lines 1018-1025
Link Here
|
1018 |
# WATO. Also create an empty and Apache-writable auth.serials |
1024 |
# WATO. Also create an empty and Apache-writable auth.serials |
1019 |
serials_file=$DESTDIR${htpasswd_file%/*}/auth.serials && |
1025 |
serials_file=$DESTDIR${htpasswd_file%/*}/auth.serials && |
1020 |
touch "$serials_file" && |
1026 |
touch "$serials_file" && |
1021 |
(chown $wwwuser "$serials_file" || true) && |
1027 |
# Permissions will be set within src_install |
1022 |
(chown $wwwuser "$htpasswd_file" || true) && |
1028 |
#(chown $wwwuser "$serials_file" || true) && |
|
|
1029 |
#(chown $wwwuser "$htpasswd_file" || true) && |
1023 |
create_sudo_configuration && |
1030 |
create_sudo_configuration && |
1024 |
if [ "$enable_mkeventd" = yes ] |
1031 |
if [ "$enable_mkeventd" = yes ] |
1025 |
then |
1032 |
then |