1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- 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.
This commit is contained in:
Alexander Leidinger 2020-04-21 13:36:17 +00:00
parent 8a8d8019e4
commit f5b969720d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=532269
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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
}