Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2012 02:55:56 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172716: emulators/tpm-emulator: Update to version 0.7.4
Message-ID:  <20121016025556.04145bceab3b7f3d9b7086d6@yahoo.com>
Resent-Message-ID: <201210151810.q9FIA01V043483@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172716
>Category:       ports
>Synopsis:       emulators/tpm-emulator: Update to version 0.7.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 18:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 0.7.4

Remoe file:
files/patch-mtm-mtm_structures.h
files/patch-tpm-tpm_ticks.c
files/patch-tpmd_dev-CMakeLists.txt
files/patch-tpmd_dev-openbsd-Makefile
files/patch-tpmd_dev-openbsd-tpmd_dev.c
files/patch-tpmd_dev-openbsd-tpmd_dev.h

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/emulators/tpm-emulator/Makefile emulators/tpm-emulator/Makefile
--- /usr/ports/emulators/tpm-emulator/Makefile	2012-08-16 04:26:13.000000000 +0900
+++ emulators/tpm-emulator/Makefile	2012-10-12 20:40:21.000000000 +0900
@@ -1,55 +1,45 @@
-# New ports collection makefile for:	tpm-emulator
-# Date created:				18 Sep 2007
-# Whom:					Sebastian Schuetz <sschuetz@fhm.edu>
-#
+# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
 # $FreeBSD: ports/emulators/tpm-emulator/Makefile,v 1.10 2012/08/15 19:26:13 tabthorpe Exp $
-#
 
-PORTNAME=		tpm-emulator
-PORTVERSION=		0.7.1
-PORTREVISION=		1
-CATEGORIES=		emulators security
-MASTER_SITES=		BERLIOS/${PORTNAME}
-DISTNAME=		${PORTNAME:S/-/_/}-${PORTVERSION}
+PORTNAME=	tpm-emulator
+PORTVERSION=	0.7.4
+CATEGORIES=	emulators security
+#MASTER_SITES=	BERLIOS
+MASTER_SITES=	SF/${PORTNAME}.berlios
+DISTNAME=	${PORTNAME:S,-,_,}-${PORTVERSION}
 
-MAINTAINER=		ports@FreeBSD.org
-COMMENT=		Trusted Platform Module (TPM) emulator
+MAINTAINER=	ports@FreeBSD.org
+COMMENT=	Trusted Platform Module (TPM) emulator
 
-LIB_DEPENDS=		gmp.10:${PORTSDIR}/math/gmp
+LICENSE=	GPLv2
 
-USE_CMAKE=		YES
-USE_RC_SUBR=		tpmd
-USE_LDCONFIG=		YES
-MAKE_JOBS_SAFE=		YES
+LIB_DEPENDS=	gmp:${PORTSDIR}/math/gmp
 
-CONFLICTS=		trousers-tddl-[0-9d]*
+CONFLICTS=	trousers-tddl-[0-9d]*
 
-WANTLIB=		c
-CMAKE_VERBOSE=		YES
-CMAKE_SOURCE_PATH=	${WRKSRC}
-BUILD_WRKSRC=		${CONFIGURE_WRKSRC}
-INSTALL_WRKSRC=		${CONFIGURE_WRKSRC}
-CONFIGURE_WRKSRC=	${CMAKE_SOURCE_PATH}/build
+USE_RC_SUBR=	tpmd
 
-CMAKE_ENV=		PREFIX=${PREFIX} ${CONFIGURE_ENV}
-CMAKE_ARGS=		-DCMAKE_INCLUDE_PATH="${LOCALBASE}/include"
-LDFLAGS+=		-L${LOCALBASE}/lib
+USE_CMAKE=	yes
+CMAKE_OUTSOURCE=yes
+CMAKE_ENV=	PREFIX="${PREFIX}"
+CMAKE_ARGS=	-DTPM_INCLUDE_DIRS:STRING="${LOCALBASE}/include" \
+		-DTPM_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
+USE_LDCONFIG=	yes
+MAKE_JOBS_SAFE=	yes
 
-SUB_LIST=		USERS=${USERS} GROUPS=${GROUPS}
+USERS=		_tss
+GROUPS=		_tss
 
-USERS=			_tss
-GROUPS=			_tss
+SUB_LIST=	USERS="${USERS}" GROUPS="${GROUPS}"
 
-LICENSE=		GPLv2
-LICENSE_FILE=		${WRKSRC}/README
-
-WRKSRC=			${WRKDIR}/${DISTNAME}
+.include <bsd.port.pre.mk>
 
