From 2dbea7da2f7a4c1c72db19d3020f28a9cfa4f04d Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
Date: Fri, 27 Jan 2017 14:12:44 +0000
Subject: devel/libevent2: update to 2.1.8 and cleanup

Changes:	https://github.com/libevent/libevent/raw/release-2.1.8-stable/ChangeLog
PR:		216527
Exp-run by:	antoine
Approved by:	mm (maintainer)
---
 audio/forked-daapd/Makefile                        |  2 +-
 databases/libcouchbase/Makefile                    |  1 +
 databases/libmemcached/Makefile                    |  2 +-
 databases/memcached/Makefile                       |  1 +
 databases/memcacheq/Makefile                       |  2 +-
 databases/mysql-proxy/Makefile                     |  2 +-
 databases/mysql56-client/Makefile                  |  2 +-
 databases/mysql56-server/Makefile                  |  2 +-
 databases/mysql57-client/Makefile                  |  2 +-
 databases/mysql57-server/Makefile                  |  2 +-
 databases/mysql80-client/Makefile                  |  2 +-
 databases/mysql80-server/Makefile                  |  2 +-
 databases/percona57-client/Makefile                |  2 +-
 databases/percona57-pam-for-mysql/Makefile         |  2 +-
 databases/percona57-server/Makefile                |  2 +-
 databases/pgbouncer/Makefile                       |  1 +
 databases/sharedance/Makefile                      |  2 +-
 devel/eventxx/Makefile                             |  2 +-
 devel/fstrm/Makefile                               |  1 +
 devel/gearmand-devel/Makefile                      |  2 +-
 devel/gearmand/Makefile                            |  2 +-
 devel/libdnsres/Makefile                           |  2 +-
 devel/libevent2/Makefile                           | 32 +++--------
 devel/libevent2/distinfo                           |  5 +-
 devel/libevent2/files/patch-configure.ac           | 13 +++++
 devel/libevent2/files/patch-libressl               | 67 ++++++++++++++++++++++
 devel/libevent2/files/patch-test_test.sh           | 24 ++++++++
 devel/libevent2/pkg-plist                          | 23 ++++----
 devel/libmsocket/Makefile                          |  2 +-
 devel/p5-Event-Lib/Makefile                        |  2 +-
 devel/pecl-event/Makefile                          |  2 +-
 devel/pecl-libevent/Makefile                       |  2 +-
 devel/pinba_engine/Makefile                        |  2 +-
 devel/py-event/Makefile                            |  2 +-
 devel/thrift-cpp/Makefile                          |  2 +-
 dns/adsuck/Makefile                                |  2 +-
 dns/dnscrypt-wrapper/Makefile                      |  2 +-
 dns/dnsproxy/Makefile                              |  1 +
 dns/getdns/Makefile                                |  1 +
 dns/nsd/Makefile                                   |  1 +
 dns/openmdns/Makefile                              |  1 +
 dns/unbound/Makefile                               |  1 +
 irc/bitlbee/Makefile                               |  1 +
 lang/io/Makefile                                   |  2 +-
 mail/dbmail/Makefile                               |  1 +
 mail/mailest/Makefile                              |  1 +
 mail/opensmtpd-devel/Makefile                      |  1 +
 mail/opensmtpd-extras-filter-clamav/Makefile       |  2 +-
 mail/opensmtpd-extras-filter-dkim/Makefile         |  2 +-
 mail/opensmtpd-extras-filter-dnsbl/Makefile        |  2 +-
 mail/opensmtpd-extras-filter-lua/Makefile          |  2 +-
 mail/opensmtpd-extras-filter-monkey/Makefile       |  2 +-
 mail/opensmtpd-extras-filter-pause/Makefile        |  2 +-
 mail/opensmtpd-extras-filter-perl/Makefile         |  2 +-
 mail/opensmtpd-extras-filter-python/Makefile       |  2 +-
 mail/opensmtpd-extras-filter-regex/Makefile        |  2 +-
 mail/opensmtpd-extras-filter-spamassassin/Makefile |  2 +-
 mail/opensmtpd-extras-queue-python/Makefile        |  2 +-
 mail/opensmtpd-extras-queue-ram/Makefile           |  2 +-
 mail/opensmtpd-extras-scheduler-python/Makefile    |  2 +-
 mail/opensmtpd-extras-scheduler-ram/Makefile       |  2 +-
 mail/opensmtpd-extras-table-ldap/Makefile          |  2 +-
 mail/opensmtpd-extras-table-mysql/Makefile         |  2 +-
 mail/opensmtpd-extras-table-passwd/Makefile        |  2 +-
 mail/opensmtpd-extras-table-postgresql/Makefile    |  2 +-
 mail/opensmtpd-extras-table-python/Makefile        |  2 +-
 mail/opensmtpd-extras-table-redis/Makefile         |  2 +-
 mail/opensmtpd-extras-table-socketmap/Makefile     |  2 +-
 mail/opensmtpd-extras-table-sqlite/Makefile        |  2 +-
 mail/opensmtpd-extras-tool-stats/Makefile          |  2 +-
 mail/opensmtpd-extras/Makefile                     |  2 +-
 mail/opensmtpd/Makefile                            |  2 +-
 mail/rspamd-devel/Makefile                         |  1 +
 mail/rspamd/Makefile                               |  1 +
 mail/thunderbird/Makefile                          |  2 +-
 net-im/telegram/Makefile                           |  1 +
 net-mgmt/ccnet-client/Makefile                     |  1 +
 net-mgmt/ccnet-server/Makefile                     |  1 +
 net-mgmt/lldpd/Makefile                            |  1 +
 net-mgmt/seafile-client/Makefile                   |  1 +
 net-mgmt/seafile-gui/Makefile                      |  1 +
 net-mgmt/seafile-server/Makefile                   |  2 +-
 net-p2p/bitcoin-daemon/Makefile                    |  2 +-
 net-p2p/bitcoin-utils/Makefile                     |  2 +-
 net-p2p/bitcoin/Makefile                           |  2 +-
 net-p2p/libswift/Makefile                          |  1 +
 net-p2p/transmission-cli/Makefile                  |  2 +-
 net-p2p/transmission-daemon/Makefile               |  2 +-
 net-p2p/transmission-gtk/Makefile                  |  2 +-
 net-p2p/transmission-qt4/Makefile                  |  2 +-
 net-p2p/unworkable/Makefile                        |  2 +-
 net/aprsc/Makefile                                 |  2 +-
 net/honeyd/Makefile                                |  2 +-
 net/ifstated/Makefile                              |  1 +
 net/ladvd/Makefile                                 |  1 +
 net/netatalk3/Makefile                             |  2 +-
 net/ntop/Makefile                                  |  2 +-
 net/ntp-devel/Makefile                             |  2 +-
 net/ntp/Makefile                                   |  2 +-
 net/nylon/Makefile                                 |  2 +-
 net/openmpi2/Makefile                              |  2 +-
 net/scribe/Makefile                                |  2 +-
 net/trickle/Makefile                               |  2 +-
 net/turnserver/Makefile                            |  1 +
 security/certificate-transparency/Makefile         |  2 +-
 security/fragroute/Makefile                        |  2 +-
 security/obfsclient/Makefile                       |  2 +-
 security/openiked/Makefile                         |  1 +
 security/scanssh/Makefile                          |  2 +-
 security/spybye/Makefile                           |  2 +-
 security/sslsplit/Makefile                         |  1 +
 security/stegdetect/Makefile                       |  2 +-
 security/tor-devel/Makefile                        |  1 +
 security/tor/Makefile                              |  1 +
 sysutils/grok/Makefile                             |  2 +-
 sysutils/ori/Makefile                              |  2 +-
 sysutils/tlsdate/Makefile                          |  1 +
 sysutils/tmate-slave/Makefile                      |  1 +
 sysutils/tmate/Makefile                            |  1 +
 sysutils/tmux/Makefile                             |  1 +
 textproc/groonga/Makefile                          |  1 +
 www/crawl/Makefile                                 |  2 +-
 www/firefox-esr/Makefile                           |  1 +
 www/firefox/Makefile                               |  1 +
 www/httpsqs/Makefile                               |  2 +-
 www/libevhtp/Makefile                              |  2 +-
 www/libxul/Makefile                                |  1 +
 www/mohawk/Makefile                                |  1 +
 www/nghttp2/Makefile                               |  1 +
 www/pecl-http/Makefile                             |  2 +-
 www/pecl-http2/Makefile                            |  2 +-
 www/seamonkey/Makefile                             |  2 +-
 www/slowcgi/Makefile                               |  1 +
 www/spdylay/Makefile                               |  2 +-
 134 files changed, 256 insertions(+), 124 deletions(-)
 create mode 100644 devel/libevent2/files/patch-configure.ac
 create mode 100644 devel/libevent2/files/patch-libressl
 create mode 100644 devel/libevent2/files/patch-test_test.sh

