View | Details | Raw Unified | Return to bug 91505
Collapse All | Expand All

(-)dictd/Makefile (-5 / +5 lines)
Lines 19-25 Link Here
19
MAN1=		dictzip.1
19
MAN1=		dictzip.1
20
MAN8=		dictd.8
20
MAN8=		dictd.8
21
21
22
USE_RC_SUBR=	yes
22
USE_RC_SUBR=	${PORTNAME}.sh
23
USE_REINPLACE=	yes
23
USE_REINPLACE=	yes
24
USE_BISON=	yes
24
USE_BISON=	yes
25
USE_AUTOTOOLS=	libtool:15
25
USE_AUTOTOOLS=	libtool:15
Lines 28-34 Link Here
28
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
28
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
29
		LDFLAGS="-L${LOCALBASE}/lib"
29
		LDFLAGS="-L${LOCALBASE}/lib"
30
30
31
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
31
SUB_FILES+=	pkg-message
32
SUB_LIST+=	PORTSDIR=${PORTSDIR}
32
33
33
USE_GMAKE=	yes
34
USE_GMAKE=	yes
34
35
Lines 44-51 Link Here
44
post-install:
45
post-install:
45
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample
46
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample
46
	@[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf
47
	@[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf
47
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh
48
	#@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d
48
	@${CHMOD} +x ${PREFIX}/etc/rc.d/${PORTNAME}.sh
49
	@${CAT} ${PKGMESSAGE}
49
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${PKGMESSAGE}
50
50
51
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)dictd/distinfo (+1 lines)
Lines 1-2 Link Here
1
MD5 (dictd-1.10.4.tar.gz) = 1c0b7583e6fa25fd27fca5fca9ddb91f
1
MD5 (dictd-1.10.4.tar.gz) = 1c0b7583e6fa25fd27fca5fca9ddb91f
2
SHA256 (dictd-1.10.4.tar.gz) = 8ba2be616099724b0f66f58c71b7cec3b3ec5691fd12b338405deace46713a11
2
SIZE (dictd-1.10.4.tar.gz) = 647901
3
SIZE (dictd-1.10.4.tar.gz) = 647901
(-)dictd/files/dictd.sh (-20 lines)
Lines 1-20 Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/net/dictd/files/dictd.sh,v 1.5 2004/09/02 06:37:52 clive Exp $
3
#
4
# PROVIDE: dictd
5
# REQUIRE: DAEMON
6
# KEYWORD: FreeBSD
7
#
8
# Add the following line to /etc/rc.conf to enable dictd:
9
#
10
# dictd_enable="YES"
11
#
12
13
. %%RC_SUBR%%
14
15
name=dictd
16
rcvar=`set_rcvar`
17
command=%%PREFIX%%/sbin/dictd
18
19
load_rc_config $name
20
run_rc_command "$1"
(-)dictd/files/dictd.sh.in (+21 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/net/dictd/files/dictd.sh,v 1.5 2004/09/02 06:37:52 clive Exp $
3
#
4
# PROVIDE: dictd
5
# REQUIRE: DAEMON
6
#
7
# Add the following line to /etc/rc.conf[.local] to enable dictd:
8
#
9
# dictd_enable="YES"
10
#
11
12
dictd_enable=${dictd_enable-"NO"}
13
14
. %%RC_SUBR%%
15
16
name=dictd
17
rcvar=`set_rcvar`
18
command=%%PREFIX%%/sbin/dictd
19
20
load_rc_config $name
21
run_rc_command "$1"
(-)dictd/files/pkg-message.in (+15 lines)
Line 0 Link Here
1
==================================================================
2
3
This port installs the dict daemon but does not envoke dictd
4
by default.
5
6
To invoke dictd on startup, put the following in /etc/rc.conf:
7
8
    dictd_enable="YES"
9
10
The dict client can be found within %%PORTSDIR%%/textproc/dict
11
12
Don't forget to install %%PORTSDIR%%/net/dictd-database
13
to run a dictd server without pain.
14
15
==================================================================
(-)dictd/pkg-message (-15 lines)
Lines 1-15 Link Here
1
==================================================================
2
3
This port installs the dict daemon but does not envoke dictd
4
by default.
5
6
To invoke dictd on startup, put the following in /etc/rc.conf:
7
8
    dictd_enable="YES"
9
10
The dict client can be found within ports/textproc/dict.
11
12
Don't forget to install ports/net/dictd-database to run
13
a dictd server without pain.
14
15
==================================================================
(-)dictd/pkg-plist (-1 lines)
Lines 3-6 Link Here
3
@unexec if cmp -s %D/etc/dictd.conf %D/etc/dictd.conf.sample; then rm -f %D/etc/dictd.conf; fi
3
@unexec if cmp -s %D/etc/dictd.conf %D/etc/dictd.conf.sample; then rm -f %D/etc/dictd.conf; fi
4
etc/dictd.conf.sample
4
etc/dictd.conf.sample
5
@exec [ -f %B/dictd.conf ] || cp %B/%f %B/dictd.conf
5
@exec [ -f %B/dictd.conf ] || cp %B/%f %B/dictd.conf
6
etc/rc.d/dictd.sh

Return to bug 91505