-post-extract:
-	@${MKDIR} ${WRKSRC}/build
+.if ${ARCH} == "powerpc"
+BROKEN=		Does not compile on powerpc
+.endif
 
 post-install:
-	@${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 ${PREFIX}/var/lib/tpm
+	@${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 ${PREFIX}/var/db/tpm
 	@${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700          /var/run/tpm
 
 add-plist-post:
@@ -57,10 +47,4 @@
 	@${ECHO_CMD} "@unexec ${RMDIR} var/run/tpm 2>/dev/null || true"			>> ${TMPPLIST}
 	@${ECHO_CMD} "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 var/run/tpm"	>> ${TMPPLIST}
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "powerpc"
-BROKEN=		Does not compile on powerpc
-.endif
-
 .include <bsd.port.post.mk>
diff -urN /usr/ports/emulators/tpm-emulator/distinfo emulators/tpm-emulator/distinfo
--- /usr/ports/emulators/tpm-emulator/distinfo	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/distinfo	2012-10-10 00:48:17.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (tpm_emulator-0.7.1.tar.gz) = 7c10a753206bf0f32a767dc69039a866bd8d3eb8a4834f5e722c7510a9f54c24
-SIZE (tpm_emulator-0.7.1.tar.gz) = 207497
+SHA256 (tpm_emulator-0.7.4.tar.gz) = 4e48ea0d83dd9441cc1af04ab18cd6c961b9fa54d5cbf2c2feee038988dea459
+SIZE (tpm_emulator-0.7.4.tar.gz) = 214145
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-CMakeLists.txt emulators/tpm-emulator/files/patch-CMakeLists.txt
--- /usr/ports/emulators/tpm-emulator/files/patch-CMakeLists.txt	2010-12-15 07:49:47.000000000 +0900
+++ emulators/tpm-emulator/files/patch-CMakeLists.txt	2012-10-10 00:59:21.000000000 +0900
@@ -1,24 +1,30 @@
---- CMakeLists.txt.orig	2010-07-06 06:21:20.000000000 +0900
-+++ CMakeLists.txt	2010-12-15 07:33:54.234887143 +0900
-@@ -32,11 +32,11 @@
+--- CMakeLists.txt.orig	2011-12-21 03:30:06.000000000 +0900
++++ CMakeLists.txt	2012-10-10 00:58:26.000000000 +0900
+@@ -34,21 +34,21 @@
+ set(TPM_STORAGE_NAME "/private/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}")
+ set(TPM_DEVICE_NAME "/dev/tpm")
  else()
- set(TPM_LOG_FILE "/var/log/tpmd.log")
- set(TPM_SOCKET_NAME "/var/run/tpm/tpmd_socket:0")
+-set(TPM_LOG_FILE "/var/log/tpmd.log")
+-set(TPM_SOCKET_NAME "/var/run/tpm/tpmd_socket:0")
 -set(TPM_STORAGE_NAME "/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}")
-+set(TPM_STORAGE_NAME "$ENV{PREFIX}/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}")
++set(TPM_LOG_FILE "$ENV{PREFIX}/var/log/tpmd.log")
++set(TPM_SOCKET_NAME "$ENV{PREFIX}/var/run/tpm/tpmd_socket:0")
++set(TPM_STORAGE_NAME "$ENV{PREFIX}/var/db/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}")
  set(TPM_DEVICE_NAME "/dev/tpm")
  endif()
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
--add_definitions(-Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings)
-+add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings)
+-add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings)
++#add_definitions(-Wall -Werror -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings)
+ if("${CMAKE_SYSTEM}" MATCHES "Linux")
+     add_definitions(-Wextra)
+ endif()
+ if(USE_OPENSSL)
+     add_definitions(-DUSE_OPENSSL)
+ endif()
+-include_directories("/opt/local/include")
+-link_directories("/opt/local/lib")
++include_directories(${TPM_INCLUDE_DIRS})
++link_directories(${TPM_LIBRARY_DIRS})
  
  # configure CPack
  set(CPACK_PACKAGE_VERSION_MAJOR ${${PROJECT_NAME}_VERSION_MAJOR})
-@@ -51,6 +51,7 @@
- # include root directories
- include_directories(${CMAKE_SOURCE_DIR})
- include_directories(${CMAKE_BINARY_DIR})
-+include_directories(${CMAKE_INCLUDE_PATH})
- 
- # add internal libraries
- add_subdirectory(tpm)
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-mtm-mtm_structures.h emulators/tpm-emulator/files/patch-mtm-mtm_structures.h
--- /usr/ports/emulators/tpm-emulator/files/patch-mtm-mtm_structures.h	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-mtm-mtm_structures.h	1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- mtm/mtm_structures.h.orig	2010-07-06 06:21:20.000000000 +0900
-+++ mtm/mtm_structures.h	2010-10-25 02:56:43.619561686 +0900
-@@ -228,8 +228,6 @@
-     MTM_PERMANENT_DATA data;
-   } permanent;
-   struct {
--  } stclear;
--  struct {
-     MTM_STANY_FLAGS flags;
-   } stany;
- } MTM_DATA;
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tddl-CMakeLists.txt emulators/tpm-emulator/files/patch-tddl-CMakeLists.txt
--- /usr/ports/emulators/tpm-emulator/files/patch-tddl-CMakeLists.txt	2010-12-13 01:20:09.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tddl-CMakeLists.txt	2012-10-10 01:01:29.000000000 +0900
@@ -1,15 +1,13 @@
---- tddl/CMakeLists.txt.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tddl/CMakeLists.txt	2010-12-11 04:00:11.868033375 +0900
-@@ -5,18 +5,21 @@
- 
- set(tddl_SRCS "tddl.c" "tddl.h")
+--- tddl/CMakeLists.txt.orig	2011-12-21 03:30:06.000000000 +0900
++++ tddl/CMakeLists.txt	2012-10-10 01:01:00.000000000 +0900
+@@ -7,13 +7,13 @@
  add_library(tddl SHARED ${tddl_SRCS})