diff --git a/audio/forked-daapd/Makefile b/audio/forked-daapd/Makefile
index 663fe45d3c8c..4531d861f64a 100644
--- a/audio/forked-daapd/Makefile
+++ b/audio/forked-daapd/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	forked-daapd
 PORTVERSION=	24.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 
 MAINTAINER=	takumiiinn@gmail.com
diff --git a/databases/libcouchbase/Makefile b/databases/libcouchbase/Makefile
index 836125d6fbe1..8fe7219bfc49 100644
--- a/databases/libcouchbase/Makefile
+++ b/databases/libcouchbase/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	libcouchbase
 DISTVERSION=	2.6.3
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	http://packages.couchbase.com/clients/c/
 
diff --git a/databases/libmemcached/Makefile b/databases/libmemcached/Makefile
index f5eb0a9a6d34..b63bd1f42b12 100644
--- a/databases/libmemcached/Makefile
+++ b/databases/libmemcached/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	libmemcached
 PORTVERSION=	1.0.18
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	databases
 MASTER_SITES=	http://launchpad.net/${PORTNAME}/1.0/${PORTVERSION}/+download/
 
diff --git a/databases/memcached/Makefile b/databases/memcached/Makefile
index e27ab3042394..c5eabeb2c79f 100644
--- a/databases/memcached/Makefile
+++ b/databases/memcached/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	memcached
 PORTVERSION=	1.4.34
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	http://www.memcached.org/files/ \
 		GENTOO
diff --git a/databases/memcacheq/Makefile b/databases/memcacheq/Makefile
index a989f1269086..b41bfe446439 100644
--- a/databases/memcacheq/Makefile
+++ b/databases/memcacheq/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	memcacheq
 PORTVERSION=	0.2.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	databases
 MASTER_SITES=	GENTOO
 
diff --git a/databases/mysql-proxy/Makefile b/databases/mysql-proxy/Makefile
index 8a3bc157ae4b..7e62f058e8b5 100644
--- a/databases/mysql-proxy/Makefile
+++ b/databases/mysql-proxy/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	mysql-proxy
 PORTVERSION=	0.8.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	databases
 MASTER_SITES=	MYSQL/MySQL-Proxy
 
diff --git a/databases/mysql56-client/Makefile b/databases/mysql56-client/Makefile
index 1bf50abd3323..98dd0db34306 100644
--- a/databases/mysql56-client/Makefile
+++ b/databases/mysql56-client/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	mysql
-PORTREVISION?=	1
+PORTREVISION?=	2
 PKGNAMESUFFIX=	56-client
 
 COMMENT=	Multithreaded SQL database (client)
diff --git a/databases/mysql56-server/Makefile b/databases/mysql56-server/Makefile
index 236c26a93a0d..64ddc7441b23 100644
--- a/databases/mysql56-server/Makefile
+++ b/databases/mysql56-server/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME?=	mysql
 PORTVERSION=	5.6.35
-PORTREVISION?=	3
+PORTREVISION?=	4
 CATEGORIES=	databases ipv6
 MASTER_SITES=	MYSQL/MySQL-5.6
 PKGNAMESUFFIX?=	56-server
diff --git a/databases/mysql57-client/Makefile b/databases/mysql57-client/Makefile
index 0afd600c75a3..a5895db25f23 100644
--- a/databases/mysql57-client/Makefile
+++ b/databases/mysql57-client/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	mysql
-PORTREVISION?=	0
+PORTREVISION?=	1
 PKGNAMESUFFIX=	57-client
 
 COMMENT=	Multithreaded SQL database (client)
diff --git a/databases/mysql57-server/Makefile b/databases/mysql57-server/Makefile
index dca4ea980dd1..021434fd5555 100644
--- a/databases/mysql57-server/Makefile
+++ b/databases/mysql57-server/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME?=	mysql
 PORTVERSION=	5.7.17
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES=	databases ipv6
 MASTER_SITES=	MYSQL/MySQL-5.7
 PKGNAMESUFFIX?=	57-server
diff --git a/databases/mysql80-client/Makefile b/databases/mysql80-client/Makefile
index 08cc83fded4a..a38cb1b53ea4 100644
--- a/databases/mysql80-client/Makefile
+++ b/databases/mysql80-client/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	mysql
-PORTREVISION?=	1
+PORTREVISION?=	2
 PKGNAMESUFFIX=	80-client
 
 COMMENT=	Multithreaded SQL database (client)
diff --git a/databases/mysql80-server/Makefile b/databases/mysql80-server/Makefile
index 54fc3375557e..943cea45916a 100644
--- a/databases/mysql80-server/Makefile
+++ b/databases/mysql80-server/Makefile
@@ -4,7 +4,7 @@
 PORTNAME?=		mysql
 PORTVERSION=		8.0.0
 DISTVERSIONSUFFIX?=	-dmr
-PORTREVISION?=		0
+PORTREVISION?=		1
 CATEGORIES=		databases ipv6
 MASTER_SITES=		MYSQL/MySQL-8.0
 PKGNAMESUFFIX?=		80-server
diff --git a/databases/percona57-client/Makefile b/databases/percona57-client/Makefile
index a2ab5f0c2b2c..36fbb67b39de 100644
--- a/databases/percona57-client/Makefile
+++ b/databases/percona57-client/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	percona
-PORTREVISION?=	0
+PORTREVISION?=	1
 PKGNAMESUFFIX=	57-client
 
 COMMENT=	Multithreaded SQL database (client)
diff --git a/databases/percona57-pam-for-mysql/Makefile b/databases/percona57-pam-for-mysql/Makefile
index 770085de3d39..ef763893778f 100644
--- a/databases/percona57-pam-for-mysql/Makefile
+++ b/databases/percona57-pam-for-mysql/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	percona57
-PORTREVISION?=	0
+PORTREVISION?=	1
 PKGNAMESUFFIX=	-pam-for-mysql
 
 COMMENT=	PAM plugin for MySQL
diff --git a/databases/percona57-server/Makefile b/databases/percona57-server/Makefile
index 8b5cce27acba..530fff5cf89a 100644
--- a/databases/percona57-server/Makefile
+++ b/databases/percona57-server/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME?=	percona
 DISTVERSION=	5.7.16-10
-PORTREVISION?=	1
+PORTREVISION?=	2
 CATEGORIES=	databases ipv6
 MASTER_SITES=	http://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-${DISTVERSION}/source/tarball/:percona \
 		SF/boost/boost/1.59.0:boost
diff --git a/databases/pgbouncer/Makefile b/databases/pgbouncer/Makefile
index 8fc01fe1779d..c5bf07e9842c 100644
--- a/databases/pgbouncer/Makefile
+++ b/databases/pgbouncer/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	pgbouncer
 PORTVERSION=	1.7.2
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	https://pgbouncer.github.io/downloads/files/${PORTVERSION}/ \
 		http://pgbouncer.github.io/downloads/files/${PORTVERSION}/
diff --git a/databases/sharedance/Makefile b/databases/sharedance/Makefile
index f6c817c41350..e91fba91a329 100644
--- a/databases/sharedance/Makefile
+++ b/databases/sharedance/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	sharedance
 PORTVERSION=	0.6
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	databases
 MASTER_SITES=	http://download.pureftpd.org/pub/sharedance/
 
diff --git a/devel/eventxx/Makefile b/devel/eventxx/Makefile
index a95c5fbb8aeb..455049b1c73d 100644
--- a/devel/eventxx/Makefile
+++ b/devel/eventxx/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	eventxx
 PORTVERSION=	1.0.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 MASTER_SITES=	http://proj.llucax.com.ar/home/eventxx/releases/ \
 		LOCAL/glarkin
diff --git a/devel/fstrm/Makefile b/devel/fstrm/Makefile
index 1c0fc68db5fe..892cd1265a7b 100644
--- a/devel/fstrm/Makefile
+++ b/devel/fstrm/Makefile
@@ -4,6 +4,7 @@
 PORTNAME=		fstrm
 PORTVERSION=		0.3.0
 DISTVERSIONPREFIX=	v
+PORTREVISION=		1
 CATEGORIES=		devel
 
 MAINTAINER=		freebsd@dns-lab.com
diff --git a/devel/gearmand-devel/Makefile b/devel/gearmand-devel/Makefile
index 92574f2243f9..b0900392abb9 100644
--- a/devel/gearmand-devel/Makefile
+++ b/devel/gearmand-devel/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	gearmand
 PORTVERSION=	1.1.8
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	devel
 MASTER_SITES=	http://launchpad.net/gearmand/1.2/${PORTVERSION}/+download/
 
