Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2016 12:52:07 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r418533 - in head/dns/dnscrypt-wrapper: . files
Message-ID:  <201607141252.u6ECq78n004628@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Jul 14 12:52:06 2016
New Revision: 418533
URL: https://svnweb.freebsd.org/changeset/ports/418533

Log:
  - 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)

Added:
  head/dns/dnscrypt-wrapper/files/patch-Makefile   (contents, props changed)
  head/dns/dnscrypt-wrapper/files/patch-argparse_Makefile   (contents, props changed)
Modified:
  head/dns/dnscrypt-wrapper/Makefile
  head/dns/dnscrypt-wrapper/distinfo

Modified: head/dns/dnscrypt-wrapper/Makefile
==============================================================================
--- head/dns/dnscrypt-wrapper/Makefile	Thu Jul 14 12:36:38 2016	(r418532)
+++ head/dns/dnscrypt-wrapper/Makefile	Thu Jul 14 12:52:06 2016	(r418533)
@@ -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/${PORT
 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>

Modified: head/dns/dnscrypt-wrapper/distinfo
==============================================================================
--- head/dns/dnscrypt-wrapper/distinfo	Thu Jul 14 12:36:38 2016	(r418532)
+++ head/dns/dnscrypt-wrapper/distinfo	Thu Jul 14 12:52:06 2016	(r418533)
@@ -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

Added: head/dns/dnscrypt-wrapper/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnscrypt-wrapper/files/patch-Makefile	Thu Jul 14 12:52:06 2016	(r418533)
@@ -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)

Added: head/dns/dnscrypt-wrapper/files/patch-argparse_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/dnscrypt-wrapper/files/patch-argparse_Makefile	Thu Jul 14 12:52:06 2016	(r418533)
@@ -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
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607141252.u6ECq78n004628>