Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 2020 13:36:17 +0000 (UTC)
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r532269 - in head/www/nginx-ultimate-bad-bot-blocker: . files
Message-ID:  <202004211336.03LDaHEf063910@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
  }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004211336.03LDaHEf063910>