summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveego <veego@pkgsrc.org>2000-10-15 07:20:42 +0000
committerveego <veego@pkgsrc.org>2000-10-15 07:20:42 +0000
commit4b85fd0d6c6bbaafab80ae0604ebd9482647ab93 (patch)
treee3857c68becb5195c601dda72fe63647d00a4e83
parentab40caab2ec09f210f03e8b3835c3c7ce6477281 (diff)
downloadpkgsrc-4b85fd0d6c6bbaafab80ae0604ebd9482647ab93.tar.gz
Add TIN_USE_INN_SPOOL which enables support for reading directly in an inn
spool. This makes reading news much faster if you have a local inn.
-rw-r--r--mk/mk.conf.example7
-rw-r--r--news/tin/Makefile20
2 files changed, 23 insertions, 4 deletions
diff --git a/mk/mk.conf.example b/mk/mk.conf.example
index 653ec57c4ba..c264c506392 100644
--- a/mk/mk.conf.example
+++ b/mk/mk.conf.example
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf.example,v 1.156 2000/09/26 11:09:26 agc Exp $
+# $NetBSD: mk.conf.example,v 1.157 2000/10/15 07:20:43 veego Exp $
#
# Sample /etc/mk.conf file, which can be used to set specific values
@@ -648,6 +648,11 @@ PAPERSIZE= A4
# Possible: YES, or NO.
# Default: NO
+#TIN_USE_INN_SPOOL
+# Used to enable reading directly in an inn spool.
+# Possible: YES, or NO.
+# Default: NO
+
#TCSH_STATIC=
# Produce static version of tcsh binary - advised if used as login shell
# Possible: defined, not defined
diff --git a/news/tin/Makefile b/news/tin/Makefile
index c55c209b60d..a9a331c4279 100644
--- a/news/tin/Makefile
+++ b/news/tin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2000/08/10 10:03:23 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2000/10/15 07:20:42 veego Exp $
# $FreeBSD Id: Makefile,v 1.17 1997/06/16 06:39:51 max Exp
DISTNAME= tin-1.4.4
@@ -17,21 +17,35 @@ HOMEPAGE= http://www.tin.org/
GNU_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(TIN_USE_INN_SPOOL) && ${TIN_USE_INN_SPOOL} == YES
+INN_DATA_DIR?= /var/news
+.endif
+
# Curses support too buggy to activate
# --enable-curses \
# --with-ncurses \
#
-CONFIGURE_ARGS= --with-nntp-default-server=news \
+CONFIGURE_ARGS+= --with-nntp-default-server=news \
--with-mime-default-charset=ISO-8859-1 \
--enable-forgery \
--enable-break-long-lines \
--with-ispell=${PREFIX}/bin/ispell \
--with-metamail=${PREFIX}/bin/metamail \
- --enable-nntp-only \
--disable-mime-strict-charset \
--with-defaults-dir=${PREFIX}/etc \
--enable-mh-mail-handling \
--with-coffee
+.if defined(TIN_USE_INN_SPOOL) && ${TIN_USE_INN_SPOOL} == YES
+CONFIGURE_ARGS+= --with-inews-dir=${PREFIX}/inn/bin \
+ --with-libdir=${INN_DATA_DIR}/db \
+ --with-spooldir=${INN_DATA_DIR}/spool/articles \
+ --with-nov-dir=${INN_DATA_DIR}/spool/overview
+.else
+CONFIGURE_ARGS+= --enable-nntp-only
+.endif
+
MAKEFILE= makefile
ALL_TARGET= build