Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2023 09:31:29 GMT
From:      Felix Palmen <zirias@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5fa431d4ebd3 - main - security/tlsc: Update to 1.3
Message-ID:  <202305110931.34B9VTcP081165@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5fa431d4ebd345765d2ce8ca3e6fbc118293c5f8

commit 5fa431d4ebd345765d2ce8ca3e6fbc118293c5f8
Author:     Felix Palmen <zirias@FreeBSD.org>
AuthorDate: 2023-05-09 09:18:55 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2023-05-11 09:27:07 +0000

    security/tlsc: Update to 1.3
    
    Also add a dedicated user/group and use that by default instead of
    nobody.
    
    Changes: https://github.com/Zirias/tlsc/releases/tag/v1.3
    
    Approved by:    tcberner (mentor, implicit)
---
 GIDs                        | 2 +-
 UIDs                        | 2 +-
 security/tlsc/Makefile      | 6 ++++--
 security/tlsc/distinfo      | 6 +++---
 security/tlsc/files/tlsc.in | 6 ++++--
 5 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/GIDs b/GIDs
index 2e5e929f0920..d6880befb380 100644
--- a/GIDs
+++ b/GIDs
@@ -262,7 +262,7 @@ hedgedoc:*:317:
 rustdesk:*:319:
 teleirc:*:320:
 caldera:*:321:
-# free: 322
+tlsc:*:322:
 # free: 323
 # free: 324
 dkfilter:*:325:
diff --git a/UIDs b/UIDs
index 149e55cb988c..caedab37601e 100644
--- a/UIDs
+++ b/UIDs
@@ -267,7 +267,7 @@ icingadirector:*:318:183::0:0:icingadirector user:/nonexistent:/usr/sbin/nologin
 rustdesk:*:319:319::0:0:rustdesk-server user:/nonexistent:/usr/sbin/nologin
 teleirc:*:320:320::0:0:Telegram and IRC bridge:/nonexistent:/usr/sbin/nologin
 caldera:*:321:321::0:0:Caldera Mitre user:/nonexistent:/usr/sbin/nologin
-# free: 322
+tlsc:*:322:322::0:0:TLS connect daemon:/nonexistent:/usr/sbin/nologin
 # free: 323
 # free: 324
 dkfilter:*:325:325::0:0:DK Filter Owner:/nonexistent:/usr/sbin/nologin
diff --git a/security/tlsc/Makefile b/security/tlsc/Makefile
index 1860ea7d71bd..0f8f09b4bfa9 100644
--- a/security/tlsc/Makefile
+++ b/security/tlsc/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	tlsc
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.2
-PORTREVISION=	1
+DISTVERSION=	1.3
 CATEGORIES=	security
 
 MAINTAINER=	zirias@FreeBSD.org
@@ -23,6 +22,9 @@ USE_RC_SUBR=	${PORTNAME}
 MAKE_ARGS=	V=1
 ALL_TARGET=	strip
 
+USERS=		tlsc
+GROUPS=		tlsc
+
 PLIST_FILES=	bin/tlsc
 
 post-extract:
diff --git a/security/tlsc/distinfo b/security/tlsc/distinfo
index e24704c81dd6..252db44e55a1 100644
--- a/security/tlsc/distinfo
+++ b/security/tlsc/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1683008653
-SHA256 (Zirias-tlsc-v1.2_GH0.tar.gz) = 90eb9315091f212d85afedb35d683e0ccf3ba692487caeeebb13986be75a4153
-SIZE (Zirias-tlsc-v1.2_GH0.tar.gz) = 23097
+TIMESTAMP = 1683715711
+SHA256 (Zirias-tlsc-v1.3_GH0.tar.gz) = 37bdf6975d099e0481cab1270191254b8527e925e151b1ca94bf790db31b146e
+SIZE (Zirias-tlsc-v1.3_GH0.tar.gz) = 23249
 SHA256 (Zirias-zimk-0def4fa_GH0.tar.gz) = faff68b6f7a0e337c9d42da7a7686b83e64a430592471d7eeaee3c5e2525d8fc
 SIZE (Zirias-zimk-0def4fa_GH0.tar.gz) = 12738
diff --git a/security/tlsc/files/tlsc.in b/security/tlsc/files/tlsc.in
index 173f4ae88280..7f04bbb2584e 100644
--- a/security/tlsc/files/tlsc.in
+++ b/security/tlsc/files/tlsc.in
@@ -15,7 +15,8 @@ rcvar=tlsc_enable
 load_rc_config ${name}
 
 : ${tlsc_enable:=NO}
-: ${tlsc_user:=nobody}
+: ${tlsc_user:=tlsc}
+: ${tlsc_group:=tlsc}
 
 start_precmd=tlsc_prestart
 command="%%PREFIX%%/bin/tlsc"
@@ -37,7 +38,8 @@ tlsc_prestart()
 	# tlsc handles user and group itself
 	unset _user
 	unset _group
-	install -d -m 755 -o ${tlsc_user:-root} $(dirname ${pidfile})
+	install -d -m 755 -g ${tlsc_group} -o ${tlsc_user} \
+		$(dirname ${pidfile})
 
 	return 0
 }



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