summaryrefslogtreecommitdiff
path: root/textproc/dict-server
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-03-28 21:43:26 +0000
committerjmmv <jmmv@pkgsrc.org>2004-03-28 21:43:26 +0000
commit023e93a91f39300cb1887e6b9134af030fef0d32 (patch)
tree2e994a2eeedc9c866fddf98e5e698d291871b3cd /textproc/dict-server
parent504c1373097b9636d293ea08ca20c3d86f6ffec1 (diff)
downloadpkgsrc-023e93a91f39300cb1887e6b9134af030fef0d32.tar.gz
Honour PKG_SYSCONFDIR. Bump PKGREVISION.
Diffstat (limited to 'textproc/dict-server')
-rw-r--r--textproc/dict-server/Makefile14
-rw-r--r--textproc/dict-server/PLIST7
2 files changed, 15 insertions, 6 deletions
diff --git a/textproc/dict-server/Makefile b/textproc/dict-server/Makefile
index cd498987d83..5dccb685860 100644
--- a/textproc/dict-server/Makefile
+++ b/textproc/dict-server/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2004/01/24 15:13:19 grant Exp $
+# $NetBSD: Makefile,v 1.10 2004/03/28 21:43:26 jmmv Exp $
DISTNAME= dictd-1.8.0
PKGNAME= dict-server-1.8.0
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.dict.org/pub/dict/
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=/dict}
@@ -13,12 +13,17 @@ COMMENT= Dictionary Service Protocol server
USE_BUILDLINK2= # defined
USE_GNU_TOOLS+= make
+USE_PKGINSTALL= yes
GNU_CONFIGURE= # defined
-CONFIGURE_ARGS+=--with-etcdir=${PREFIX}/etc
+CONFIGURE_ARGS+=--with-etcdir=${PKG_SYSCONFDIR}
ALL_TARGET= dictd dictzip
INSTALL_TARGET= install.dictd install.dictzip install.dictfmt
+EGDIR= ${PREFIX}/share/examples/dict-server
+CONF_FILES= ${EGDIR}/dictd.conf \
+ ${PKG_SYSCONFDIR}/dictd.conf
+
# A symbol T_USER is defined in trap.h so...
post-patch:
${GREP} -lr T_USER ${WRKSRC} | \
@@ -31,8 +36,9 @@ post-patch:
done
post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
- ${WRKSRC}/dictd.conf >${PREFIX}/etc/dictd.conf
+ ${WRKSRC}/dictd.conf >${EGDIR}/dictd.conf
${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
.include "../../devel/libtool/buildlink2.mk"
diff --git a/textproc/dict-server/PLIST b/textproc/dict-server/PLIST
index d3c103bf1e6..f36607c7645 100644
--- a/textproc/dict-server/PLIST
+++ b/textproc/dict-server/PLIST
@@ -1,9 +1,12 @@
-@comment $NetBSD: PLIST,v 1.3 2002/12/27 02:40:19 uebayasi Exp $
+@comment $NetBSD: PLIST,v 1.4 2004/03/28 21:43:26 jmmv Exp $
bin/dictfmt
bin/dictfmt_index2suffix
bin/dictzip
-etc/dictd.conf
man/man1/dictfmt.1
man/man1/dictzip.1
man/man8/dictd.8
sbin/dictd
+share/examples/dict-server/dictd.conf
+@dirrm share/examples/dict-server
+@exec ${MKDIR} %D/share/dictd
+@dirrm share/dictd