fixed: hardcoded path to m4, now USE_TOOLS is used
removed: section 1 in MESSAGE
This commit is contained in:
parent
1881a885fb
commit
ab031fefec
3 changed files with 11 additions and 17 deletions
|
@ -1,20 +1,11 @@
|
|||
===========================================================================
|
||||
$NetBSD: MESSAGE,v 1.3 2006/07/12 15:26:32 cheusov Exp $
|
||||
$NetBSD: MESSAGE,v 1.4 2006/07/18 20:43:11 cheusov Exp $
|
||||
|
||||
1) To enable "dictd" to start on boot on NetBSD-1.5 or newer,
|
||||
please copy "${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/dictd" to
|
||||
"/etc/rc.d/" and add "dictd=YES" to /etc/rc.conf. To do the
|
||||
same on older systems, add the following to /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/dictd ]; then
|
||||
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/dictd
|
||||
fi
|
||||
|
||||
2) By default dictd uses '/usr/bin/m4 -P' for
|
||||
1) By default dictd uses '${PATH_TO_M4} -P' for
|
||||
preprocessing configuration file. If you dislike this default
|
||||
add dictd_flags='<your options>' to /etc/rc.conf.
|
||||
|
||||
3) ${VARBASE}/log/dictd is a preferred directory for logging unless
|
||||
2) ${VARBASE}/log/dictd is a preferred directory for logging unless
|
||||
syslog is used.
|
||||
|
||||
===========================================================================
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.9 2006/07/16 19:55:35 cheusov Exp $
|
||||
# $NetBSD: Makefile,v 1.10 2006/07/18 20:43:11 cheusov Exp $
|
||||
|
||||
DISTNAME= dictd-1.10.7
|
||||
PKGNAME= dict-server-1.10.7
|
||||
|
@ -10,19 +10,22 @@ MAINTAINER= cheusov@tut.by
|
|||
HOMEPAGE= http://www.dict.org/
|
||||
COMMENT= Dictionary Service Protocol server
|
||||
|
||||
USE_TOOLS+= gmake yacc
|
||||
USE_TOOLS+= gmake yacc m4:run
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --with-cflags=${CFLAGS:M*:Q}
|
||||
CONFIGURE_ARGS+= --disable-plugin
|
||||
|
||||
MESSAGE_SUBST+= VARBASE="${VARBASE}"
|
||||
MESSAGE_SUBST+= PATH_TO_M4="${TOOLS_PATH.m4}"
|
||||
FILES_SUBST+= PATH_TO_M4="${TOOLS_PATH.m4}"
|
||||
|
||||
INSTALLATION_DIRS+= share/dictd
|
||||
|
||||
PKG_GROUPS= dictd
|
||||
PKG_USERS= dictd:dictd
|
||||
PKG_GECOS.dictd= Dictionary\ protocol\ server\ user
|
||||
|
||||
RCD_SCRIPTS= dictd
|
||||
RCD_SCRIPTS= dictd
|
||||
|
||||
# for -L /var/log/dictd/<filename_or_pattern>
|
||||
OWN_DIRS_PERMS= ${VARBASE}/log/dictd ${DICTD_USER} ${DICTD_GROUP} 0750
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!@RCD_SCRIPTS_SHELL@
|
||||
#
|
||||
# $NetBSD: dictd.sh,v 1.2 2006/07/12 15:26:32 cheusov Exp $
|
||||
# $NetBSD: dictd.sh,v 1.3 2006/07/18 20:43:11 cheusov Exp $
|
||||
#
|
||||
# PROVIDE: dictd
|
||||
# REQUIRE: LOGIN
|
||||
|
@ -8,7 +8,7 @@
|
|||
. /etc/rc.subr
|
||||
|
||||
name="dictd"
|
||||
dictd_flags=${dictd_flags-"--pp '/usr/bin/m4 -P'"}
|
||||
dictd_flags=${dictd_flags-"--pp '@PATH_TO_M4@ -P'"}
|
||||
rcvar=$name
|
||||
command="@PREFIX@/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
|
Loading…
Reference in a new issue