From 2d76d7517b67f09a5291124c0ce6f8b5effaa7a6 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Tue, 14 Dec 2010 16:26:27 +0000 Subject: Fix rc script with _tss USER/GROUP. [NOTE] In this time, I don't bump PORTREVISION. Because I'll re-setup working directory under $PREFIX (/var/lib/tpm -> $PREFIX/var/lib/tpm). So I'll finish these working, and bump PORTREVISION. --- emulators/tpm-emulator/Makefile | 5 +++++ emulators/tpm-emulator/files/tpmd.in | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/emulators/tpm-emulator/Makefile b/emulators/tpm-emulator/Makefile index 59d58bd6c55c..56ffc4161823 100644 --- a/emulators/tpm-emulator/Makefile +++ b/emulators/tpm-emulator/Makefile @@ -34,6 +34,11 @@ CONFIGURE_WRKSRC= ${CMAKE_SOURCE_PATH}/build CMAKE_ARGS+= -DCMAKE_INCLUDE_PATH="${LOCALBASE}/include" \ -DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib" +SUB_LIST= USERS=${USERS} GROUPS=${GROUPS} + +USERS= _tss +GROUPS= _tss + LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/README diff --git a/emulators/tpm-emulator/files/tpmd.in b/emulators/tpm-emulator/files/tpmd.in index f497e38757b6..0af8eaeac3e6 100644 --- a/emulators/tpm-emulator/files/tpmd.in +++ b/emulators/tpm-emulator/files/tpmd.in @@ -22,8 +22,8 @@ command="%%PREFIX%%/bin/${name}" load_rc_config $name tpmd_enable=${tpmd_enable-"NO"} -tpmd_user=${tpmd_user-"_tss"} -tpmd_group=${tpmd_group-"_tss"} +tpmd_user=${tpmd_user-"%%USERS%%"} +tpmd_group=${tpmd_group-"%%GROUPS%%"} command_args="-o ${tpmd_user} -g ${tpmd_group}" unset tpmd_user tpmd_group -- cgit v1.2.3