-+add_library(tddlStatic STATIC ${tddl_SRCS})
+ add_library(tddl_static STATIC ${tddl_SRCS})
  if(UNIX)
 -  set_target_properties(tddl PROPERTIES SOVERSION "1.2"
 +  set_target_properties(tddl PROPERTIES SOVERSION "1"
      VERSION "1.2.${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}")
-+  set_target_properties(tddlStatic PROPERTIES OUTPUT_NAME tddl)
+   set_target_properties(tddl_static PROPERTIES OUTPUT_NAME tddl)
  elseif(WIN32)
    set_target_properties(tddl PROPERTIES OUTPUT_NAME ifxtpm)
    set_target_properties(tddl PROPERTIES PREFIX "")
@@ -17,11 +15,4 @@
 +endif(UNIX)
  
  install(TARGETS tddl DESTINATION lib)
-+install(TARGETS tddlStatic DESTINATION lib)
- install(FILES "tddl.h" DESTINATION include)
- 
- include_directories(${CMAKE_CURRENT_SOURCE_DIR})
- add_executable(test_tddl test_tddl.c)
--target_link_libraries(test_tddl tddl)
-+target_link_libraries(test_tddl tddlStatic)
- 
+ install(TARGETS tddl_static DESTINATION lib)
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tpm-tpm_ticks.c emulators/tpm-emulator/files/patch-tpm-tpm_ticks.c
--- /usr/ports/emulators/tpm-emulator/files/patch-tpm-tpm_ticks.c	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tpm-tpm_ticks.c	1970-01-01 09:00:00.000000000 +0900
@@ -1,40 +0,0 @@
---- tpm/tpm_ticks.c.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tpm/tpm_ticks.c	2010-10-25 02:56:43.622559766 +0900
-@@ -42,7 +42,7 @@
- {
-   TPM_RESULT res;
-   TPM_KEY_DATA *key;
--  BYTE *info, *ptr;
-+  BYTE *info_buffer, *ptr;
-   UINT32 info_length, len;
-   info("TPM_TickStampBlob()");
-   /* get key */
-@@ -66,21 +66,21 @@
-   if (*sig == NULL) return TPM_FAIL; 
-   /* setup TPM_SIGN_INFO structure */
-   info_length = 30 + sizeof(TPM_DIGEST) + sizeof_TPM_CURRENT_TICKS(currentTicks);
--  info = tpm_malloc(info_length);
--  if (info == NULL) {
-+  info_buffer = tpm_malloc(info_length);
-+  if (info_buffer == NULL) {
-     tpm_free(*sig);
-     return TPM_FAIL;
-   }
--  memcpy(&info[0], "\x00\x05TSTP", 6);
--  memcpy(&info[6], antiReplay->nonce, 20);
--  ptr = &info[26]; len = info_length - 26;
-+  memcpy(&info_buffer[0], "\x00\x05TSTP", 6);
-+  memcpy(&info_buffer[6], antiReplay->nonce, 20);
-+  ptr = &info_buffer[26]; len = info_length - 26;
-   tpm_marshal_UINT32(&ptr, &len, info_length - 30);
-   memcpy(ptr, digestToStamp->digest, sizeof(TPM_DIGEST));
-   ptr += sizeof(TPM_DIGEST); len -= sizeof(TPM_DIGEST);
-   if (tpm_marshal_TPM_CURRENT_TICKS(&ptr, &len, currentTicks)
--      || tpm_rsa_sign(&key->key, RSA_SSA_PKCS1_SHA1, info, info_length, *sig)) {
-+      || tpm_rsa_sign(&key->key, RSA_SSA_PKCS1_SHA1, info_buffer, info_length, *sig)) {
-     tpm_free(*sig);
--    tpm_free(info);
-+    tpm_free(info_buffer);
-     return TPM_FAIL;
-   }
-   return TPM_SUCCESS;
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tpmd-unix-CMakeLists.txt emulators/tpm-emulator/files/patch-tpmd-unix-CMakeLists.txt
--- /usr/ports/emulators/tpm-emulator/files/patch-tpmd-unix-CMakeLists.txt	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tpmd-unix-CMakeLists.txt	2012-10-10 01:03:59.000000000 +0900
@@ -1,12 +1,12 @@
---- tpmd/unix/CMakeLists.txt.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tpmd/unix/CMakeLists.txt	2010-10-25 02:56:43.633558246 +0900
+--- tpmd/unix/CMakeLists.txt.orig	2011-12-21 03:30:06.000000000 +0900
++++ tpmd/unix/CMakeLists.txt	2012-10-10 01:03:34.000000000 +0900
 @@ -10,8 +10,8 @@
  if(MTM_EMULATOR)
  add_definitions(-DMTM_EMULATOR)
- target_link_libraries(tpmd mtm tpm crypto)
+ target_link_libraries(tpmd mtm tpm tpm_crypto)
 -else()
 +else(MTM_EMULATOR)
- target_link_libraries(tpmd tpm crypto)
+ target_link_libraries(tpmd tpm tpm_crypto)
 -endif()
 +endif(MTM_EMULATOR)
  install(TARGETS tpmd RUNTIME DESTINATION bin)
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-CMakeLists.txt emulators/tpm-emulator/files/patch-tpmd_dev-CMakeLists.txt
--- /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-CMakeLists.txt	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tpmd_dev-CMakeLists.txt	1970-01-01 09:00:00.000000000 +0900
@@ -1,29 +0,0 @@
---- tpmd_dev/CMakeLists.txt.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tpmd_dev/CMakeLists.txt	2010-10-25 02:56:43.626557976 +0900
-@@ -17,8 +17,8 @@
- set(tpmd_dev_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/openbsd")
- set(tpmd_dev_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/openbsd")
- set(tpmd_dev_OBJ "${tpmd_dev_BINARY_DIR}/tpmd_dev.o")
--set(tpmd_dev_BUILD_CMD make -C ${tpmd_dev_BINARY_DIR})
--set(tpmd_dev_INSTALL_CMD make -C ${tpmd_dev_BINARY_DIR} install)
-+set(tpmd_dev_BUILD_CMD gmake -C ${tpmd_dev_BINARY_DIR})
-+set(tpmd_dev_INSTALL_CMD gmake -C ${tpmd_dev_BINARY_DIR} install)
- 
- elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
- 
-@@ -28,7 +28,7 @@
- set(tpmd_dev_BUILD_CMD make -C ${tpmd_dev_BINARY_DIR})
- set(tpmd_dev_INSTALL_CMD make -C ${tpmd_dev_BINARY_DIR} install)
- 
--endif()
-+endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
- 
- # compile module
- if(tpmd_dev_OBJ)
-@@ -45,5 +45,5 @@
- 
- install(CODE "EXECUTE_PROCESS(COMMAND ${tpmd_dev_INSTALL_CMD})")
- 
--endif()
-+endif(tpmd_dev_OBJ)
- 
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-Makefile emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-Makefile
--- /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-Makefile	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-Makefile	1970-01-01 09:00:00.000000000 +0900
@@ -1,28 +0,0 @@
---- tpmd_dev/openbsd/Makefile.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tpmd_dev/openbsd/Makefile	2010-10-25 02:56:43.628559140 +0900
-@@ -6,14 +6,15 @@
- 
- CFLAGS= -D_KERNEL -I/usr/src/sys
- SRC=	tpmd_dev.c
-+OBJ=	tpmd_dev.obj
- MODULE= tpmd_dev.o
- 
- all:
--	cc -c $(SRC) $(CFLAGS)
--	ld -r -o $(MODULE) $(SRC:.c=.o)
-+	cc -o $(OBJ) -c $(SRC) $(CFLAGS)
-+	ld -r -o $(MODULE) $(OBJ)
- 
- clean:
--	rm -rf $(SRC:.c=.o)
-+	rm -rf $(OBJ)
- 	rm -f $(MODULE)
- 
- load:	all mknod
-@@ -27,3 +28,6 @@
- 
- rmnod:
- 	rm /dev/tpm
-+
-+install:
-+
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.c emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.c
--- /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.c	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.c	1970-01-01 09:00:00.000000000 +0900
@@ -1,29 +0,0 @@
---- tpmd_dev/openbsd/tpmd_dev.c.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tpmd_dev/openbsd/tpmd_dev.c	2010-10-25 02:56:43.630557372 +0900
-@@ -32,7 +32,7 @@
- #include <sys/proc.h>
- #include <machine/intr.h>
- 
--#include "tpm_dev.h"
-+#include "tpmd_dev.h"
- 
- 
- int	tpmopen __P((dev_t dev, int oflags, int devtype, struct proc *p));
-@@ -57,7 +57,7 @@
- cdev_decl(tpm);
- 
- /* define our cdev struct containing the functions */
--static struct cdevsw cdev_tpm = cdev_tpm_init(1,tpm);
-+static struct cdevsw cdev_tpm = cdev_tpmd_init(1,tpm);
- 
- /* fill in the lkm_dev structure */
- MOD_DEV("tpm",LM_DT_CHAR,-1,&cdev_tpm);
-@@ -213,7 +213,7 @@
-  	 * sometime returns EINTR
- 	 */
- 	tpmd_sock->so_rcv.sb_flags |= SB_NOINTR;
--	error = soreceive(tpmd_sock,NULL,uio,NULL,NULL,NULL);
-+	error = soreceive(tpmd_sock,NULL,uio,NULL,NULL,NULL,0);
- 
- 	if (error) {
- 		debug("soreceive() failed %i",error);
diff -urN /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.h emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.h
--- /usr/ports/emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.h	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/files/patch-tpmd_dev-openbsd-tpmd_dev.h	1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- tpmd_dev/openbsd/tpmd_dev.h.orig	2010-07-06 06:21:20.000000000 +0900
-+++ tpmd_dev/openbsd/tpmd_dev.h	2010-10-25 02:56:43.632557559 +0900
-@@ -20,7 +20,7 @@
- 
- #include "config.h"
- 
--#define cdev_tpm_init(c,n) { \
-+#define cdev_tpmd_init(c,n) { \
-     dev_init(c,n,open),dev_init(c,n,close),dev_init(c,n,read), \
-     dev_init(c,n,write), dev_init(c,n,ioctl),(dev_type_stop((*))) lkmenodev, \
-     0,(dev_type_poll((*))) lkmenodev,(dev_type_mmap((*))) lkmenodev }
diff -urN /usr/ports/emulators/tpm-emulator/pkg-descr emulators/tpm-emulator/pkg-descr
--- /usr/ports/emulators/tpm-emulator/pkg-descr	2010-11-07 21:08:52.000000000 +0900
+++ emulators/tpm-emulator/pkg-descr	2012-10-10 01:12:15.000000000 +0900
@@ -1,4 +1,6 @@
 The project aims to create a fully working Trusted Platform Module (TPM)
-emulator follwing the specifications of the Trusted Computing Group.
-The port provides a driver library libtddl which can be linked against programs
+emulator follwing the specifications of the Trusted Computing Group. The
+port provides a driver library libtddl which can be linked against programs
 providing a Trusted Software Stack to redirect TPM calls to the emulator.
+
+WWW: http://tpm-emulator.berlios.de/
diff -urN /usr/ports/emulators/tpm-emulator/pkg-plist emulators/tpm-emulator/pkg-plist
--- /usr/ports/emulators/tpm-emulator/pkg-plist	2010-12-15 07:49:47.000000000 +0900
+++ emulators/tpm-emulator/pkg-plist	2012-10-12 20:34:13.000000000 +0900
@@ -4,4 +4,5 @@
 lib/libtddl.so
 lib/libtddl.so.1
 lib/libtddl.so.1.2.0.7
-@dirrmtry var/lib/tpm
+@dirrmtry var/db/tpm
+@dirrmtry var/db
>Release-Note:
>Audit-Trail:
>Unformatted:



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