diff options
author | clsung <clsung@FreeBSD.org> | 2010-02-05 10:37:34 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2010-02-05 10:37:34 +0800 |
commit | 8a5c10b5c0c8b9de347709fde050872c4b03b3b5 (patch) | |
tree | f902f58cb369b37b2466d4ce49f0f759b8d87f66 /net | |
parent | af563a2117cd4f4ce7039819e602c0af0ea2f6d7 (diff) | |
download | freebsd-ports-gnome-8a5c10b5c0c8b9de347709fde050872c4b03b3b5.tar.gz freebsd-ports-gnome-8a5c10b5c0c8b9de347709fde050872c4b03b3b5.tar.zst freebsd-ports-gnome-8a5c10b5c0c8b9de347709fde050872c4b03b3b5.zip |
- use $SUB_FILES to dynamically adjust dictd.conf
PR: ports/143101
Submitted by: Sevan Janiyan <venture37_AT_geeklan dot co dot uk>
Diffstat (limited to 'net')
-rw-r--r-- | net/dictd/Makefile | 6 | ||||
-rw-r--r-- | net/dictd/files/dictd.conf.in (renamed from net/dictd/files/dictd.conf) | 0 | ||||
-rw-r--r-- | net/dictd/files/dictd.in (renamed from net/dictd/files/dictd.sh.in) | 2 | ||||
-rw-r--r-- | net/dictd/files/dictd.sh | 19 |
4 files changed, 4 insertions, 23 deletions
diff --git a/net/dictd/Makefile b/net/dictd/Makefile index 90ca5e234bae..d36a3e391799 100644 --- a/net/dictd/Makefile +++ b/net/dictd/Makefile @@ -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} diff --git a/net/dictd/files/dictd.conf b/net/dictd/files/dictd.conf.in index 068916130110..068916130110 100644 --- a/net/dictd/files/dictd.conf +++ b/net/dictd/files/dictd.conf.in diff --git a/net/dictd/files/dictd.sh.in b/net/dictd/files/dictd.in index 1d154591f0fd..5e8cebcd33df 100644 --- a/net/dictd/files/dictd.sh.in +++ b/net/dictd/files/dictd.in @@ -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 diff --git a/net/dictd/files/dictd.sh b/net/dictd/files/dictd.sh deleted file mode 100644 index 3cbf5d5b210e..000000000000 --- a/net/dictd/files/dictd.sh +++ /dev/null @@ -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" |