mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
This new version of dict(1) doesn't seem to default to using
dict://dict.org if the config file is absent, so install a config file with some default servers instead of making the user rummage through the man page and the web to figure out how to make this work. Noticed by: ceri
This commit is contained in:
parent
1b481d8ae2
commit
92d712caba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96874
@ -34,4 +34,9 @@ MAN1= dict.1
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/dict.1
|
||||
|
||||
post-install:
|
||||
if [ ! -f ${PREFIX}/etc/dict.conf ]; then \
|
||||
${INSTALL_DATA} ${FILESDIR}/dict.conf ${PREFIX}/etc; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
14
textproc/dict/files/dict.conf
Normal file
14
textproc/dict/files/dict.conf
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# This file is used to specify the dict servers to talk to. See the
|
||||
# CONFIGURATION section of dict(1) for the full syntax.
|
||||
#
|
||||
# A list of public dict servers is available at
|
||||
# http://luetzschena-stahmeln.de/dictd/index.php
|
||||
# but one of the following should work.
|
||||
#
|
||||
|
||||
server dict.org
|
||||
server dict.trit.org
|
||||
server dict.die.net
|
@ -1,2 +1,3 @@
|
||||
@comment $FreeBSD$
|
||||
bin/dict
|
||||
etc/dict.conf
|
||||
|
Loading…
Reference in New Issue
Block a user