mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 08:33:51 +02:00
monit: update to 5.27.0.
This commit is contained in:
parent
83ee0c58cb
commit
3cc77a5676
3 changed files with 53 additions and 24 deletions
|
@ -1,18 +0,0 @@
|
||||||
# INSTALL
|
|
||||||
case "$ACTION" in
|
|
||||||
post)
|
|
||||||
if [ "$UPDATE" = "yes" ]; then
|
|
||||||
cat <<EOF
|
|
||||||
===============================================================================
|
|
||||||
Location of the configuration file used by the monit service has changed
|
|
||||||
from '/etc/monit/monitrc' to '/etc/monitrc', as this is in line with upstream.
|
|
||||||
|
|
||||||
Consequently /etc/monit/monitrc has been deprecated and will stop working in a
|
|
||||||
future version.
|
|
||||||
|
|
||||||
Migration can be done by moving /etc/monit/monitrc to /etc/monitrc.
|
|
||||||
===============================================================================
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
43
srcpkgs/monit/patches/cross-fix.patch
Normal file
43
srcpkgs/monit/patches/cross-fix.patch
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
From e0e14896d7dcf56700b48583e79338c820c35f42 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tildeslash <info@tildeslash.com>
|
||||||
|
Date: Tue, 30 Jun 2020 21:30:28 +0200
|
||||||
|
Subject: [PATCH] Patch for cross-compile
|
||||||
|
|
||||||
|
---
|
||||||
|
configure.ac | 4 +++-
|
||||||
|
libmonit/configure.ac | 4 +++-
|
||||||
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index f7ea677..a8c32c8 100644
|
||||||
|
--- configure.ac
|
||||||
|
+++ configure.ac
|
||||||
|
@@ -442,7 +442,9 @@ AC_RUN_IFELSE(
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
return 1;
|
||||||
|
- ])], [CFLAGS="$CFLAGS -std=c11"], [CFLAGS="$CFLAGS -std=c99"])
|
||||||
|
+ ])], [CFLAGS="$CFLAGS -std=c11"], [CFLAGS="$CFLAGS -std=c99"],
|
||||||
|
+ [AC_MSG_NOTICE([WARNING: result CFLAGS -std=c11 guessed because of cross compilation])
|
||||||
|
+ CFLAGS="$CFLAGS -std=c11"])
|
||||||
|
AC_CHECK_HEADERS([stdint.h stdbool.h], [], [AC_MSG_ERROR([toolchain does not have C99 headers])])
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/libmonit/configure.ac b/libmonit/configure.ac
|
||||||
|
index 21ebdd7..8813852 100644
|
||||||
|
--- libmonit/configure.ac
|
||||||
|
+++ libmonit/configure.ac
|
||||||
|
@@ -336,7 +336,9 @@ AC_RUN_IFELSE(
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
return 1;
|
||||||
|
- ])], [CFLAGS="$CFLAGS -std=c11"], [CFLAGS="$CFLAGS -std=c99"])
|
||||||
|
+ ])], [CFLAGS="$CFLAGS -std=c11"], [CFLAGS="$CFLAGS -std=c99"],
|
||||||
|
+ [AC_MSG_NOTICE([WARNING: result CFLAGS -std=c11 guessed because of cross compilation])
|
||||||
|
+ CFLAGS="$CFLAGS -std=c11"])
|
||||||
|
AC_CHECK_HEADERS([stdint.h stdbool.h], [], [AC_MSG_ERROR([toolchain does not have C99 headers])])
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------
|
||||||
|
--
|
||||||
|
2.10.5
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'monit'
|
# Template file for 'monit'
|
||||||
pkgname=monit
|
pkgname=monit
|
||||||
version=5.26.0
|
version=5.27.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="
|
configure_args="
|
||||||
|
@ -8,15 +8,19 @@ configure_args="
|
||||||
libmonit_cv_setjmp_available=yes
|
libmonit_cv_setjmp_available=yes
|
||||||
libmonit_cv_vsnprintf_c99_conformant=yes"
|
libmonit_cv_vsnprintf_c99_conformant=yes"
|
||||||
conf_files="/etc/monitrc"
|
conf_files="/etc/monitrc"
|
||||||
hostmakedepends="perl"
|
hostmakedepends="automake libtool perl"
|
||||||
makedepends="pam-devel libressl-devel zlib-devel"
|
makedepends="pam-devel libressl-devel zlib-devel"
|
||||||
short_desc="Utility for monitoring, processes, files, directories and devices"
|
short_desc="Utility for monitoring, processes, files, directories and devices"
|
||||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
license="AGPL-3.0-only"
|
license="AGPL-3.0-only"
|
||||||
homepage="http://mmonit.com/monit/"
|
homepage="https://mmonit.com/monit/"
|
||||||
#changelog="https://mmonit.com/monit/changes/"
|
changelog="https://mmonit.com/monit/changes/"
|
||||||
distfiles="http://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
|
distfiles="https://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
|
||||||
checksum=87fc4568a3af9a2be89040efb169e3a2e47b262f99e78d5ddde99dd89f02f3c2
|
checksum=d8c0deef624f193a952502fe9baabfa66e3d8d057df5738da43f9a37792afca4
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
./bootstrap
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vconf monitrc
|
vconf monitrc
|
||||||
|
|
Loading…
Add table
Reference in a new issue