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:
maxice8 2018-12-10 08:51:20 -02:00 committed by maxice8
parent 7d23303b14
commit 16b9f461e8
3 changed files with 27 additions and 5 deletions

18
srcpkgs/monit/INSTALL Normal file
View 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

View file

@ -1,2 +1,5 @@
#!/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

View file

@ -1,22 +1,23 @@
# Template file for 'monit'
pkgname=monit
version=5.25.2
revision=2
revision=3
build_style=gnu-configure
configure_args="--with-ssl-dir=${XBPS_CROSS_BASE}/usr libmonit_cv_setjmp_available=yes
libmonit_cv_vsnprintf_c99_conformant=yes"
conf_files="/etc/monit/monitrc"
conf_files="/etc/monitrc"
hostmakedepends="perl"
makedepends="pam-devel libressl-devel zlib-devel"
short_desc="Utility for monitoring, processes, files, directories and devices"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3"
license="AGPL-3.0-only"
homepage="http://mmonit.com/monit/"
#changelog="https://mmonit.com/monit/changes/"
distfiles="http://mmonit.com/monit/dist/${pkgname}-${version}.tar.gz"
checksum=aa0ce6361d1155e43e30a86dcff00b2003d434f221c360981ced830275abc64a
post_install() {
vinstall monitrc 700 etc/monit
vconf monitrc
vsv monit
vlicense COPYING
}