1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Update to 0.2.1

- Properly respect ${CC}
- Cosmetic fixes
- Mark broken on 9.x due to too long username

PR:		210885
Submitted by:	freebsd@toyingwithfate.com (maintainer)
This commit is contained in:
Dmitry Marakasov 2016-07-14 12:52:06 +00:00
parent 614efc784d
commit 1eaad99d72
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418533
4 changed files with 56 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= dnscrypt-wrapper
PORTVERSION= 0.2
PORTVERSION= 0.2.1
DISTVERSIONPREFIX= v
PORTREVISION= 3
CATEGORIES= dns
@ -15,6 +15,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libsodium.so:security/libsodium \
libevent.so:devel/libevent2
BROKEN_FreeBSD_9= does not install (too long username)
USE_GITHUB= yes
GH_ACCOUNT= Cofyc
@ -23,11 +25,10 @@ ETCDNSCRYPTWRAPPER= ${PREFIX}/etc/${PORTNAME}
SUB_LIST+= ETCDNSCRYPTWRAPPER="${ETCDNSCRYPTWRAPPER}" USERS="${USERS}"
USE_RC_SUBR= ${PORTNAME}
USES= gmake
MAKE_ARGS= LDFLAGS="-L${LOCALBASE}/lib" CFLAGS="-I${LOCALBASE}/include" PREFIX="${STAGEDIR}${PREFIX}"
USES= gmake localbase
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
${MKDIR} ${STAGEDIR}${ETCDNSCRYPTWRAPPER}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/*
@${MKDIR} ${STAGEDIR}${ETCDNSCRYPTWRAPPER}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (Cofyc-dnscrypt-wrapper-v0.2_GH0.tar.gz) = 36612c5eb440658a27619ae6e345582e6e3be7a40e9215ea82ac6f65c15de95f
SIZE (Cofyc-dnscrypt-wrapper-v0.2_GH0.tar.gz) = 50925
SHA256 (Cofyc-dnscrypt-wrapper-v0.2.1_GH0.tar.gz) = 28c9936e90fc5602821353ca34c3180a047ae9eff08e0373cfa582e6af0c4e90
SIZE (Cofyc-dnscrypt-wrapper-v0.2.1_GH0.tar.gz) = 52026

View File

@ -0,0 +1,29 @@
--- Makefile.orig 2016-07-08 19:10:05 UTC
+++ Makefile
@@ -7,7 +7,7 @@ all::
### Defaults
-BASIC_CFLAGS = -O2 -std=c99 -Wall -I./argparse
+BASIC_CFLAGS = -std=c99 -Wall -I./argparse
BASIC_LDFLAGS = -lm -lsodium
# Guard against environment variables
@@ -29,13 +29,13 @@ uname_P := $(shell sh -c 'uname -p 2>/de
uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
# CFLAGS and LDFLAGS are for users to override
-CFLAGS = -g -O2 -Wall
-LDFLAGS =
+CFLAGS ?= -g -O2 -Wall
+LDFLAGS ?=
STRIP ?= strip
# We use ALL_* variants
-ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS)
-ALL_LDFLAGS = $(LDFLAGS) $(BASIC_LDFLAGS)
+ALL_CFLAGS = $(BASIC_CFLAGS) $(CFLAGS)
+ALL_LDFLAGS = $(BASIC_LDFLAGS) $(LDFLAGS)
ifdef PREFIX
prefix = $(PREFIX)

View File

@ -0,0 +1,19 @@
--- argparse/Makefile.orig 2016-07-08 19:10:50 UTC
+++ argparse/Makefile
@@ -1,10 +1,13 @@
# Defaults
-BASIC_CFLAGS = -Wall -O3 -g -ggdb -fPIC
+CFLAGS ?= -O3 -g -ggdb
+LDFLAGS ?=
+
+BASIC_CFLAGS = -Wall -fPIC
BASIC_LDFLAGS = -lm
# We use ALL_* variants
-ALL_CFLAGS = $(CFLAGS) $(BASIC_CFLAGS)
-ALL_LDFLAGS = $(LDFLAGS) $(BASIC_LDFLAGS)
+ALL_CFLAGS = $(BASIC_CFLAGS) $(CFLAGS)
+ALL_LDFLAGS = $(BASIC_LDFLAGS) $(LDFLAGS)
LIBNAME=libargparse