Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 2013 07:59:03 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335654 - in head/security/trousers: . files
Message-ID:  <201312050759.rB57x35v015299@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Thu Dec  5 07:59:03 2013
New Revision: 335654
URL: http://svnweb.freebsd.org/changeset/ports/335654

Log:
  Fix iconv and pthread dependency.

Modified:
  head/security/trousers/Makefile
  head/security/trousers/files/extra-patch-src-tcsd-Makefile.am
  head/security/trousers/files/patch-src-trspi-Makefile.am
  head/security/trousers/files/patch-src-tspi-Makefile.am

Modified: head/security/trousers/Makefile
==============================================================================
--- head/security/trousers/Makefile	Thu Dec  5 06:28:41 2013	(r335653)
+++ head/security/trousers/Makefile	Thu Dec  5 07:59:03 2013	(r335654)
@@ -3,7 +3,7 @@
 
 PORTNAME=	trousers
 PORTVERSION=	0.3.10
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
 
@@ -20,11 +20,12 @@ USE_OPENSSL=	YES
 USE_LDCONFIG=	YES
 USE_AUTOTOOLS=	autoconf automake libtool
 USE_RC_SUBR=	tcsd
-WRKSRC=		${WRKDIR}/${DISTNAME}
 GNU_CONFIGURE=	YES
 CONFIGURE_ARGS=	--with-gui=none --enable-static \
 		--localstatedir=${PREFIX}/var \
 		--with-tssuser=${USERS} --with-tssgroup=${GROUPS}
+MAKE_ENV=	PTHREAD_LIBS=${PTHREAD_LIBS} ICONV_LIB=${ICONV_LIB} \
+		ICONV_PREFIX=${ICONV_PREFIX}
 SUB_FILES=	pkg-message
 SUB_LIST=	USERS=${USERS} GROUPS=${GROUPS}
 USERS=		_tss
@@ -51,10 +52,6 @@ CONFLICTS+=	tpm-emulator-[0-9]*
 PLIST_SUB+=	TDDL=""
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e 's/-liconv$$/${ICONV_LIB}/' \
-		${WRKSRC}/src/tspi/Makefile.am
-
 run-autotools:	run-autotools-autoreconf
 
 run-autotools-autoreconf:

Modified: head/security/trousers/files/extra-patch-src-tcsd-Makefile.am
==============================================================================
--- head/security/trousers/files/extra-patch-src-tcsd-Makefile.am	Thu Dec  5 06:28:41 2013	(r335653)
+++ head/security/trousers/files/extra-patch-src-tcsd-Makefile.am	Thu Dec  5 07:59:03 2013	(r335654)
@@ -5,7 +5,7 @@
  
  tcsd_CFLAGS=-DAPPID=\"TCSD\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\" -I${top_srcdir}/src/include -fPIE -DPIE
 -tcsd_LDADD=${top_builddir}/src/tcs/libtcs.a ${top_builddir}/src/tddl/libtddl.a -lpthread @CRYPTOLIB@
-+tcsd_LDADD=${LOCALBASE}/lib/libtcs.a ${LOCALBASE}/lib/libtddl.a ${PTHREAD_LIB} @CRYPTOLIB@
++tcsd_LDADD=${LOCALBASE}/lib/libtcs.a ${LOCALBASE}/lib/libtddl.a ${PTHREAD_LIBS} @CRYPTOLIB@
  tcsd_LDFLAGS=-pie -Wl,-z,relro -Wl,-z,now
  
  tcsd_SOURCES=svrside.c tcsd_conf.c tcsd_threads.c platform.c

Modified: head/security/trousers/files/patch-src-trspi-Makefile.am
==============================================================================
--- head/security/trousers/files/patch-src-trspi-Makefile.am	Thu Dec  5 06:28:41 2013	(r335653)
+++ head/security/trousers/files/patch-src-trspi-Makefile.am	Thu Dec  5 07:59:03 2013	(r335654)
@@ -1,12 +1,12 @@
---- src/trspi/Makefile.am.orig	2010-03-12 05:41:54.000000000 +0900
-+++ src/trspi/Makefile.am	2010-10-24 21:04:04.839558584 +0900
+--- src/trspi/Makefile.am.orig	2012-09-20 02:24:48.000000000 +0900
++++ src/trspi/Makefile.am	2013-12-05 15:12:35.000000000 +0900
 @@ -1,7 +1,8 @@
  noinst_LTLIBRARIES=libtrousers.la
  
  libtrousers_la_SOURCES=trousers.c crypto/@CRYPTO_PACKAGE@/hash.c
 -libtrousers_la_CFLAGS=-DAPPID=\"TSPI\" -I${top_srcdir}/src/include
 +libtrousers_la_CFLAGS=-DAPPID=\"TSPI\" -I${top_srcdir}/src/include \
-+	-I${LOCALBASE}/include -I@prefix@/include
++	-I${ICONV_PREFIX}/include
  
  if TSS_BUILD_ASYM_CRYPTO
  libtrousers_la_SOURCES+=crypto/@CRYPTO_PACKAGE@/rsa.c

Modified: head/security/trousers/files/patch-src-tspi-Makefile.am
==============================================================================
--- head/security/trousers/files/patch-src-tspi-Makefile.am	Thu Dec  5 06:28:41 2013	(r335653)
+++ head/security/trousers/files/patch-src-tspi-Makefile.am	Thu Dec  5 07:59:03 2013	(r335654)
@@ -1,11 +1,11 @@
 --- src/tspi/Makefile.am.orig	2012-09-20 02:24:48.000000000 +0900
-+++ src/tspi/Makefile.am	2013-07-27 04:01:03.000000000 +0900
++++ src/tspi/Makefile.am	2013-12-05 11:10:14.000000000 +0900
 @@ -17,7 +17,7 @@
  # 5. If any interfaces have been added since the last public release, then increment age.
  # 6. If any interfaces have been removed since the last public release, then set age to 0.
  
 -libtspi_la_LDFLAGS=-version-info 3:0:2 -lpthread @CRYPTOLIB@
-+libtspi_la_LDFLAGS=-version-info 3:0:2 ${PTHREAD_LIB} @CRYPTOLIB@ -L@prefix@/lib -liconv
++libtspi_la_LDFLAGS=-version-info 3:0:2 ${PTHREAD_LIBS} @CRYPTOLIB@ -L${ICONV_PREFIX}/lib ${ICONV_LIB}
  
  libtspi_la_CFLAGS=-I$(top_srcdir)/src/include -DAPPID=\"TSPI\" -DVAR_PREFIX=\"@localstatedir@\" -DETC_PREFIX=\"@sysconfdir@\"
  



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