diff --git a/devel/gearmand/Makefile b/devel/gearmand/Makefile
index 9f72abdf7853..12e3d569fdfd 100644
--- a/devel/gearmand/Makefile
+++ b/devel/gearmand/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	gearmand
 PORTVERSION=	1.0.6
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	devel
 MASTER_SITES=	http://launchpad.net/gearmand/1.0/${PORTVERSION}/+download/
 
diff --git a/devel/libdnsres/Makefile b/devel/libdnsres/Makefile
index 18769f257095..a9333e916e69 100644
--- a/devel/libdnsres/Makefile
+++ b/devel/libdnsres/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	libdnsres
 PORTVERSION=	0.1a
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	devel
 MASTER_SITES=	http://monkey.org/~provos/
 
diff --git a/devel/libevent2/Makefile b/devel/libevent2/Makefile
index d5429d4e33d7..9dd4f8104165 100644
--- a/devel/libevent2/Makefile
+++ b/devel/libevent2/Makefile
@@ -1,12 +1,12 @@
 # Created by: Martin Matuska <mm@FreeBSD.org>
 # $FreeBSD$
 
-PORTNAME=	libevent2
-PORTVERSION=	2.0.22
+PORTNAME=	libevent
+PORTVERSION=	2.1.8
 DISTVERSIONPREFIX=	release-
 DISTVERSIONSUFFIX=	-stable
-PORTREVISION=	1
 CATEGORIES=	devel
+PKGNAMESUFFIX=	2
 
 MAINTAINER=	mm@FreeBSD.org
 COMMENT=	API for executing callback functions on events or timeouts
@@ -14,38 +14,22 @@ COMMENT=	API for executing callback functions on events or timeouts
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+USES=		autoreconf libtool pathfix
 USE_GITHUB=	yes
