1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- use $SUB_FILES to dynamically adjust dictd.conf

PR:		ports/143101
Submitted by:	Sevan Janiyan <venture37_AT_geeklan dot co dot uk>
This commit is contained in:
Cheng-Lung Sung 2010-02-05 02:37:34 +00:00
parent 727c62fe48
commit 53d169e4cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249254
4 changed files with 4 additions and 23 deletions

View File

@ -19,7 +19,7 @@ LIB_DEPENDS= maa.2:${PORTSDIR}/devel/libmaa
MAN1= dictzip.1
MAN8= dictd.8
USE_RC_SUBR= ${PORTNAME}.sh
USE_RC_SUBR= ${PORTNAME}
USE_BISON= build
USE_AUTOTOOLS= libtool:22
GNU_CONFIGURE= yes
@ -28,7 +28,7 @@ CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
SUB_FILES+= pkg-message
SUB_FILES+= dictd.conf pkg-message
SUB_LIST+= PORTSDIR=${PORTSDIR}
USE_GMAKE= yes
@ -43,7 +43,7 @@ post-patch:
@${REINPLACE_CMD} -e "s|\([\ \t(]\)T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample
@${CP} ${WRKDIR}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
@[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf
@${CAT} ${PKGMESSAGE}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/net/dictd/files/Attic/dictd.sh.in,v 1.1 2006-04-14 06:10:26 edwin Exp $
# $FreeBSD$
#
# PROVIDE: dictd
# REQUIRE: DAEMON

View File

@ -1,19 +0,0 @@
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: dictd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable dictd:
#
# dictd_enable="YES"
#
. %%RC_SUBR%%
name=dictd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/dictd
load_rc_config $name
run_rc_command "$1"