git: f351e56c46e8 - main - www/privatebin: Update to 1.4.0

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Fri, 20 May 2022 22:21:58 UTC
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f351e56c46e877ad6d8641c7871db55dff9e41ed

commit f351e56c46e877ad6d8641c7871db55dff9e41ed
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2022-05-20 22:21:12 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2022-05-20 22:21:54 +0000

    www/privatebin: Update to 1.4.0
    
    PR:             264087
---
 www/privatebin/Makefile                        |  2 +-
 www/privatebin/distinfo                        |  6 ++--
 www/privatebin/files/patch-cfg_conf.sample.php | 25 +++------------
 www/privatebin/pkg-plist                       | 43 +++++++++++++++++++-------
 4 files changed, 39 insertions(+), 37 deletions(-)

diff --git a/www/privatebin/Makefile b/www/privatebin/Makefile
index 1ea7d04ef9f3..84ebc73d5586 100644
--- a/www/privatebin/Makefile
+++ b/www/privatebin/Makefile
@@ -1,7 +1,7 @@
 # Created by: Stefan Esser <se@FreeBSD.org>
 
 PORTNAME=	privatebin
-PORTVERSION=	1.3.5
+PORTVERSION=	1.4.0
 CATEGORIES=	www security
 
 MAINTAINER=	dvl@FreeBSD.org
diff --git a/www/privatebin/distinfo b/www/privatebin/distinfo
index 6234867a6f2a..8c3479b5d7cb 100644
--- a/www/privatebin/distinfo
+++ b/www/privatebin/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1628683746
-SHA256 (privatebin-PrivateBin-1.3.5_GH0.tar.gz) = cbee0a8c5ef58ae98cd77982619190356f657e8bbc9e3f429307c65a411bfb80
-SIZE (privatebin-PrivateBin-1.3.5_GH0.tar.gz) = 547310
+TIMESTAMP = 1653082910
+SHA256 (privatebin-PrivateBin-1.4.0_GH0.tar.gz) = a0ff8ff4f8eabda1f963d8ffc99ac32559f3dcb8050ed0bde384093e450d534f
+SIZE (privatebin-PrivateBin-1.4.0_GH0.tar.gz) = 579300
diff --git a/www/privatebin/files/patch-cfg_conf.sample.php b/www/privatebin/files/patch-cfg_conf.sample.php
index 3233dfdbae1c..891d9a14a637 100644
--- a/www/privatebin/files/patch-cfg_conf.sample.php
+++ b/www/privatebin/files/patch-cfg_conf.sample.php
@@ -1,23 +1,6 @@
---- cfg/conf.sample.php.orig	2017-10-08 10:27:37 UTC
+--- cfg/conf.sample.php.orig	2022-04-09 12:38:22 UTC
 +++ cfg/conf.sample.php
-@@ -106,7 +106,7 @@ limit = 10
- ; header = "X_FORWARDED_FOR"
- 
- ; directory to store the traffic limits in
--dir = PATH "data"
-+dir = DATADBDIR
- 
- [purge]
- ; minimum time limit between two purgings of expired pastes, it is only
-@@ -120,14 +120,14 @@ limit = 300
- batchsize = 10
- 
- ; directory to store the purge limit in
--dir = PATH "data"
-+dir = DATADBDIR
- 
- [model]
- ; name of data model class to load and directory for storage
+@@ -167,7 +167,7 @@ batchsize = 10
  ; the default model "Filesystem" stores everything in the filesystem
  class = Filesystem
  [model_options]
@@ -25,8 +8,8 @@
 +dir = DATADBDIR
  
  ;[model]
- ; example of DB configuration for MySQL
-@@ -143,7 +143,7 @@ dir = PATH "data"
+ ; example of a Google Cloud Storage configuration
+@@ -190,7 +190,7 @@ dir = PATH "data"
  ; example of DB configuration for SQLite
  ;class = Database
  ;[model_options]
diff --git a/www/privatebin/pkg-plist b/www/privatebin/pkg-plist
index fc35bd785a1f..a219bd28ac20 100644
--- a/www/privatebin/pkg-plist
+++ b/www/privatebin/pkg-plist
@@ -5,11 +5,10 @@
 %%PORTDOCS%%%%DOCSDIR%%/README.md
 %%PORTDOCS%%%%DOCSDIR%%/SECURITY.md
 %%WWWDIR%%/.htaccess.disabled
+%%WWWDIR%%/Procfile
 %%WWWDIR%%/browserconfig.xml
-%%WWWDIR%%/codacy-analysis.yml
-%%WWWDIR%%/crowdin.yml
 %%WWWDIR%%/cfg/.htaccess
-@sample %%WWWDIR%%/cfg/conf.sample.php %%WWWDIR%%/cfg/conf.php
+%%WWWDIR%%/cfg/conf.sample.php
 %%WWWDIR%%/css/bootstrap/bootstrap-3.4.1.css
 %%WWWDIR%%/css/bootstrap/bootstrap-theme-3.4.1.css
 %%WWWDIR%%/css/bootstrap/darkstrap-0.9.3.css
@@ -29,18 +28,22 @@
 %%WWWDIR%%/i18n/ar.json
 %%WWWDIR%%/i18n/bg.json
 %%WWWDIR%%/i18n/ca.json
