git: e12bc14b2ae6 - 2023Q1 - net/jotta-cli: Fix permissions for jotta-cli

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Mon, 20 Feb 2023 23:41:17 UTC
The branch 2023Q1 has been updated by fuz:

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

commit e12bc14b2ae66b0b7d036f5fc2537f8961aae517
Author:     Trenton Schulz <trenton@nr.no>
AuthorDate: 2023-02-17 15:02:56 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-02-20 23:40:24 +0000

    net/jotta-cli: Fix permissions for jotta-cli
    
    The ownership for @LOCALBASE/etc/jottad were wrong (they need to be
    owned by jottad:jottad.
    
    As I had updated the portrevision, I fixed some PORTLINT issues as
    well.
    
    MFH:            2023Q1
    PR:             268601
    Reported by:    Vidar Karlsen <vidar@karlsen.tech>
    Approved by:    flo (mentor)
    Differential Revision: https://reviews.freebsd.org/D38685
    
    (cherry picked from commit 6d180ad91535336621811d40456e7ad8de586f62)
---
 net/jotta-cli/Makefile  | 6 +++---
 net/jotta-cli/pkg-plist | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/jotta-cli/Makefile b/net/jotta-cli/Makefile
index 9fce17405b1b..ff1bf87471eb 100644
--- a/net/jotta-cli/Makefile
+++ b/net/jotta-cli/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	jotta-cli
 DISTVERSION=	0.14.60923
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://repo.jotta.us/archives/freebsd/${ARCH:S|amd64|amd64|:S|i386|386|}/
 DISTNAME=	${PORTNAME}-${PORTVERSION}_freebsd_${ARCH:S|amd64|amd64|:S|i386|386|}
@@ -13,12 +14,11 @@ LICENSE_NAME=	"Jottacloud Terms and Service"
 LICENSE_TEXT=	"JottaCloud has its own terms and conditions available at https://www.jottacloud.com/en/terms.html"
 LICENSE_PERMS=	dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
 
-RESTRICTED=	yes
-
 ONLY_FOR_ARCHS=	amd64 i386
-
 RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 
+RESTRICTED=	yes
+
 USE_RC_SUBR=	jottad
 
 NO_BUILD=	yes
diff --git a/net/jotta-cli/pkg-plist b/net/jotta-cli/pkg-plist
index d1d4447d456d..3bdb89180ea0 100644
--- a/net/jotta-cli/pkg-plist
+++ b/net/jotta-cli/pkg-plist
@@ -3,6 +3,7 @@ sbin/jottad
 @dir etc/rc.d
 @owner jottad
 @group jottad
+@dir etc/jottad
 @sample(jottad,jottad,644) etc/jottad/config.ini.sample
 @dir /var/lib/jottad
 @dir /var/lib