monit: update to 5.33.0
authorYaroslav Petrov <info@lank.me>
Thu, 3 Aug 2023 21:43:52 +0000 (23:43 +0200)
committerYaroslav Petrov <info@lank.me>
Sat, 5 Aug 2023 21:02:09 +0000 (23:02 +0200)
Maintainer: me
Compile tested: x86_64, PC Engines APU4, OpenWrt 22.03.5/main
Run tested: x86_64, PC Engines APU4, OpenWrt 22.03.5/main, div. tests

* update from 5.26.0 to 5.33.0 (fixes a lot of bugs, defaults TLSv1.2 and TLSv1.3, new functions. See fullog: https://mmonit.com/monit/changes/)
* replace maintainer
* update piddir patch
* use maintainers bootstrap script instead PKG_FIXUP

Signed-off-by: Yaroslav Petrov <info@lank.me>
admin/monit/Makefile
admin/monit/patches/001-fix-default-piddir.patch

index f6ab3a43028970ce0f4f6971ec6d5eb6cbba7cee..ae684f4a8ebf6c95dd2d3d468272114402879f87 100644 (file)
@@ -8,19 +8,18 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=monit
-PKG_VERSION:=5.26.0
-PKG_RELEASE:=2
+PKG_VERSION:=5.33.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://mmonit.com/monit/dist
-PKG_HASH:=87fc4568a3af9a2be89040efb169e3a2e47b262f99e78d5ddde99dd89f02f3c2
+PKG_SOURCE_URL:=https://bitbucket.org/tildeslash/monit/downloads/
+PKG_HASH:=1ace889c0183473a9d70160df6533bb6e1338dc1354f5928507803e1e2a863b5
 
-PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
+PKG_MAINTAINER:=Yaroslav Petrov <info@lank.me>
 PKG_LICENSE:=AGPL-3.0
 PKG_LICENSE_FILES:=COPYING
 PKG_CPE_ID:=cpe:/a:tildeslash:monit
 
-PKG_FIXUP:=libtool
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
@@ -78,6 +77,11 @@ ifeq ($(BUILD_VARIANT),nossl)
                --without-ssl
 endif
 
+define Build/Prepare
+       $(Build/Prepare/Default)
+       (cd $(PKG_BUILD_DIR) && ./bootstrap)
+endef
+
 define Package/monit/conffiles
 /etc/monitrc
 endef
index 571c432bbda70d6ec73e69a8a63634eb5268eb04..8cac4c7d8c117331c5c22a4d4767caf50e182235 100644 (file)
@@ -1,24 +1,6 @@
---- a/configure
-+++ b/configure
-@@ -14436,14 +14436,7 @@ fi
- # Find the right directory to put the root-mode PID file in
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5
- $as_echo_n "checking pid file location... " >&6; }
--if test -d "/run"
--then
--      piddir="/run"
--elif test -d "/var/run"; then
--        piddir="/var/run"
--elif test -d "/etc"; then
--        piddir="/etc"
--fi
-+piddir="/var/run"
- cat >>confdefs.h <<_ACEOF
 --- a/configure.ac
 +++ b/configure.ac
-@@ -501,14 +501,7 @@ fi
+@@ -477,14 +477,7 @@ AC_ARG_WITH(ipv6,
  
  # Find the right directory to put the root-mode PID file in
  AC_MSG_CHECKING([pid file location])