Use FILES_SUBST for jabberd user/group

This commit is contained in:
Juan Romero Pardines 2003-09-29 07:22:58 +00:00
parent a86c5bb4ce
commit 7dac1d103c
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2003/09/28 18:13:51 xtraeme Exp $
# $NetBSD: Makefile,v 1.24 2003/09/29 07:22:58 xtraeme Exp $
#
DISTNAME= jabberd-2.0b1
@ -100,6 +100,8 @@ PKG_SYSCONFSUBDIR= jabberd
JABBERD_USER?= jabberd
JABBERD_GROUP?= jabberd
FILES_SUBST+= JABBERD_USER=${JABBERD_USER}
FILES_SUBST+= JABBERD_GROUP=${JABBERD_GROUP}
PKG_GROUPS= ${JABBERD_GROUP}
PKG_USERS= ${JABBERD_USER}:${JABBERD_GROUP}::Jabberd\\ user
EGDIR= ${PREFIX}/share/examples/jabberd

View file

@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: jabberd.sh,v 1.4 2003/09/28 18:13:51 xtraeme Exp $
# $NetBSD: jabberd.sh,v 1.5 2003/09/29 07:22:58 xtraeme Exp $
#
# PROVIDE: jabberd
@ -13,8 +13,8 @@ rcvar=$name
command="@PREFIX@/bin/${name}"
command_args="-D"
required_files="@PKG_SYSCONFDIR@/jabberd.cfg"
jabberd_user="jabberd"
jabberd_group="jabberd"
jabberd_user="@JABBERD_USER@"
jabberd_group="@JABBERD_GROUP@"
load_rc_config $name
run_rc_command "$1"