-GH_ACCOUNT=	${GH_PROJECT}
-GH_PROJECT=	${PORTNAME:S/2$//}
-
 GNU_CONFIGURE=	yes
-USES=		autoreconf libtool pathfix
+INSTALL_TARGET=	install-strip
+TEST_TARGET=	check
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	OPENSSL THREADS
 OPTIONS_DEFAULT=	OPENSSL THREADS
 OPTIONS_SUB=	yes
-INSTALL_TARGET=	install-strip
 
-OPENSSL_USE=	openssl=yes
+OPENSSL_USES=	ssl
 OPENSSL_CPPFLAGS=	-I${OPENSSLINC}
 OPENSSL_LDFLAGS=	-L${OPENSSLLIB}
 OPENSSL_CONFIGURE_ENABLE=	openssl
 
 THREADS_CONFIGURE_ENABLE=	thread-support
 
-post-patch:
-	${ECHO_CMD} 'AC_CONFIG_MACRO_DIR([m4])' >>${WRKSRC}/configure.in
-# error: using '$(top_srcdir)' in TESTS is currently broken
-	${REINPLACE_CMD} 's/^TESTS.*top_srcdir/#&/' ${WRKSRC}/test/Makefile.am
-
-regression-test: build
-	@(${SH} ${WRKSRC}/test/regress)
-
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MOPENSSL} && ${SSL_DEFAULT:Mopenssl-devel}
-BROKEN=		Does not build with openssl-devel
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/libevent2/distinfo b/devel/libevent2/distinfo
index 284df4ef8f82..6dbdcef463b3 100644
--- a/devel/libevent2/distinfo
+++ b/devel/libevent2/distinfo
@@ -1,2 +1,3 @@
-SHA256 (libevent-libevent-release-2.0.22-stable_GH0.tar.gz) = ab89639b0819befb1d8b293d52047c6955f8d1c9150c2b22a0e6247930eb9128
-SIZE (libevent-libevent-release-2.0.22-stable_GH0.tar.gz) = 512657
+TIMESTAMP = 1485387435
+SHA256 (libevent-libevent-release-2.1.8-stable_GH0.tar.gz) = 316ddb401745ac5d222d7c529ef1eada12f58f6376a66c1118eee803cb70f83d
+SIZE (libevent-libevent-release-2.1.8-stable_GH0.tar.gz) = 700896
diff --git a/devel/libevent2/files/patch-configure.ac b/devel/libevent2/files/patch-configure.ac
new file mode 100644
index 000000000000..2ef44d7f6e71
--- /dev/null
+++ b/devel/libevent2/files/patch-configure.ac
@@ -0,0 +1,13 @@
+Fix 0dda56a48e94 regression. "struct so_linger" doesn't exist anywhere.
+
+--- configure.ac.orig	2017-01-25 23:37:15 UTC
++++ configure.ac
+@@ -715,7 +715,7 @@ AC_CHECK_MEMBERS([struct in6_addr.s6_add
+ #endif
+ ])
+ 
+-AC_CHECK_TYPES([struct so_linger],
++AC_CHECK_TYPES([struct linger],
+ [#define HAVE_SO_LINGER], ,
+ [
+ #ifdef HAVE_SYS_SOCKET_H
diff --git a/devel/libevent2/files/patch-libressl b/devel/libevent2/files/patch-libressl
new file mode 100644
index 000000000000..c8637401a7b4
--- /dev/null
+++ b/devel/libevent2/files/patch-libressl
@@ -0,0 +1,67 @@
+LibreSSL uses a synthetic version in order to force consumers to check
+individual features instead but API isn't compatible with OpenSSL 1.1.x.
+
+--- openssl-compat.h.orig	2017-01-25 23:37:15 UTC
++++ openssl-compat.h
+@@ -1,7 +1,7 @@
+ #ifndef OPENSSL_COMPAT_H
+ #define OPENSSL_COMPAT_H
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+ 
+ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
+ {
+--- sample/https-client.c.orig	2017-01-25 23:37:15 UTC
++++ sample/https-client.c
+@@ -312,7 +312,7 @@ main(int argc, char **argv)
+ 	}
+ 	uri[sizeof(uri) - 1] = '\0';
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+ 	// Initialize OpenSSL
+ 	SSL_library_init();
+ 	ERR_load_crypto_strings();
+@@ -480,7 +480,7 @@ cleanup:
+ 		SSL_CTX_free(ssl_ctx);
+ 	if (type == HTTP && ssl)
+ 		SSL_free(ssl);
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+ 	EVP_cleanup();
+ 	ERR_free_strings();
+ 
+--- sample/le-proxy.c.orig	2017-01-25 23:37:15 UTC
++++ sample/le-proxy.c
+@@ -259,7 +259,7 @@ main(int argc, char **argv)
+ 
+ 	if (use_ssl) {
+ 		int r;
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+ 		SSL_library_init();
+ 		ERR_load_crypto_strings();
+ 		SSL_load_error_strings();
+--- sample/openssl_hostname_validation.c.orig	2017-01-25 23:37:15 UTC
++++ sample/openssl_hostname_validation.c
+@@ -48,7 +48,7 @@ SOFTWARE.
+ 
+ #define HOSTNAME_MAX_SIZE 255
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+ #define ASN1_STRING_get0_data ASN1_STRING_data
+ #endif
+ 
+--- test/regress_ssl.c.orig	2017-01-25 23:37:15 UTC
++++ test/regress_ssl.c
+@@ -186,7 +186,7 @@ get_ssl_ctx(void)
+ void
+ init_ssl(void)
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+ 	SSL_library_init();
+ 	ERR_load_crypto_strings();
+ 	SSL_load_error_strings();
diff --git a/devel/libevent2/files/patch-test_test.sh b/devel/libevent2/files/patch-test_test.sh
new file mode 100644
index 000000000000..641122572669
--- /dev/null
+++ b/devel/libevent2/files/patch-test_test.sh
@@ -0,0 +1,24 @@
+regress runs multiple tests, don't silence it completely.
+
+--- test/test.sh.orig	2017-01-25 23:37:15 UTC
++++ test/test.sh
+@@ -102,7 +102,8 @@ run_tests () {
+ 	announce_n " regress: "
+ 	if test "$TEST_OUTPUT_FILE" = "/dev/null" ;
+ 	then
+-		$TEST_DIR/regress --quiet $REGRESS_ARGS
++		announce " [see below]"
++		$TEST_DIR/regress $REGRESS_ARGS
+ 	else
+ 		$TEST_DIR/regress $REGRESS_ARGS >>"$TEST_OUTPUT_FILE"
+ 	fi
+@@ -117,7 +118,8 @@ run_tests () {
+ 	announce_n " regress_debug: "
+ 	if test "$TEST_OUTPUT_FILE" = "/dev/null" ;
+ 	then
+-		EVENT_DEBUG_MODE=1 $TEST_DIR/regress --quiet $REGRESS_ARGS
++		announce " [see below]"
++		EVENT_DEBUG_MODE=1 $TEST_DIR/regress $REGRESS_ARGS
+ 	else
+ 		EVENT_DEBUG_MODE=1 $TEST_DIR/regress $REGRESS_ARGS >>"$TEST_OUTPUT_FILE"
+ 	fi
diff --git a/devel/libevent2/pkg-plist b/devel/libevent2/pkg-plist
index 938f45964eb0..77ca43225dde 100644
--- a/devel/libevent2/pkg-plist
+++ b/devel/libevent2/pkg-plist
@@ -26,29 +26,32 @@ include/event2/tag.h
 include/event2/tag_compat.h
 include/event2/thread.h
 include/event2/util.h
+include/event2/visibility.h
 include/evhttp.h
 include/evrpc.h
 include/evutil.h
-lib/libevent-2.0.so.5
-lib/libevent-2.0.so.5.1.10
+lib/libevent-2.1.so.6
+lib/libevent-2.1.so.6.0.2
 lib/libevent.a
 lib/libevent.so
-lib/libevent_core-2.0.so.5
-lib/libevent_core-2.0.so.5.1.10
+lib/libevent_core-2.1.so.6
+lib/libevent_core-2.1.so.6.0.2
 lib/libevent_core.a
 lib/libevent_core.so
-lib/libevent_extra-2.0.so.5
-lib/libevent_extra-2.0.so.5.1.10
+lib/libevent_extra-2.1.so.6
+lib/libevent_extra-2.1.so.6.0.2
 lib/libevent_extra.a
 lib/libevent_extra.so
-%%OPENSSL%%lib/libevent_openssl-2.0.so.5
-%%OPENSSL%%lib/libevent_openssl-2.0.so.5.1.10
+%%OPENSSL%%lib/libevent_openssl-2.1.so.6
+%%OPENSSL%%lib/libevent_openssl-2.1.so.6.0.2
 %%OPENSSL%%lib/libevent_openssl.a
 %%OPENSSL%%lib/libevent_openssl.so
-%%THREADS%%lib/libevent_pthreads-2.0.so.5
-%%THREADS%%lib/libevent_pthreads-2.0.so.5.1.10
+%%THREADS%%lib/libevent_pthreads-2.1.so.6
+%%THREADS%%lib/libevent_pthreads-2.1.so.6.0.2
 %%THREADS%%lib/libevent_pthreads.a
 %%THREADS%%lib/libevent_pthreads.so
 libdata/pkgconfig/libevent.pc
+libdata/pkgconfig/libevent_core.pc
+libdata/pkgconfig/libevent_extra.pc
 %%OPENSSL%%libdata/pkgconfig/libevent_openssl.pc
 %%THREADS%%libdata/pkgconfig/libevent_pthreads.pc
diff --git a/devel/libmsocket/Makefile b/devel/libmsocket/Makefile
index b9e01d9d8b47..926be44ad23c 100644
--- a/devel/libmsocket/Makefile
+++ b/devel/libmsocket/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	libmsocket
 PORTVERSION=	0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel net
 MASTER_SITES=	SF/kageki/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
diff --git a/devel/p5-Event-Lib/Makefile b/devel/p5-Event-Lib/Makefile
index a8688a23ce20..1a045c46110a 100644
--- a/devel/p5-Event-Lib/Makefile
+++ b/devel/p5-Event-Lib/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	Event-Lib
 PORTVERSION=	1.03
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
diff --git a/devel/pecl-event/Makefile b/devel/pecl-event/Makefile
index cb9ca83947ab..3895700afdaa 100644
--- a/devel/pecl-event/Makefile
+++ b/devel/pecl-event/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	event
 PORTVERSION=	2.0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
diff --git a/devel/pecl-libevent/Makefile b/devel/pecl-libevent/Makefile
index 3598122f94ea..88b4a4ff459a 100644
--- a/devel/pecl-libevent/Makefile
+++ b/devel/pecl-libevent/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	libevent
 PORTVERSION=	0.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
diff --git a/devel/pinba_engine/Makefile b/devel/pinba_engine/Makefile
index 7de85dc6a8e1..f553955feaeb 100644
--- a/devel/pinba_engine/Makefile
+++ b/devel/pinba_engine/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	pinba_engine
 PORTVERSION=	2011.08.18
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	devel
 
 MAINTAINER=	raven428@gmail.com
diff --git a/devel/py-event/Makefile b/devel/py-event/Makefile
index 94034366970a..aa6123fc09ff 100644
--- a/devel/py-event/Makefile
+++ b/devel/py-event/Makefile
@@ -4,7 +4,7 @@
 PORTNAME=	event
 DISTVERSIONPREFIX=	PYEVENT_
 DISTVERSION=	0_3
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	devel net python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
diff --git a/devel/thrift-cpp/Makefile b/devel/thrift-cpp/Makefile
index 4f1b985faa89..837de930f4f2 100644
--- a/devel/thrift-cpp/Makefile
+++ b/devel/thrift-cpp/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	thrift
 PORTVERSION=	${THRIFT_PORTVERSION} # to keep in sync with thrift
-PORTREVISION=	4
+PORTREVISION=	5
 PORTEPOCH=	1
 CATEGORIES=	devel
 PKGNAMESUFFIX=	-cpp
diff --git a/dns/adsuck/Makefile b/dns/adsuck/Makefile
index c7d31f764ae4..32683a9acd92 100644
--- a/dns/adsuck/Makefile
+++ b/dns/adsuck/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	adsuck
 PORTVERSION=	2.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	dns
 MASTER_SITES=	http://opensource.conformal.com/snapshots/adsuck/ \
 		http://philpep.org/pub/
diff --git a/dns/dnscrypt-wrapper/Makefile b/dns/dnscrypt-wrapper/Makefile
index 7f567a97a7f8..559344b90833 100644
--- a/dns/dnscrypt-wrapper/Makefile
+++ b/dns/dnscrypt-wrapper/Makefile
@@ -3,7 +3,7 @@
 PORTNAME=	dnscrypt-wrapper
 PORTVERSION=	0.2.1
 DISTVERSIONPREFIX=	v
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	dns
 
 MAINTAINER=	freebsd@toyingwithfate.com
diff --git a/dns/dnsproxy/Makefile b/dns/dnsproxy/Makefile
index 6853f9ad1757..a22f9286b63d 100644
--- a/dns/dnsproxy/Makefile
+++ b/dns/dnsproxy/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	dnsproxy
 PORTVERSION=	1.17
+PORTREVISION=	1
 CATEGORIES=	dns
 MASTER_SITES=	http://www.wolfermann.org/
 
diff --git a/dns/getdns/Makefile b/dns/getdns/Makefile
index e12072de9d54..89395f03268c 100644
--- a/dns/getdns/Makefile
+++ b/dns/getdns/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	getdns
 PORTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	dns ipv6
 MASTER_SITES=	https://getdnsapi.net/dist/ \
 		https://mirrors.rit.edu/zi/ \
diff --git a/dns/nsd/Makefile b/dns/nsd/Makefile
index a8fc024e14fa..aa3891fbd684 100644
--- a/dns/nsd/Makefile
+++ b/dns/nsd/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	nsd
 PORTVERSION=	4.1.14
+PORTREVISION=	1
 CATEGORIES=	dns ipv6
 MASTER_SITES=	http://www.nlnetlabs.nl/downloads/nsd/	\
 		ftp://ftp.rhnet.is/pub/nsd/
diff --git a/dns/openmdns/Makefile b/dns/openmdns/Makefile
index 7b4bd651fa91..c8c9b29ebb7d 100644
--- a/dns/openmdns/Makefile
+++ b/dns/openmdns/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	openmdns
 DISTVERSION=	0.6-15
 DISTVERSIONSUFFIX=	-gd76ce05
+PORTREVISION=	1
 CATEGORIES=	dns
 
 MAINTAINER=	jbeich@FreeBSD.org
diff --git a/dns/unbound/Makefile b/dns/unbound/Makefile
index 5435454e0385..0bb4f88e092f 100644
--- a/dns/unbound/Makefile
+++ b/dns/unbound/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	unbound
 PORTVERSION=	1.6.0
+PORTREVISION=	1
 CATEGORIES=	dns
 MASTER_SITES=	http://unbound.net/downloads/
 
diff --git a/irc/bitlbee/Makefile b/irc/bitlbee/Makefile
index 6611c5a2fb44..eac85cbd8ced 100644
--- a/irc/bitlbee/Makefile
+++ b/irc/bitlbee/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	bitlbee
 PORTVERSION=	3.5
+PORTREVISION=	1
 CATEGORIES=	irc
 MASTER_SITES=	http://get.bitlbee.org/src/ \
 		LOCAL/brix
diff --git a/lang/io/Makefile b/lang/io/Makefile
index b0c2f0f9e8fa..576cd94b6384 100644
--- a/lang/io/Makefile
+++ b/lang/io/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	io
 PORTVERSION=	2015.11.11
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang
 
 MAINTAINER=	gahr@FreeBSD.org
diff --git a/mail/dbmail/Makefile b/mail/dbmail/Makefile
index 8226ec9c896b..c652c9a723a1 100644
--- a/mail/dbmail/Makefile
+++ b/mail/dbmail/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	dbmail
 PORTVERSION=	3.2.3
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://git.dbmail.eu/paul/dbmail/snapshot/ \
 		http://www.dbmail.org/download/3.2/
diff --git a/mail/mailest/Makefile b/mail/mailest/Makefile
index eadf968ec782..d57dc262570c 100644
--- a/mail/mailest/Makefile
+++ b/mail/mailest/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	mailest
 PORTVERSION=	0.9.22
 DISTVERSIONPREFIX=	${PORTNAME}-
+PORTREVISION=	1
 CATEGORIES=	mail
 
 MAINTAINER=	hrs@FreeBSD.org
diff --git a/mail/opensmtpd-devel/Makefile b/mail/opensmtpd-devel/Makefile
index 2213aafb9a10..225e77b40a57 100644
--- a/mail/opensmtpd-devel/Makefile
+++ b/mail/opensmtpd-devel/Makefile
@@ -4,6 +4,7 @@
 PORTNAME=	opensmtpd
 PORTVERSION=	201606220754
 DISTVERSIONSUFFIX=	p1
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://www.opensmtpd.org/archives/ \
diff --git a/mail/opensmtpd-extras-filter-clamav/Makefile b/mail/opensmtpd-extras-filter-clamav/Makefile
index 2367800e1544..1cd33cc9b3e1 100644
--- a/mail/opensmtpd-extras-filter-clamav/Makefile
+++ b/mail/opensmtpd-extras-filter-clamav/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-clamav
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Check messages with ClamAV in OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-dkim/Makefile b/mail/opensmtpd-extras-filter-dkim/Makefile
index c3e4dae297be..c702a2770ac9 100644
--- a/mail/opensmtpd-extras-filter-dkim/Makefile
+++ b/mail/opensmtpd-extras-filter-dkim/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-dkim
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		DKIM-signing filter for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-dnsbl/Makefile b/mail/opensmtpd-extras-filter-dnsbl/Makefile
index 655a73208b1d..bc6b214077ff 100644
--- a/mail/opensmtpd-extras-filter-dnsbl/Makefile
+++ b/mail/opensmtpd-extras-filter-dnsbl/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-dnsbl
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		DNSBL-checking filter for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-lua/Makefile b/mail/opensmtpd-extras-filter-lua/Makefile
index 1d8b6b7c311b..8897b22daa37 100644
--- a/mail/opensmtpd-extras-filter-lua/Makefile
+++ b/mail/opensmtpd-extras-filter-lua/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-lua
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		LUA-script filter support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-monkey/Makefile b/mail/opensmtpd-extras-filter-monkey/Makefile
index f0da2e38fdcc..29735075b565 100644
--- a/mail/opensmtpd-extras-filter-monkey/Makefile
+++ b/mail/opensmtpd-extras-filter-monkey/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-monkey
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Arbitrary delay or reject filter for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-pause/Makefile b/mail/opensmtpd-extras-filter-pause/Makefile
index 9b0bdd1a41b0..46fee1ab576e 100644
--- a/mail/opensmtpd-extras-filter-pause/Makefile
+++ b/mail/opensmtpd-extras-filter-pause/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-pause
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Pause incoming OpenSMTPD messages to reduce spam
 
diff --git a/mail/opensmtpd-extras-filter-perl/Makefile b/mail/opensmtpd-extras-filter-perl/Makefile
index 4987d9e52230..74593f4a09bd 100644
--- a/mail/opensmtpd-extras-filter-perl/Makefile
+++ b/mail/opensmtpd-extras-filter-perl/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-perl
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Perl-script filter support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-python/Makefile b/mail/opensmtpd-extras-filter-python/Makefile
index a5e800e525aa..68217a39c0e8 100644
--- a/mail/opensmtpd-extras-filter-python/Makefile
+++ b/mail/opensmtpd-extras-filter-python/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-python
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Python-script filter support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-regex/Makefile b/mail/opensmtpd-extras-filter-regex/Makefile
index a8b810f1f470..5fa37a98330c 100644
--- a/mail/opensmtpd-extras-filter-regex/Makefile
+++ b/mail/opensmtpd-extras-filter-regex/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-regex
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Regular expression filter for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-filter-spamassassin/Makefile b/mail/opensmtpd-extras-filter-spamassassin/Makefile
index fba86d8ed741..ccc6a17eae49 100644
--- a/mail/opensmtpd-extras-filter-spamassassin/Makefile
+++ b/mail/opensmtpd-extras-filter-spamassassin/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-filter-spamassassin
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Spamassassin filter addon for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-queue-python/Makefile b/mail/opensmtpd-extras-queue-python/Makefile
index 600eb9b50731..16e4e6fa166e 100644
--- a/mail/opensmtpd-extras-queue-python/Makefile
+++ b/mail/opensmtpd-extras-queue-python/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-queue-python
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Python queue support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-queue-ram/Makefile b/mail/opensmtpd-extras-queue-ram/Makefile
index c00a93b4484c..0b83eb3de8b6 100644
--- a/mail/opensmtpd-extras-queue-ram/Makefile
+++ b/mail/opensmtpd-extras-queue-ram/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-queue-ram
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		RAM queue support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-scheduler-python/Makefile b/mail/opensmtpd-extras-scheduler-python/Makefile
index dd802dc2b8ba..b0b30c1bb675 100644
--- a/mail/opensmtpd-extras-scheduler-python/Makefile
+++ b/mail/opensmtpd-extras-scheduler-python/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-scheduler-python
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Python scheduler support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-scheduler-ram/Makefile b/mail/opensmtpd-extras-scheduler-ram/Makefile
index a89f7e1bf942..363317efaaaa 100644
--- a/mail/opensmtpd-extras-scheduler-ram/Makefile
+++ b/mail/opensmtpd-extras-scheduler-ram/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-scheduler-ram
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		RAM scheduler support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-ldap/Makefile b/mail/opensmtpd-extras-table-ldap/Makefile
index 999b3337d7e1..676a8bc6b735 100644
--- a/mail/opensmtpd-extras-table-ldap/Makefile
+++ b/mail/opensmtpd-extras-table-ldap/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-table-ldap
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		LDAP table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-mysql/Makefile b/mail/opensmtpd-extras-table-mysql/Makefile
index dcbb4f0487aa..216729277cdb 100644
--- a/mail/opensmtpd-extras-table-mysql/Makefile
+++ b/mail/opensmtpd-extras-table-mysql/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-mysql
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	MySQL table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-passwd/Makefile b/mail/opensmtpd-extras-table-passwd/Makefile
index 1aa7e03cee81..b22335e3978b 100644
--- a/mail/opensmtpd-extras-table-passwd/Makefile
+++ b/mail/opensmtpd-extras-table-passwd/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-passwd
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	passwd(5) table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-postgresql/Makefile b/mail/opensmtpd-extras-table-postgresql/Makefile
index dea39cbcf505..65759e254634 100644
--- a/mail/opensmtpd-extras-table-postgresql/Makefile
+++ b/mail/opensmtpd-extras-table-postgresql/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-postgresql
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	PostgreSQL table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-python/Makefile b/mail/opensmtpd-extras-table-python/Makefile
index 1b8f06f4fb28..6f90b6b5dadf 100644
--- a/mail/opensmtpd-extras-table-python/Makefile
+++ b/mail/opensmtpd-extras-table-python/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-python
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	Python table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-redis/Makefile b/mail/opensmtpd-extras-table-redis/Makefile
index 5e0ee794b7e5..a9a9993cff41 100644
--- a/mail/opensmtpd-extras-table-redis/Makefile
+++ b/mail/opensmtpd-extras-table-redis/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-redis
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	Redis table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-socketmap/Makefile b/mail/opensmtpd-extras-table-socketmap/Makefile
index 6a9174d1ab4c..906d9cca3728 100644
--- a/mail/opensmtpd-extras-table-socketmap/Makefile
+++ b/mail/opensmtpd-extras-table-socketmap/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-socketmap
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	Socketmap table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-table-sqlite/Makefile b/mail/opensmtpd-extras-table-sqlite/Makefile
index 81ef6e1bc929..698f5d3e60c9 100644
--- a/mail/opensmtpd-extras-table-sqlite/Makefile
+++ b/mail/opensmtpd-extras-table-sqlite/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=	-table-sqlite
-PORTREVISION=	0
+PORTREVISION=	1
 
 COMMENT=	SQLite table support for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras-tool-stats/Makefile b/mail/opensmtpd-extras-tool-stats/Makefile
index 82ee90723076..5dbfbc20a401 100644
--- a/mail/opensmtpd-extras-tool-stats/Makefile
+++ b/mail/opensmtpd-extras-tool-stats/Makefile
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PKGNAMESUFFIX=		-tool-stats
-PORTREVISION=		0
+PORTREVISION=		1
 
 COMMENT=		Statistics tool for OpenSMTPD
 
diff --git a/mail/opensmtpd-extras/Makefile b/mail/opensmtpd-extras/Makefile
index b262623c0ad9..e4a2f4b4405f 100644
--- a/mail/opensmtpd-extras/Makefile
+++ b/mail/opensmtpd-extras/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	opensmtpd-extras
 PORTVERSION=	201606230001
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES+=	mail
 MASTER_SITES=	http://www.opensmtpd.org/archives/
 
diff --git a/mail/opensmtpd/Makefile b/mail/opensmtpd/Makefile
index f0ff781f0e89..cf0e20380d4b 100644
--- a/mail/opensmtpd/Makefile
+++ b/mail/opensmtpd/Makefile
@@ -4,7 +4,7 @@
 PORTNAME=	opensmtpd
 PORTVERSION=	5.9.2p1
 PORTEPOCH=	1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	mail
 MASTER_SITES=	http://www.opensmtpd.org/archives/ \
 		http://distfiles.pirateparty.in/ashish/
diff --git a/mail/rspamd-devel/Makefile b/mail/rspamd-devel/Makefile
index ac3aa8d8a36c..2fccd951b159 100644
--- a/mail/rspamd-devel/Makefile
+++ b/mail/rspamd-devel/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	rspamd
 PORTVERSION=	1.5.0.a3.20170120
+PORTREVISION=	1
 CATEGORIES=	mail
 PKGNAMESUFFIX=	-devel
 
diff --git a/mail/rspamd/Makefile b/mail/rspamd/Makefile
index d1e17fb49ef9..af3323366554 100644
--- a/mail/rspamd/Makefile
+++ b/mail/rspamd/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	rspamd
 PORTVERSION=	1.4.3
+PORTREVISION=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://rspamd.com/downloads/
 
diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile
index 33215781dc9a..2558153a8a38 100644
--- a/mail/thunderbird/Makefile
+++ b/mail/thunderbird/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	thunderbird
 DISTVERSION=	45.6.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail news net-im ipv6
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
 		MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build1/source
diff --git a/net-im/telegram/Makefile b/net-im/telegram/Makefile
index c738d70f8d3b..e912fd890d53 100644
--- a/net-im/telegram/Makefile
+++ b/net-im/telegram/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	telegram
 PORTVERSION=	1.4.1.g20161227
+PORTREVISION=	1
 CATEGORIES=	net-im
 
 MAINTAINER=	cpm@FreeBSD.org
diff --git a/net-mgmt/ccnet-client/Makefile b/net-mgmt/ccnet-client/Makefile
index 4f5bd5a3153b..85c65c426608 100644
--- a/net-mgmt/ccnet-client/Makefile
+++ b/net-mgmt/ccnet-client/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	ccnet-client
 PORTVERSION=	6.0.2
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	net-mgmt devel
 
 MAINTAINER=	ultima1252@gmail.com
diff --git a/net-mgmt/ccnet-server/Makefile b/net-mgmt/ccnet-server/Makefile
index d0c247a6e4b2..4f25d16da563 100644
--- a/net-mgmt/ccnet-server/Makefile
+++ b/net-mgmt/ccnet-server/Makefile
@@ -4,6 +4,7 @@ PORTNAME=	ccnet-server
 PORTVERSION=	6.0.7
 DISTVERSIONPREFIX=	v
 DISTVERSIONSUFFIX=	-server
+PORTREVISION=	1
 CATEGORIES=	net-mgmt devel
 
 MAINTAINER=	ultima1252@gmail.com
diff --git a/net-mgmt/lldpd/Makefile b/net-mgmt/lldpd/Makefile
index 666db404d98f..e9de89f84629 100644
--- a/net-mgmt/lldpd/Makefile
+++ b/net-mgmt/lldpd/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	lldpd
 PORTVERSION=	0.9.4
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://media.luffy.cx/files/${PORTNAME}/ \
 		http://mirror.1labs.ch/${PORTNAME}/
diff --git a/net-mgmt/seafile-client/Makefile b/net-mgmt/seafile-client/Makefile
index 52840b773926..f8ad7b96fdf3 100644
--- a/net-mgmt/seafile-client/Makefile
+++ b/net-mgmt/seafile-client/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	seafile-client
 PORTVERSION=	6.0.2
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	ultima1252@gmail.com
diff --git a/net-mgmt/seafile-gui/Makefile b/net-mgmt/seafile-gui/Makefile
index ee3698d769e6..6b5eb79e4e71 100644
--- a/net-mgmt/seafile-gui/Makefile
+++ b/net-mgmt/seafile-gui/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	seafile-gui
 PORTVERSION=	6.0.1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	net-mgmt devel
 
 MAINTAINER=	ultima1252@gmail.com
diff --git a/net-mgmt/seafile-server/Makefile b/net-mgmt/seafile-server/Makefile
index f558a3afe5b6..8a98061eca2d 100644
--- a/net-mgmt/seafile-server/Makefile
+++ b/net-mgmt/seafile-server/Makefile
@@ -4,7 +4,7 @@ PORTNAME=	seafile-server
 PORTVERSION=	6.0.7
 DISTVERSIONPREFIX=	v
 DISTVERSIONSUFFIX=	-server
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	ultima1252@gmail.com
diff --git a/net-p2p/bitcoin-daemon/Makefile b/net-p2p/bitcoin-daemon/Makefile
index 010e9e07a01f..7b7cb2a6bccb 100644
--- a/net-p2p/bitcoin-daemon/Makefile
+++ b/net-p2p/bitcoin-daemon/Makefile
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 MASTERDIR=	${.CURDIR}/../bitcoin
-PORTREVISION=	3
+PORTREVISION=	4
 PKGNAMESUFFIX=	-daemon
 
 COMMENT=	Virtual Peer-to-Peer Currency (Daemon)
diff --git a/net-p2p/bitcoin-utils/Makefile b/net-p2p/bitcoin-utils/Makefile
index 9f2c4497eaa6..ad9618baffdd 100644
--- a/net-p2p/bitcoin-utils/Makefile
+++ b/net-p2p/bitcoin-utils/Makefile
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 MASTERDIR=	${.CURDIR}/../bitcoin
-PORTREVISION=	3
+PORTREVISION=	4
 PKGNAMESUFFIX=	-utils
 
 COMMENT=	Virtual Peer-to-Peer Currency (CLI and Utilities)
diff --git a/net-p2p/bitcoin/Makefile b/net-p2p/bitcoin/Makefile
index df397d8cf956..ed94570651bf 100644
--- a/net-p2p/bitcoin/Makefile
+++ b/net-p2p/bitcoin/Makefile
@@ -4,7 +4,7 @@
 PORTNAME=	bitcoin
 PORTVERSION=	0.12.1
 DISTVERSIONPREFIX=	v
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net-p2p finance
 
 MAINTAINER=	robbak@robbak.com
diff --git a/net-p2p/libswift/Makefile b/net-p2p/libswift/Makefile
index de706bfa1076..f5cfd30d2566 100644
--- a/net-p2p/libswift/Makefile
+++ b/net-p2p/libswift/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=		libswift
 PORTVERSION=	20160817
+PORTREVISION=	1
 CATEGORIES=		net-p2p
 
 MAINTAINER=		dch@skunkwerks.at
diff --git a/net-p2p/transmission-cli/Makefile b/net-p2p/transmission-cli/Makefile
index 6deae8fb7091..e2cf37dc4f9a 100644
--- a/net-p2p/transmission-cli/Makefile
+++ b/net-p2p/transmission-cli/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	transmission
 PORTVERSION=	2.92
-PORTREVISION?=	1
+PORTREVISION?=	2
 CATEGORIES?=	net-p2p
 MASTER_SITES=	https://github.com/transmission/transmission-releases/raw/master/ \
 		http://transmission.cachefly.net/
diff --git a/net-p2p/transmission-daemon/Makefile b/net-p2p/transmission-daemon/Makefile
index bc2c0211393c..d76f6815d2d2 100644
--- a/net-p2p/transmission-daemon/Makefile
+++ b/net-p2p/transmission-daemon/Makefile
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-PORTREVISION=	1
+PORTREVISION=	2
 PKGNAMESUFFIX=	-daemon
 
 MAINTAINER=	crees@FreeBSD.org
diff --git a/net-p2p/transmission-gtk/Makefile b/net-p2p/transmission-gtk/Makefile
index f37b3ed71e17..13d5ef0fe5d7 100644
--- a/net-p2p/transmission-gtk/Makefile
+++ b/net-p2p/transmission-gtk/Makefile
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-PORTREVISION=	1
+PORTREVISION=	2
 PKGNAMESUFFIX=	-gtk
 
 MAINTAINER=	crees@FreeBSD.org
diff --git a/net-p2p/transmission-qt4/Makefile b/net-p2p/transmission-qt4/Makefile
index f9a98d54c48a..2953e1914763 100644
--- a/net-p2p/transmission-qt4/Makefile
+++ b/net-p2p/transmission-qt4/Makefile
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-PORTREVISION=	1
+PORTREVISION=	2
 PKGNAMESUFFIX=	-qt4
 
 MAINTAINER=	crees@FreeBSD.org
diff --git a/net-p2p/unworkable/Makefile b/net-p2p/unworkable/Makefile
index d317f555f18f..1defc57b5422 100644
--- a/net-p2p/unworkable/Makefile
+++ b/net-p2p/unworkable/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	unworkable
 PORTVERSION=	0.53
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-p2p
 MASTER_SITES=	GOOGLE_CODE
 
diff --git a/net/aprsc/Makefile b/net/aprsc/Makefile
index 10ed350fa577..d049f10543d4 100644
--- a/net/aprsc/Makefile
+++ b/net/aprsc/Makefile
@@ -2,8 +2,8 @@
 
 PORTNAME=	aprsc
 PORTVERSION=	2.0.19
-PORTREVISION=	0
 DISTVERSIONSUFFIX=	.g05a4d35
+PORTREVISION=	1
 CATEGORIES=	net hamradio
 MASTER_SITES=	http://he.fi/aprsc/down/ \
 		LOCAL/db
diff --git a/net/honeyd/Makefile b/net/honeyd/Makefile
index 8f20b4689a58..506f046ce879 100644
--- a/net/honeyd/Makefile
+++ b/net/honeyd/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	honeyd
 PORTVERSION=	1.5c
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	net
 MASTER_SITES=	http://www.honeyd.org/uploads/ \
 		http://www.citi.umich.edu/u/provos/honeyd/
diff --git a/net/ifstated/Makefile b/net/ifstated/Makefile
index c90743491042..eee9ee9d2973 100644
--- a/net/ifstated/Makefile
+++ b/net/ifstated/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	ifstated
 PORTVERSION=	5.1
+PORTREVISION=	1
 PORTEPOCH=	3
 CATEGORIES=	net
 MASTER_SITES=	http://christianserving.org/ports/net/ifstated/
diff --git a/net/ladvd/Makefile b/net/ladvd/Makefile
index b8d04545112c..94330e566b39 100644
--- a/net/ladvd/Makefile
+++ b/net/ladvd/Makefile
@@ -4,6 +4,7 @@
 PORTNAME=	ladvd
 PORTVERSION=	1.1.0
 DISTVERSIONPREFIX=v
+PORTREVISION=	1
 CATEGORIES=	net
 
 MAINTAINER=	sten@blinkenlights.nl
diff --git a/net/netatalk3/Makefile b/net/netatalk3/Makefile
index bc09a952c443..b89398d67d40 100644
--- a/net/netatalk3/Makefile
+++ b/net/netatalk3/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	netatalk
 PORTVERSION=	3.1.10
-PORTREVISION=	2
+PORTREVISION=	3
 PORTEPOCH=	1
 CATEGORIES=	net
 MASTER_SITES=	SF
diff --git a/net/ntop/Makefile b/net/ntop/Makefile
index 9519b50f8ac4..ad71be05b147 100644
--- a/net/ntop/Makefile
+++ b/net/ntop/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	ntop
 PORTVERSION=	5.0.1
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/Stable
 
diff --git a/net/ntp-devel/Makefile b/net/ntp-devel/Makefile
index 05d6a3436232..8db1e5738773 100644
--- a/net/ntp-devel/Makefile
+++ b/net/ntp-devel/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	ntp
 PORTVERSION=	4.3.93
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net ipv6
 MASTER_SITES=	http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ \
 		http://archive.ntp.org/ntp4/ntp-dev/
diff --git a/net/ntp/Makefile b/net/ntp/Makefile
index cb806ae5960d..6de47594e22e 100644
--- a/net/ntp/Makefile
+++ b/net/ntp/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	ntp
 PORTVERSION=	4.2.8p9
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net ipv6
 MASTER_SITES=	http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
 		http://archive.ntp.org/ntp4/ntp-4.2/ \
diff --git a/net/nylon/Makefile b/net/nylon/Makefile
index 1ed6e62d4d3d..6ed551001e9c 100644
--- a/net/nylon/Makefile
+++ b/net/nylon/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	nylon
 PORTVERSION=	1.21
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	net
 MASTER_SITES=	http://monkey.org/~marius/nylon/
 
diff --git a/net/openmpi2/Makefile b/net/openmpi2/Makefile
index 979bbac3d4c7..f89287a5f5f6 100644
--- a/net/openmpi2/Makefile
+++ b/net/openmpi2/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	openmpi
 PORTVERSION=	2.0.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net parallel
 MASTER_SITES=	http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/
 PKGNAMESUFFIX=	2
diff --git a/net/scribe/Makefile b/net/scribe/Makefile
index 87cc45bc9f7c..1004051db023 100644
--- a/net/scribe/Makefile
+++ b/net/scribe/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	scribe
 DISTVERSION=	2.2.2013.04.15
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/net/trickle/Makefile b/net/trickle/Makefile
index afad8207261d..f13148c56341 100644
--- a/net/trickle/Makefile
+++ b/net/trickle/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	trickle
 PORTVERSION=	1.07
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	net
 MASTER_SITES=	http://monkey.org/~marius/trickle/
 
diff --git a/net/turnserver/Makefile b/net/turnserver/Makefile
index 26e1494de0ec..23364c3acbe7 100644
--- a/net/turnserver/Makefile
+++ b/net/turnserver/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	turnserver
 PORTVERSION=	4.5.0.5
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://turnserver.open-sys.org/downloads/v${PORTVERSION}/:prog \
 		http://turnserver.open-sys.org/downloads/extradocs/:xdocs \
diff --git a/security/certificate-transparency/Makefile b/security/certificate-transparency/Makefile
index 63c5a2f2ce13..bb6df9d55ce9 100644
--- a/security/certificate-transparency/Makefile
+++ b/security/certificate-transparency/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	certificate-transparency
 PORTVERSION=	20161015
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	security
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/security/fragroute/Makefile b/security/fragroute/Makefile
index ffb6a612d105..6fdf94fd76ff 100644
--- a/security/fragroute/Makefile
+++ b/security/fragroute/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	fragroute
 PORTVERSION=	1.2
-PORTREVISION=	12
+PORTREVISION=	13
 CATEGORIES=	security net
 MASTER_SITES=	http://monkey.org/~dugsong/fragroute/ \
 		PACKETSTORM/UNIX/security
diff --git a/security/obfsclient/Makefile b/security/obfsclient/Makefile
index 0484eb9d8b32..10331cb783ef 100644
--- a/security/obfsclient/Makefile
+++ b/security/obfsclient/Makefile
@@ -4,7 +4,7 @@
 PORTNAME=	obfsclient
 PORTVERSION=	0.0.2
 DISTVERSIONPREFIX=	v
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	security
 
 MAINTAINER=	ports@FreeBSD.org
diff --git a/security/openiked/Makefile b/security/openiked/Makefile
index ebb52520ab7a..f1ecefb682f9 100644
--- a/security/openiked/Makefile
+++ b/security/openiked/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	openiked
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	security net ipv6
 
 MAINTAINER=	marcel@FreeBSD.org
diff --git a/security/scanssh/Makefile b/security/scanssh/Makefile
index 08c0d523ecc8..b96c3aee3d54 100644
--- a/security/scanssh/Makefile
+++ b/security/scanssh/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	scanssh
 PORTVERSION=	2.1
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	security net
 MASTER_SITES=	http://www.monkey.org/~provos/
 
diff --git a/security/spybye/Makefile b/security/spybye/Makefile
index 6fe131d768e8..adbb630181c3 100644
--- a/security/spybye/Makefile
+++ b/security/spybye/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	spybye
 PORTVERSION=	0.3
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	security www
 MASTER_SITES=	http://www.monkey.org/~provos/
 
diff --git a/security/sslsplit/Makefile b/security/sslsplit/Makefile
index 4bf5ada55702..f7654ac2b0fa 100644
--- a/security/sslsplit/Makefile
+++ b/security/sslsplit/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	sslsplit
 PORTVERSION=	0.5.0
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://mirror.roe.ch/rel/sslsplit/
 
diff --git a/security/stegdetect/Makefile b/security/stegdetect/Makefile
index 403b3b855880..de979d1b0d15 100644
--- a/security/stegdetect/Makefile
+++ b/security/stegdetect/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	stegdetect
 PORTVERSION=	0.6
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	security
 MASTER_SITES=	http://www.sourcefiles.org/Graphics/Tools/Miscellaneous/
 
diff --git a/security/tor-devel/Makefile b/security/tor-devel/Makefile
index d1619003bad7..1bf6852e3d0b 100644
--- a/security/tor-devel/Makefile
+++ b/security/tor-devel/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	tor
 DISTVERSION=	0.3.0.1-alpha
+PORTREVISION=	1
 CATEGORIES=	security net ipv6
 MASTER_SITES=	TOR
 PKGNAMESUFFIX=	-devel
diff --git a/security/tor/Makefile b/security/tor/Makefile
index c5b4fee6eb98..a5d5a934dcf8 100644
--- a/security/tor/Makefile
+++ b/security/tor/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	tor
 PORTVERSION=	0.2.9.8
+PORTREVISION=	1
 CATEGORIES=	security net ipv6
 MASTER_SITES=	TOR
 
diff --git a/sysutils/grok/Makefile b/sysutils/grok/Makefile
index f20b18d0f3c4..f811de0ede52 100644
--- a/sysutils/grok/Makefile
+++ b/sysutils/grok/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	grok
 PORTVERSION=	1.20110708.1
-PORTREVISION=	4
+PORTREVISION=	5
 PORTEPOCH=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	GOOGLE_CODE
diff --git a/sysutils/ori/Makefile b/sysutils/ori/Makefile
index 64c7678be023..a7ef75164db9 100644
--- a/sysutils/ori/Makefile
+++ b/sysutils/ori/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	ori
 PORTVERSION=	0.8.1
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	sysutils net
 MASTER_SITES=	http://cdn.bitbucket.org/orifs/ori/downloads/
 
diff --git a/sysutils/tlsdate/Makefile b/sysutils/tlsdate/Makefile
index e6865bce47bb..b81e7dbc1409 100644
--- a/sysutils/tlsdate/Makefile
+++ b/sysutils/tlsdate/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	tlsdate
 PORTVERSION=	0.0.13
 DISTVERSIONPREFIX=	${PORTNAME}-
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	sunpoet@FreeBSD.org
diff --git a/sysutils/tmate-slave/Makefile b/sysutils/tmate-slave/Makefile
index 0f2080849c79..c05a62168f02 100644
--- a/sysutils/tmate-slave/Makefile
+++ b/sysutils/tmate-slave/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	tmate-slave
 PORTVERSION=	0.0.0.2016051901
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	swills@FreeBSD.org
diff --git a/sysutils/tmate/Makefile b/sysutils/tmate/Makefile
index 5d213eaab9c6..a90614662d9b 100644
--- a/sysutils/tmate/Makefile
+++ b/sysutils/tmate/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	tmate
 PORTVERSION=	2.2.1
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	swills@FreeBSD.org
diff --git a/sysutils/tmux/Makefile b/sysutils/tmux/Makefile
index bae886f4f0ca..66f7b62dae6e 100644
--- a/sysutils/tmux/Makefile
+++ b/sysutils/tmux/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	tmux
 PORTVERSION=	2.3
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
diff --git a/textproc/groonga/Makefile b/textproc/groonga/Makefile
index 8cb3e35fa004..a61f6206519d 100644
--- a/textproc/groonga/Makefile
+++ b/textproc/groonga/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	groonga
 PORTVERSION=	6.0.7
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://packages.groonga.org/source/groonga/
 
diff --git a/www/crawl/Makefile b/www/crawl/Makefile
index 9a743653eef8..facf5280d8d7 100644
--- a/www/crawl/Makefile
+++ b/www/crawl/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	crawl
 PORTVERSION=	0.4
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	www
 MASTER_SITES=	http://www.monkey.org/~provos/
 
diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile
index f1da9dc1484c..ce29124e220f 100644
--- a/www/firefox-esr/Makefile
+++ b/www/firefox-esr/Makefile
@@ -4,6 +4,7 @@
 PORTNAME=	firefox
 DISTVERSION=	45.7.0
 DISTVERSIONSUFFIX=esr.source
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \
diff --git a/www/firefox/Makefile b/www/firefox/Makefile
index 91bcf48f8691..3321fedb8ec6 100644
--- a/www/firefox/Makefile
+++ b/www/firefox/Makefile
@@ -4,6 +4,7 @@
 PORTNAME=	firefox
 DISTVERSION=	51.0.1
 DISTVERSIONSUFFIX=.source
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
diff --git a/www/httpsqs/Makefile b/www/httpsqs/Makefile
index 338e202dce0b..2d972e6fa734 100644
--- a/www/httpsqs/Makefile
+++ b/www/httpsqs/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	httpsqs
 PORTVERSION=	1.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www devel
 MASTER_SITES=	GOOGLE_CODE
 
diff --git a/www/libevhtp/Makefile b/www/libevhtp/Makefile
index 1de42deeb743..05308f3e53b2 100644
--- a/www/libevhtp/Makefile
+++ b/www/libevhtp/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	libevhtp
 PORTVERSION=	1.2.11
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	www
 
 MAINTAINER=	ultima1252@gmail.com
diff --git a/www/libxul/Makefile b/www/libxul/Makefile
index 0dad879f5bca..44ade39b6bbd 100644
--- a/www/libxul/Makefile
+++ b/www/libxul/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	libxul
 DISTVERSION=	45.7.0
+PORTREVISION=	1
 CATEGORIES?=	www devel
 MASTER_SITES=	MOZILLA/firefox/releases/${DISTVERSION}esr/source \
 		MOZILLA/firefox/candidates/${DISTVERSION}esr-candidates/build1/source
diff --git a/www/mohawk/Makefile b/www/mohawk/Makefile
index 3fe6c1eee8d7..2d8eeea6a6e1 100644
--- a/www/mohawk/Makefile
+++ b/www/mohawk/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	mohawk
 PORTVERSION=	2.0.18
+PORTREVISION=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	http://fossil.bsdsx.fr/mohawk/tarball/ \
 		http://fossil.etoilebsd.net/mohawk/tarball/
diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile
index 4a423b350d59..d5dcd8fa12ab 100644
--- a/www/nghttp2/Makefile
+++ b/www/nghttp2/Makefile
@@ -4,6 +4,7 @@
 PORTNAME=	nghttp2
 PORTVERSION=	1.19.0
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	www net
 
 MAINTAINER=	sunpoet@FreeBSD.org
diff --git a/www/pecl-http/Makefile b/www/pecl-http/Makefile
index 3f589a2078b7..5276b183d1be 100644
--- a/www/pecl-http/Makefile
+++ b/www/pecl-http/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	http
 PORTVERSION=	3.0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
diff --git a/www/pecl-http2/Makefile b/www/pecl-http2/Makefile
index 692c5b51a009..169116c56072 100644
--- a/www/pecl-http2/Makefile
+++ b/www/pecl-http2/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	http
 PORTVERSION=	2.5.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
diff --git a/www/seamonkey/Makefile b/www/seamonkey/Makefile
index 43cc59317987..0adc5deef148 100644
--- a/www/seamonkey/Makefile
+++ b/www/seamonkey/Makefile
@@ -4,7 +4,7 @@
 PORTNAME=	seamonkey
 DISTVERSION=	2.46
 MOZILLA_VER=	49 # above + 3
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES?=	www mail news editors irc ipv6
 MASTER_SITES=	MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
 		MOZILLA/${PORTNAME}/candidates/${DISTVERSION}-candidates/build9/source
diff --git a/www/slowcgi/Makefile b/www/slowcgi/Makefile
index 5bdfc4c1fb83..5a8e830a7fa6 100644
--- a/www/slowcgi/Makefile
+++ b/www/slowcgi/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	slowcgi
 PORTVERSION=	6.0.20161031
+PORTREVISION=	1
 CATEGORIES=	www
 
 MAINTAINER=	koue@chaosophia.net
diff --git a/www/spdylay/Makefile b/www/spdylay/Makefile
index 03e2725dcf6f..6a078b179a8f 100644
--- a/www/spdylay/Makefile
+++ b/www/spdylay/Makefile
@@ -3,7 +3,7 @@
 
 PORTNAME=	spdylay
 PORTVERSION=	1.4.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www net
 MASTER_SITES=	https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
 		LOCAL/sunpoet