pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
coturn: Create data directory with the right permissions
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Sun Jan 19 19:40:10 2025 -0500
Changeset: 2dfa9acfd7e6498dce552284584e38eacba09304
Modified Files:
coturn/Makefile
coturn/files/turnserver.sh
Log Message:
coturn: Create data directory with the right permissions
Also, move it from /var/coturn to /var/db/coturn, following the guide
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2dfa9acfd7e6498dce552284584e38eacba09304
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
coturn/Makefile | 8 +++++---
coturn/files/turnserver.sh | 2 +-
2 files changed, 6 insertions(+), 4 deletions(-)
diffs:
diff --git a/coturn/Makefile b/coturn/Makefile
index 62655f63df..93a8b996df 100644
--- a/coturn/Makefile
+++ b/coturn/Makefile
@@ -1,7 +1,7 @@
# $NetBSD$
DISTNAME= coturn-4.6.3
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=coturn/}
GITHUB_PROJECT= coturn
@@ -24,9 +24,11 @@ HAS_CONFIGURE= yes
COTURN_USER?= coturn
COTURN_GROUP?= ${COTURN_USER}
-COTURN_DATA?= ${VARBASE}/coturn
+COTURN_DATA?= ${VARBASE}/db/coturn
BUILD_DEFS+= COTURN_USER COTURN_GROUP COTURN_DATA VARBASE
+OWN_DIRS_PERMS+= ${COTURN_DATA} ${COTURN_USER} ${COTURN_GROUP} 0770
+
PKG_USERS_VARS= COTURN_USER
PKG_GROUPS_VARS= COTURN_GROUP
PKG_GROUPS= ${COTURN_GROUP}
@@ -39,7 +41,7 @@ RCD_SCRIPTS= turnserver
FILES_SUBST+= COTURN_USER=${COTURN_USER:Q}
FILES_SUBST+= COTURN_GROUP=${COTURN_GROUP:Q}
-FILES_SUBST+= COTURN_DATA=${COTURN_DATA:Q}
+FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
# Pass cflags/libs
CONFIGURE_ENV+= PTHREAD_LIBS=-pthread TURN_DISABLE_RPATH=1
diff --git a/coturn/files/turnserver.sh b/coturn/files/turnserver.sh
index 46e7528811..f8db7a0c33 100644
--- a/coturn/files/turnserver.sh
+++ b/coturn/files/turnserver.sh
@@ -20,7 +20,7 @@ name="turnserver"
rcvar=$name
: ${turnserver:=no}
-: ${turnserver_config=@COTURN_DATA@/turnserver.conf}
+: ${turnserver_config=@PKG_SYSCONFDIR@/turnserver.conf}
: ${coturn_user:=@COTURN_USER@}
: ${coturn_group:=@COTURN_GROUP@}
Home |
Main Index |
Thread Index |
Old Index