mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
- Update to 0.3.13. - Remove CONFLICTS with emulators/tpm-emulator. Two separate binaries, sbin/tcsd (for actual TPM device) and sbin/tcsd_emu (for TPM emulator) are now installed. rc.d/tcsd chooses one of them depending on $tcsd_mode. When tcsd_mode="native" (default) it runs sbin/tcsd, and when tcsd_mode="emulator" it runs sbin/tcsd_emu. Note that sbin/tcsd_emu depends on tpmd in emulators/tpm-emulator. - Simplify @sample. emulators/tpm-emulator: - Remove CONFLICTS with security/trousers. - Simplify rc.d/tpmd.
31 lines
552 B
Bash
31 lines
552 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: tpmd
|
|
# REQUIRE: SERVERS
|
|
# BEFORE: tcsd
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# tpmd_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable tpmd.
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=tpmd
|
|
rcvar="${name}_enable"
|
|
command="%%PREFIX%%/bin/${name}"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${tpmd_enable:="NO"}
|
|
: ${tpmd_user:="%%USERS%%"}
|
|
: ${tpmd_group:="%%GROUPS%%"}
|
|
|
|
command_args="-o ${tpmd_user} -g ${tpmd_group}"
|
|
unset tpmd_user tpmd_group
|
|
|
|
run_rc_command "$1"
|