aboutsummaryrefslogtreecommitdiff
path: root/net/dictd
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-12-08 09:12:03 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-12-08 09:12:03 +0000
commit8e41174ddb1f015aeb1b748775a46c1f078ce5d7 (patch)
treed4da13aa9edb9103bd8a2b932c146e2376949ba9 /net/dictd
parentc2c774de7742c368473812b431d641054cdee4a5 (diff)
downloadports-8e41174ddb1f015aeb1b748775a46c1f078ce5d7.tar.gz
ports-8e41174ddb1f015aeb1b748775a46c1f078ce5d7.zip
- Remove unrecognized CONFIGURE_ARGS
- Cosmetic change - Do not silence installation message - Reformat pkg-descr - Add sourceforge to WWW - Take maintainership
Notes
Notes: svn path=/head/; revision=374253
Diffstat (limited to 'net/dictd')
-rw-r--r--net/dictd/Makefile25
-rw-r--r--net/dictd/files/dictd.conf.in28
-rw-r--r--net/dictd/files/dictd.in2
-rw-r--r--net/dictd/files/patch-dictd.8.in29
-rw-r--r--net/dictd/pkg-descr11
5 files changed, 31 insertions, 64 deletions
diff --git a/net/dictd/Makefile b/net/dictd/Makefile
index 70312ddffe6a..715845fb5746 100644
--- a/net/dictd/Makefile
+++ b/net/dictd/Makefile
@@ -6,34 +6,29 @@ PORTVERSION= 1.12.1
CATEGORIES+= net textproc
MASTER_SITES= SF/dict/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER?= ports@FreeBSD.org
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Dict protocol (RFC 2229) server
LICENSE= GPLv2
LIB_DEPENDS= libmaa.so:${PORTSDIR}/devel/libmaa
-USE_RC_SUBR= ${PORTNAME}
-USES= bison gmake libtool:build
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
- --without-local-zlib
+ALL_TARGET= dictd dictzip
CPPFLAGS+= -I${LOCALBASE}/include
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install.dictd install.dictzip
LIBS+= -L${LOCALBASE}/lib
+USES= bison gmake libtool:build
-SUB_FILES+= dictd.conf pkg-message
-SUB_LIST+= PORTSDIR=${PORTSDIR}
-
-ALL_TARGET= dictd dictzip
-INSTALL_TARGET= install.dictd install.dictzip
+SUB_FILES= dictd.conf pkg-message
+SUB_LIST= PORTSDIR=${PORTSDIR}
+USE_RC_SUBR= ${PORTNAME}
post-patch:
-.for i in Makefile.in dict.1.in dictd.8.in
- @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$i
-.endfor
+ @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile.in ${WRKSRC}/dict.1.in ${WRKSRC}/dictd.8.in
@${REINPLACE_CMD} -e "s|\([\ \t(]\)T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
- @${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>
diff --git a/net/dictd/files/dictd.conf.in b/net/dictd/files/dictd.conf.in
index 068916130110..81febfb49520 100644
--- a/net/dictd/files/dictd.conf.in
+++ b/net/dictd/files/dictd.conf.in
@@ -1,22 +1,22 @@
-database web1913 { data "%%PREFIX%%/lib/dict/web1913.dict.dz"
- index "%%PREFIX%%/lib/dict/web1913.index" }
-database wn { data "%%PREFIX%%/lib/dict/wn.dict.dz"
- index "%%PREFIX%%/lib/dict/wn.index" }
-database gazetteer { data "%%PREFIX%%/lib/dict/gazetteer.dict.dz"
- index "%%PREFIX%%/lib/dict/gazetteer.index" }
-database jargon { data "%%PREFIX%%/lib/dict/jargon.dict.dz"
- index "%%PREFIX%%/lib/dict/jargon.index" }
-database foldoc { data "%%PREFIX%%/lib/dict/foldoc.dict.dz"
- index "%%PREFIX%%/lib/dict/foldoc.index" }
-database elements { data "%%PREFIX%%/lib/dict/elements.dict.dz"
- index "%%PREFIX%%/lib/dict/elements.index" }
+database devils { data "%%PREFIX%%/lib/dict/devils.dict.dz"
+ index "%%PREFIX%%/lib/dict/devils.index" }
database easton { data "%%PREFIX%%/lib/dict/easton.dict.dz"
index "%%PREFIX%%/lib/dict/easton.index" }
+database elements { data "%%PREFIX%%/lib/dict/elements.dict.dz"
+ index "%%PREFIX%%/lib/dict/elements.index" }
+database foldoc { data "%%PREFIX%%/lib/dict/foldoc.dict.dz"
+ index "%%PREFIX%%/lib/dict/foldoc.index" }
+database gazetteer { data "%%PREFIX%%/lib/dict/gazetteer.dict.dz"
+ index "%%PREFIX%%/lib/dict/gazetteer.index" }
database hitchcock { data "%%PREFIX%%/lib/dict/hitchcock.dict.dz"
index "%%PREFIX%%/lib/dict/hitchcock.index" }
+database jargon { data "%%PREFIX%%/lib/dict/jargon.dict.dz"
+ index "%%PREFIX%%/lib/dict/jargon.index" }
database vera { data "%%PREFIX%%/lib/dict/vera.dict.dz"
index "%%PREFIX%%/lib/dict/vera.index" }
-database devils { data "%%PREFIX%%/lib/dict/devils.dict.dz"
- index "%%PREFIX%%/lib/dict/devils.index" }
+database web1913 { data "%%PREFIX%%/lib/dict/web1913.dict.dz"
+ index "%%PREFIX%%/lib/dict/web1913.index" }
+database wn { data "%%PREFIX%%/lib/dict/wn.dict.dz"
+ index "%%PREFIX%%/lib/dict/wn.index" }
database world95 { data "%%PREFIX%%/lib/dict/world95.dict.dz"
index "%%PREFIX%%/lib/dict/world95.index" }
diff --git a/net/dictd/files/dictd.in b/net/dictd/files/dictd.in
index a05597044c3c..8fbe585d8789 100644
--- a/net/dictd/files/dictd.in
+++ b/net/dictd/files/dictd.in
@@ -9,7 +9,7 @@
# dictd_enable="YES"
#
-dictd_enable=${dictd_enable-"NO"}
+dictd_enable=${dictd_enable:-"NO"}
. /etc/rc.subr
diff --git a/net/dictd/files/patch-dictd.8.in b/net/dictd/files/patch-dictd.8.in
deleted file mode 100644
index 68aa2e50ec0f..000000000000
--- a/net/dictd/files/patch-dictd.8.in
+++ /dev/null
@@ -1,29 +0,0 @@
---- dictd.8.in.orig 2008-12-25 01:16:13.000000000 +0800
-+++ dictd.8.in 2009-06-17 16:29:39.000000000 +0800
-@@ -120,7 +120,7 @@
- .TP
- .BI \-c " file\fR or " \-\-config " file"
- Specify configuration file. The default is
--.I @SYSCONFDIR@/dictd.conf
-+.I %%PREFIX%%/etc/dictd.conf
- , but may be changed in the
- .I defs.h
- file at compile time (DICTD_CONFIG_FILE).
-@@ -283,7 +283,7 @@
- .TP
- .B Introduction
- The configuration file defaults to
--.I @SYSCONFDIR@/dictd.conf
-+.I %%PREFIX%%/etc/dictd.conf
- but can be specified on the command line with the
- .B \-c
- option (see above).
-@@ -1443,7 +1443,7 @@
- library you build dictd with.
- .SH "FILES"
- .TP
--.I @SYSCONFDIR@/dictd.conf
-+.I %%PREFIX%%/etc/dictd.conf
- .B dictd
- configuration file
- .TP
diff --git a/net/dictd/pkg-descr b/net/dictd/pkg-descr
index 00cc8556a6d8..abdaf6434b48 100644
--- a/net/dictd/pkg-descr
+++ b/net/dictd/pkg-descr
@@ -1,8 +1,9 @@
The DICT Protocol, described in RFC 2229 is a TCP transaction based
-query/response protocol that allows a client to access dictionary
-definitions from a set of natural language dictionary databases. While
-RFC 2229 is a finished document, we plan to clarify and enhance the
-protocol definition as we gain more experience with large dictionary
-database servers. By default, the DICT protocol uses TCP port 2628.
+query/response protocol that allows a client to access dictionary definitions
+from a set of natural language dictionary databases. While RFC 2229 is a
+finished document, we plan to clarify and enhance the protocol definition as we
+gain more experience with large dictionary database servers. By default, the
+DICT protocol uses TCP port 2628.
WWW: http://www.dict.org/
+WWW: http://sourceforge.net/projects/dict/