Have the rc.d script respect PKG_SYSCONFDIR (what a concept!)

This commit is contained in:
hauke 2024-01-31 13:38:46 +00:00
parent d59d5812ff
commit 888dbe93e4
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.26 2024/01/31 12:02:23 hauke Exp $
# $NetBSD: Makefile,v 1.27 2024/01/31 13:38:46 hauke Exp $
DISTNAME= cvsd-1.0.23
PKGREVISION= 13
PKGREVISION= 14
CATEGORIES= devel scm
MASTER_SITES= https://arthurdejong.org/cvsd/

View File

@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cvsd.sh,v 1.1.1.1 2006/05/20 23:38:16 wiz Exp $
# $NetBSD: cvsd.sh,v 1.2 2024/01/31 13:38:46 hauke Exp $
#
# PROVIDE: cvsd
# REQUIRE: DAEMON
@ -13,7 +13,7 @@ fi
name="cvsd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@PREFIX@/etc/${name}.conf"
required_files="@PKG_SYSCONFDIR@/${name}.conf"
pidfile=$(awk '/^#/ {next}; /PidFile/ {print $2}' ${required_files})
# pidfile=/var/run/cvsd.pid
command_args=""