svn commit: r532269 - in head/www/nginx-ultimate-bad-bot-blocker: . files

Alexander Leidinger netchild at FreeBSD.org
Tue Apr 21 13:36:18 UTC 2020


Author: netchild
Date: Tue Apr 21 13:36:17 2020
New Revision: 532269
URL: https://svnweb.freebsd.org/changeset/ports/532269

Log:
  - Add comment about why the upstream version is higher than the port,
    but the port is considered up-to-date.
  - Fix some FreeBSD specific issues in the update script.

Modified:
  head/www/nginx-ultimate-bad-bot-blocker/Makefile
  head/www/nginx-ultimate-bad-bot-blocker/files/patch-update-ngxblocker

Modified: head/www/nginx-ultimate-bad-bot-blocker/Makefile
==============================================================================
--- head/www/nginx-ultimate-bad-bot-blocker/Makefile	Tue Apr 21 12:48:58 2020	(r532268)
+++ head/www/nginx-ultimate-bad-bot-blocker/Makefile	Tue Apr 21 13:36:17 2020	(r532269)
@@ -2,8 +2,14 @@
 
 PORTNAME=		nginx-ultimate-bad-bot-blocker
 DISTVERSIONPREFIX=	V
+# The config files are updated frequently (not installed by this port,
+# but by install-ngxblocker / update-ngxblocker).
+# The scripts (installed by this port) are not updated frequently.
+# The version number of the project is related to the combination of
+# scripts and config. As such a more recent upstream version is most
+# of the time OK (as long as you use update-ngxblocker in crontab).
 DISTVERSION=		4.2020.03.2005
-PORTREVISION=		0
+PORTREVISION=		1
 CATEGORIES=		www security
 
 MAINTAINER=	netchild at FreeBSD.org

Modified: head/www/nginx-ultimate-bad-bot-blocker/files/patch-update-ngxblocker
==============================================================================
--- head/www/nginx-ultimate-bad-bot-blocker/files/patch-update-ngxblocker	Tue Apr 21 12:48:58 2020	(r532268)
+++ head/www/nginx-ultimate-bad-bot-blocker/files/patch-update-ngxblocker	Tue Apr 21 13:36:17 2020	(r532269)
@@ -16,7 +16,7 @@
 +	;;
 +	*BSD)
 +		printf "${BOLDGREEN}Updating bots.d path${RESET}\n"
-+		/usr/bin/sed -i -e 's:include .*nginx/:include :g' ${BOTS_DIR}/* ${CONF_DIR}/*
++		/usr/bin/sed -i "" -e 's:include .*nginx/:include :g' ${BOTS_DIR}/*.conf ${CONF_DIR}/*.conf
 +		;;
 +	esac
  }


More information about the svn-ports-head mailing list