net/3proxy: Minor cleanup in Makefile

Use official/correct repo
Reduce patching
Don't override LDFLAGS from Ports framework

PR:		256960
Approved by:	port maintainer timeout (2+ months), arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D32217
This commit is contained in:
Daniel Engberg 2021-09-29 09:33:22 +02:00
parent 2289b35ae2
commit d0a322bbd6
3 changed files with 10 additions and 10 deletions

View file

@ -12,9 +12,8 @@ LICENSE_COMB= dual
USES= cpe
USE_RC_SUBR= 3proxy
USE_GITHUB= yes
GH_ACCOUNT= z3APA3A
USE_RC_SUBR= 3proxy
MAKEFILE= Makefile.FreeBSD
@ -28,7 +27,6 @@ OPTIONS_DEFINE= DOCS
3PROXY_LOGDIR= /var/log/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|%%3PROXY_LOGDIR%%|${3PROXY_LOGDIR}|' ${WRKSRC}/cfg/3proxy.cfg.sample
@${REINPLACE_CMD} -E -e 's| proxy( ?\(8\))| httppr\1|' ${WRKSRC}/man/*
@${REINPLACE_CMD} -E -e 's|([^P] "?)proxy|\1httppr|' ${WRKSRC}/man/proxy.8

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1625251720
SHA256 (z3APA3A-3proxy-0.9.4_GH0.tar.gz) = b497f74d6cc7ee58ff824457427acc02c6f7a102e483816fbb1b2494942ef983
SIZE (z3APA3A-3proxy-0.9.4_GH0.tar.gz) = 610340
TIMESTAMP = 1625343847
SHA256 (3proxy-3proxy-0.9.4_GH0.tar.gz) = b497f74d6cc7ee58ff824457427acc02c6f7a102e483816fbb1b2494942ef983
SIZE (3proxy-3proxy-0.9.4_GH0.tar.gz) = 610340

View file

@ -1,15 +1,17 @@
--- Makefile.FreeBSD.orig 2021-07-01 16:59:57 UTC
+++ Makefile.FreeBSD
@@ -10,10 +10,10 @@
@@ -10,11 +10,11 @@
BUILDDIR = ../bin/
CC ?= gcc
-CFLAGS = -c -O -fno-strict-aliasing -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
+CFLAGS = -c %%CFLAGS%% -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
+CFLAGS += -c -DNOODBC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o
LN ?= ${CC}
-LDFLAGS = -pthread -O -fno-strict-aliasing
+LDFLAGS = -pthread
# -lpthreads may be reuqired on some platforms instead of -pthreads
-# -lpthreads may be reuqired on some platforms instead of -pthreads
+LDFLAGS += -pthread
+# -lpthreads may be required on some platforms instead of -pthreads
# -ldl or -lld may be required for some platforms
DCFLAGS = -fPIC
DLFLAGS = -shared