mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
monit: follow upstream configuration locations and fix license=
license is AGPL-3.0-only https://mmonit.com/monit/documentation/monit.html#FILES closes #5640
This commit is contained in:
parent
7d23303b14
commit
16b9f461e8
3 changed files with 27 additions and 5 deletions
18
srcpkgs/monit/INSTALL
Normal file
18
srcpkgs/monit/INSTALL
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# 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
|
|
@ -1,2 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec monit -I -c /etc/monit/monitrc 2>&1
|
if [ -f /etc/monit/monitrc ]; then
|
||||||
|
CONF="-c /etc/monit/monitrc"
|
||||||
|
fi
|
||||||
|
exec monit -I ${CONF} 2>&1
|
||||||
|
|
|
@ -1,22 +1,23 @@
|
||||||
# Template file for 'monit'
|
# Template file for 'monit'
|
||||||
pkgname=monit
|
pkgname=monit
|
||||||
version=5.25.2
|
version=5.25.2
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-ssl-dir=${XBPS_CROSS_BASE}/usr libmonit_cv_setjmp_available=yes
|
configure_args="--with-ssl-dir=${XBPS_CROSS_BASE}/usr libmonit_cv_setjmp_available=yes
|
||||||
libmonit_cv_vsnprintf_c99_conformant=yes"
|
libmonit_cv_vsnprintf_c99_conformant=yes"
|
||||||
conf_files="/etc/monit/monitrc"
|
conf_files="/etc/monitrc"
|
||||||
hostmakedepends="perl"
|
hostmakedepends="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="GPL-3"
|
license="AGPL-3.0-only"
|
||||||
homepage="http://mmonit.com/monit/"
|
homepage="http://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="http://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
|
||||||
checksum=aa0ce6361d1155e43e30a86dcff00b2003d434f221c360981ced830275abc64a
|
checksum=aa0ce6361d1155e43e30a86dcff00b2003d434f221c360981ced830275abc64a
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall monitrc 700 etc/monit
|
vconf monitrc
|
||||||
vsv monit
|
vsv monit
|
||||||
|
vlicense COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue