diff options
-rw-r--r-- | emulators/tpm-emulator/Makefile | 5 | ||||
-rw-r--r-- | 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 |