summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2003-12-29 10:43:36 +0000
committerDima Dorfman <dd@FreeBSD.org>2003-12-29 10:43:36 +0000
commit92d712cabad6f811e672d1fed406aeff24196a20 (patch)
treef135807082fe9d5be6269389d7e063fcce4adc94 /textproc
parentRemove duplicate: www/orion vs java/orion (diff)
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
Notes
Notes: svn path=/head/; revision=96874
Diffstat (limited to 'textproc')
-rw-r--r--textproc/dict/Makefile5
-rw-r--r--textproc/dict/files/dict.conf14
-rw-r--r--textproc/dict/pkg-plist1
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