diff options
author | dd <dd@FreeBSD.org> | 2003-12-29 18:43:36 +0800 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2003-12-29 18:43:36 +0800 |
commit | 7298d8973a5d17b5631d214278412cbb78c78ed1 (patch) | |
tree | 7db382279fc2141a54a23cddf88dae5721ad4a03 /textproc | |
parent | c7d3b1f49d4489f5bfc233e87b81ff8f05948c1a (diff) | |
download | freebsd-ports-gnome-7298d8973a5d17b5631d214278412cbb78c78ed1.tar.gz freebsd-ports-gnome-7298d8973a5d17b5631d214278412cbb78c78ed1.tar.zst freebsd-ports-gnome-7298d8973a5d17b5631d214278412cbb78c78ed1.zip |
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
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/dict/Makefile | 5 | ||||
-rw-r--r-- | textproc/dict/files/dict.conf | 14 | ||||
-rw-r--r-- | textproc/dict/pkg-plist | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/textproc/dict/Makefile b/textproc/dict/Makefile index 2f4d921c4c98..5ee995f54162 100644 --- a/textproc/dict/Makefile +++ b/textproc/dict/Makefile @@ -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> diff --git a/textproc/dict/files/dict.conf b/textproc/dict/files/dict.conf new file mode 100644 index 000000000000..f2cfcc3aa998 --- /dev/null +++ b/textproc/dict/files/dict.conf @@ -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 diff --git a/textproc/dict/pkg-plist b/textproc/dict/pkg-plist index 54b6a65dfd1d..b334a6442f0f 100644 --- a/textproc/dict/pkg-plist +++ b/textproc/dict/pkg-plist @@ -1,2 +1,3 @@ @comment $FreeBSD$ bin/dict +etc/dict.conf |