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