diff options
author | Carlo Strub <cs@FreeBSD.org> | 2022-10-01 13:14:42 +0000 |
---|---|---|
committer | Carlo Strub <cs@FreeBSD.org> | 2022-10-01 13:14:42 +0000 |
commit | f71668a18bcb7dbdcb497a9341162bb981b29884 (patch) | |
tree | 8c7ea74f16a04aa983d2bb7b0d35a47cbb1889b3 | |
parent | 0cbdda4425df97c33e7448542cbff4bfe7d0ef91 (diff) | |
download | ports-f71668a18bcb7dbdcb497a9341162bb981b29884.tar.gz ports-f71668a18bcb7dbdcb497a9341162bb981b29884.zip |
security/arti: Fix folder permissions
-rw-r--r-- | security/arti/Makefile | 2 | ||||
-rw-r--r-- | security/arti/files/arti.in | 16 | ||||
-rw-r--r-- | security/arti/pkg-plist | 2 |
3 files changed, 3 insertions, 17 deletions
diff --git a/security/arti/Makefile b/security/arti/Makefile index 3fea1e343fde..96a23cc1d494 100644 --- a/security/arti/Makefile +++ b/security/arti/Makefile @@ -1,6 +1,6 @@ PORTNAME= arti DISTVERSION= 1.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MAINTAINER= cs@FreeBSD.org diff --git a/security/arti/files/arti.in b/security/arti/files/arti.in index 8cb8d4a48513..00f6c0239316 100644 --- a/security/arti/files/arti.in +++ b/security/arti/files/arti.in @@ -30,25 +30,9 @@ pidfiledir="/var/run/${name}" pidfile="${pidfiledir}/${name}.pid" logfiledir="/var/log/${name}" logfile="${logfiledir}/${name}.log" -dbfiledir="/var/db/${name}" command="/usr/sbin/daemon" procname="%%PREFIX%%/bin/${name}" command_args="-f -o $logfile -p $pidfile $procname proxy --config $arti_config" -start_precmd="${name}_prestart" - -arti_prestart() -{ - if [ ! -d ${pidfiledir} ]; then - install -d -o ${arti_user} -g ${arti_group} ${pidfiledir} - fi - if [ ! -d ${logfiledir} ]; then - install -d -o ${arti_user} -g ${arti_group} ${logfiledir} - fi - if [ ! -d ${dbfiledir} ]; then - install -d -o ${arti_user} -g ${arti_group} ${dbfiledir} - fi -} - run_rc_command "$1" diff --git a/security/arti/pkg-plist b/security/arti/pkg-plist index 4b90f62f5d8e..b70161d58f10 100644 --- a/security/arti/pkg-plist +++ b/security/arti/pkg-plist @@ -1,5 +1,7 @@ bin/arti @sample %%ETCDIR%%/arti.toml.sample +@owner %%USERS%% +@group %%GROUPS%% @dir /var/db/arti @dir /var/log/arti @dir /var/run/arti |