+%%WWWDIR%%/i18n/co.json
 %%WWWDIR%%/i18n/cs.json
 %%WWWDIR%%/i18n/de.json
 %%WWWDIR%%/i18n/el.json
 %%WWWDIR%%/i18n/en.json
 %%WWWDIR%%/i18n/es.json
+%%WWWDIR%%/i18n/et.json
 %%WWWDIR%%/i18n/fr.json
+%%WWWDIR%%/i18n/fi.json
 %%WWWDIR%%/i18n/he.json
 %%WWWDIR%%/i18n/hi.json
 %%WWWDIR%%/i18n/hu.json
 %%WWWDIR%%/i18n/id.json
 %%WWWDIR%%/i18n/it.json
 %%WWWDIR%%/i18n/ja.json
+%%WWWDIR%%/i18n/jbo.json
 %%WWWDIR%%/i18n/ku.json
 %%WWWDIR%%/i18n/la.json
 %%WWWDIR%%/i18n/languages.json
@@ -81,12 +84,12 @@
 %%WWWDIR%%/index.php
 %%WWWDIR%%/index.php.bak
 %%WWWDIR%%/index.php.orig
-%%WWWDIR%%/js/base-x-3.0.7.js
+%%WWWDIR%%/js/base-x-4.0.0.js
 %%WWWDIR%%/js/base64-1.7.js
-%%WWWDIR%%/js/bootstrap-3.3.7.js
+%%WWWDIR%%/js/bootstrap-3.4.1.js
 %%WWWDIR%%/js/comment.jsonld
 %%WWWDIR%%/js/commentmeta.jsonld
-%%WWWDIR%%/js/jquery-3.4.1.js
+%%WWWDIR%%/js/jquery-3.6.0.js
 %%WWWDIR%%/js/kjua-0.9.0.js
 %%WWWDIR%%/js/legacy.js
 %%WWWDIR%%/js/package.json
@@ -94,17 +97,18 @@
 %%WWWDIR%%/js/pastemeta.jsonld
 %%WWWDIR%%/js/prettify.js
 %%WWWDIR%%/js/privatebin.js
-%%WWWDIR%%/js/purify-2.2.7.js
+%%WWWDIR%%/js/purify-2.3.6.js
 %%WWWDIR%%/js/rawinflate-0.3.js
-%%WWWDIR%%/js/showdown-1.9.1.js
+%%WWWDIR%%/js/showdown-2.0.3.js
 %%WWWDIR%%/js/types.jsonld
-%%WWWDIR%%/js/zlib-1.2.11.js
-%%WWWDIR%%/js/zlib-1.2.11.wasm
+%%WWWDIR%%/js/zlib-1.2.12.js
+%%WWWDIR%%/js/zlib-1.2.12.wasm
 %%WWWDIR%%/lib/.htaccess
 %%WWWDIR%%/lib/Configuration.php
 %%WWWDIR%%/lib/Controller.php
 %%WWWDIR%%/lib/Data/AbstractData.php
 %%WWWDIR%%/lib/Data/Database.php
+%%WWWDIR%%/lib/Data/GoogleCloudStorage.php
 %%WWWDIR%%/lib/Data/Filesystem.php
 %%WWWDIR%%/lib/Filter.php
 %%WWWDIR%%/lib/FormatV2.php
@@ -115,7 +119,6 @@
 %%WWWDIR%%/lib/Model/Comment.php
 %%WWWDIR%%/lib/Model/Paste.php
 %%WWWDIR%%/lib/Persistence/AbstractPersistence.php
-%%WWWDIR%%/lib/Persistence/DataStore.php
 %%WWWDIR%%/lib/Persistence/PurgeLimiter.php
 %%WWWDIR%%/lib/Persistence/ServerSalt.php
 %%WWWDIR%%/lib/Persistence/TrafficLimiter.php
@@ -136,6 +139,23 @@
 %%WWWDIR%%/vendor/composer/autoload_psr4.php
 %%WWWDIR%%/vendor/composer/autoload_real.php
 %%WWWDIR%%/vendor/composer/autoload_static.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/ip-lib.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Address/AddressInterface.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Address/AssignedRange.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Address/IPv4.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Address/IPv6.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Address/Type.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Factory.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/ParseStringFlag.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Range/AbstractRange.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Range/Pattern.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Range/RangeInterface.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Range/Single.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Range/Subnet.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Range/Type.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Service/BinaryMath.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Service/RangesFromBoundaryCalculator.php
+%%WWWDIR%%/vendor/mlocati/ip-lib/src/Service/UnsignedIntegerMath.php
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/byte_safe_strings.php
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/cast_to_int.php
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/error_polyfill.php
@@ -145,7 +165,6 @@
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php
-%%WWWDIR%%/vendor/paragonie/random_compat/phpunit-autoload.php
 %%WWWDIR%%/vendor/paragonie/random_compat/lib/random_int.php
 %%WWWDIR%%/vendor/yzalis/identicon/src/Identicon/Generator/BaseGenerator.php
 %%WWWDIR%%/vendor/yzalis/identicon/src/Identicon/Generator/GdGenerator.php