summaryrefslogtreecommitdiff
path: root/news/tin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'news/tin/Makefile')
-rw-r--r--news/tin/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/news/tin/Makefile b/news/tin/Makefile
index 503c5456e0c..4be576680ee 100644
--- a/news/tin/Makefile
+++ b/news/tin/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.28 2006/06/20 22:20:49 minskim Exp $
+# $NetBSD: Makefile,v 1.29 2006/07/17 15:48:47 rillig Exp $
#
-DISTNAME= tin-1.8.1
+DISTNAME= tin-1.8.2
CATEGORIES= news
MASTER_SITES= ftp://ftp.tin.org/pub/news/clients/tin/current/ \
ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/current/ \
@@ -16,6 +16,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.tin.org/
COMMENT= TIN newsreader (termcap based)
+# See src/nntplib.c, vms/vms.c
LICENSE= no-profit
RESTRICTED= Profit from use, sale, trade, or reproduction disallowed
@@ -23,7 +24,7 @@ GNU_CONFIGURE= yes
USE_PKGLOCALEDIR=yes
# for tinews.pl
USE_TOOLS+= perl:run yacc
-REPLACE_PERL= tools/tinews.pl
+REPLACE_PERL= tools/*.pl
BUILD_TARGET= build
.include "options.mk"
@@ -41,10 +42,11 @@ CONFIGURE_ARGS+= --with-defaults-dir=${PREFIX}/etc
CONFIGURE_ARGS+= --enable-mh-mail-handling
CONFIGURE_ARGS+= --with-coffee
-post-patch:
- @${MV} ${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.1.dist
- @${SED} -e 's:/etc/nntpserver:${PREFIX}/etc/nntp/server:' \
- <${WRKSRC}/doc/tin.1.dist >${WRKSRC}/doc/tin.1
+SUBST_CLASSES+= tin
+SUBST_STAGE.tin= pre-configure
+SUBST_MESSAGE.tin= Adjusting path to the configuration directory.
+SUBST_FILES.tin= doc/tin.1
+SUBST_SED.tin= -e 's:/etc/nntpserver:${PREFIX}/etc/nntp/server:'
post-configure:
${ECHO} '#define NNTP_SERVER_FILE "${PREFIX}/etc/nntp/server"' >>${WRKSRC}/include/autoconf.h