git: 9177e2323609 - main - sysutils/swtpm: Fix incorrect rcorder requirement

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Fri, 07 Feb 2025 23:44:48 UTC
The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9177e2323609c643911ad16c482dc5791797e790

commit 9177e2323609c643911ad16c482dc5791797e790
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2025-02-07 23:39:50 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2025-02-07 23:39:50 +0000

    sysutils/swtpm: Fix incorrect rcorder requirement
    
    If we add 'swtpm_enable="YES"' in /etc/rc.conf*, it fails to start with this error:
    
    Starting SWTPM config tpm ...ld-elf.so.1: Shared object "libfuse.so.2" not found, required by "swtpm"
    
    Add a proper "REQUIRE" line in the rc script to fix it.
    
    PR:             284626
    Approved by:    meka@tilda.center (maintainer)
---
 sysutils/swtpm/Makefile       | 2 +-
 sysutils/swtpm/files/swtpm.in | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysutils/swtpm/Makefile b/sysutils/swtpm/Makefile
index 926f5d076b33..2ba41891d2fe 100644
--- a/sysutils/swtpm/Makefile
+++ b/sysutils/swtpm/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	swtpm
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.9.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 
 MAINTAINER=	meka@tilda.center
diff --git a/sysutils/swtpm/files/swtpm.in b/sysutils/swtpm/files/swtpm.in
index 83ab0eec2a37..637d1279aa48 100644
--- a/sysutils/swtpm/files/swtpm.in
+++ b/sysutils/swtpm/files/swtpm.in
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 # PROVIDE: swtpm
+# REQUIRE: FILESYSTEMS ldconfig
 # KEYWORD: shutdown
 
 #