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

o Fix pkg-comment, this port only contains dict server

o Fix pkg-message, dict client is right at textproc/dict
o Add missing pkg-plist entry
o Really destroy T_USER conflicts. *SIGH*
o Fix dictd.sh startup script. Dictd itself won't generate
  any pid file. Thus I use my own trick.

pkg-* reported by: "Donald J . Maddox" <dmaddox@sc.rr.com>
This commit is contained in:
Clive Lin 2001-01-28 21:23:04 +00:00
parent 1f17fe5623
commit f0ad3af744
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37699
5 changed files with 19 additions and 12 deletions

View File

@ -35,7 +35,7 @@ post-patch:
@${PERL} -pi -e "s|/usr|${PREFIX}|g" ${WRKSRC}/$i
.endfor
@${PERL} -pi -e "s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/zlib/Makefile
@${PERL} -pi -e "s|[\ \t]T_USER| T_USERNAME|g" ${WRKSRC}/servparse.*
@${PERL} -pi -e "s|[\ \t]T_USER| T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
@${MKDIR} ${PREFIX}/share/${PORTNAME}

View File

@ -1,7 +1,14 @@
#!/bin/sh
# $FreeBSD$
SOCKSTAT=/usr/bin/sockstat
GREP=/usr/bin/grep
AWK=/usr/bin/awk
ECHO=/bin/echo
CAT=/bin/cat
KILL=/bin/kill
RM=/bin/rm
DICTD=%%PREFIX%%/sbin/dictd
# DICTD_OPTIONS="-put -command_line -options -for -dictd -here"
@ -12,10 +19,11 @@ DICTD_PID_FILE=/var/run/dictd.pid
case "$1" in
start)
if [ -x $DICTD ]; then
echo "dictd starting."
${ECHO} "dictd starting."
$DICTD $DICTD_OPTIONS
${ECHO} `${SOCKSTAT} | ${GREP} dictd | ${AWK} '{print $3}'` > ${DICTD_PID_FILE}
else
echo "dictd.sh: cannot find $DICTD or it's not executable"
${ECHO} "dictd.sh: cannot find $DICTD or it's not executable"
fi
;;
@ -23,12 +31,12 @@ case "$1" in
if [ ! -f $DICTD_PID_FILE ]; then
exit 0
fi
dictdpid=`cat $DICTD_PID_FILE`
dictdpid=`${CAT} $DICTD_PID_FILE`
if [ "$dictdpid" -gt 0 ]; then
echo "Stopping the dictd server."
kill -15 $dictdpid 2>&1 > /dev/null
${ECHO} "Stopping the dictd server."
${KILL} -15 $dictdpid 2>&1 > /dev/null
fi
rm -f $DICTD_PID_FILE
${RM} -f $DICTD_PID_FILE
;;
*)
echo "Usage: dictd.sh { start | stop }"

View File

@ -1 +1 @@
Dict protocol (RFC 2229) client and server
Dict protocol (RFC 2229) server

View File

@ -1,7 +1,5 @@
==================================================================
dictd database can be found at ftp://ftp.dict.org/pub/dict
example config can be found at %%PREFIX%%/share/dictd
Dict client could be found within ports/textproc/dict.
==================================================================

View File

@ -6,4 +6,5 @@ share/dictd/example.site
share/dictd/example2.conf
share/dictd/example3.conf
etc/dictd.conf
etc/rc.d/dictd.sh
@dirrm share/dictd