svn commit: r549632 - in head/net/sniproxy: . files

Stefan Eßer se at FreeBSD.org
Tue Sep 22 20:36:47 UTC 2020


Author: se
Date: Tue Sep 22 20:36:45 2020
New Revision: 549632
URL: https://svnweb.freebsd.org/changeset/ports/549632

Log:
  Fix build with -fno-common and remove the now osbolete -fcommon option.
  
  While here fix 2 white-space issues reported by portlint.
  
  Approved by:   krion (maintainer)

Added:
  head/net/sniproxy/files/patch-src_http.h   (contents, props changed)
  head/net/sniproxy/files/patch-src_tls.h   (contents, props changed)
Modified:
  head/net/sniproxy/Makefile
  head/net/sniproxy/pkg-descr

Modified: head/net/sniproxy/Makefile
==============================================================================
--- head/net/sniproxy/Makefile	Tue Sep 22 20:13:46 2020	(r549631)
+++ head/net/sniproxy/Makefile	Tue Sep 22 20:36:45 2020	(r549632)
@@ -2,7 +2,7 @@
 
 PORTNAME=	sniproxy
 DISTVERSION=	0.6.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 
 MAINTAINER=	krion at FreeBSD.org
@@ -12,7 +12,7 @@ LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libev.so:devel/libev \
-  		libpcre.so:devel/pcre \
+		libpcre.so:devel/pcre \
 		libudns.so:dns/udns
 
 USES=		autoreconf:build gettext pkgconfig
@@ -24,7 +24,6 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	dlundquist
 
 GNU_CONFIGURE=	yes
-CFLAGS+=	-fcommon
 USE_LDCONFIG=	yes
 
 PLIST_FILES=	man/man5/sniproxy.conf.5.gz \

Added: head/net/sniproxy/files/patch-src_http.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/sniproxy/files/patch-src_http.h	Tue Sep 22 20:36:45 2020	(r549632)
@@ -0,0 +1,10 @@
+--- src/http.h.orig	2018-12-06 04:14:58 UTC
++++ src/http.h
+@@ -29,6 +29,6 @@
+ #include <stdio.h>
+ #include "protocol.h"
+ 
+-const struct Protocol *const http_protocol;
++extern const struct Protocol *const http_protocol;
+ 
+ #endif

Added: head/net/sniproxy/files/patch-src_tls.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/sniproxy/files/patch-src_tls.h	Tue Sep 22 20:36:45 2020	(r549632)
@@ -0,0 +1,10 @@
+--- src/tls.h.orig	2018-12-06 04:14:58 UTC
++++ src/tls.h
+@@ -28,6 +28,6 @@
+ 
+ #include "protocol.h"
+ 
+-const struct Protocol *const tls_protocol;
++extern const struct Protocol *const tls_protocol;
+ 
+ #endif

Modified: head/net/sniproxy/pkg-descr
==============================================================================
--- head/net/sniproxy/pkg-descr	Tue Sep 22 20:13:46 2020	(r549631)
+++ head/net/sniproxy/pkg-descr	Tue Sep 22 20:36:45 2020	(r549632)
@@ -17,5 +17,5 @@ Supports multiple listening sockets per instance.
 
 Supports HAProxy proxy protocol to propagate original source address
 to backend servers.
- 
+
 WWW: https://github.com/dlundquist/sniproxy


More information about the svn-ports-all mailing list