From 379208af961bf136884e335010190b2bee07e61d Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 16 Feb 2000 18:47:15 +0000 Subject: Update of news/trn to trn4-test72. Package provided by David Rankin in pkg/9221. Changes from trn 3.6 to trn 4.0: o Added a newsgroup selector to make choosing news groups easier (use the ++ option to turn it off). o In the selector '\' now is used to execute a command, so if you had 'c' in your SELECTCHARS, you could still catch-up a group via \c. It also lets you enter the normal newsgroup commands from the newsgroup selector, such as unsubscribe (\u) and goto group (\g). If the command letter is both a selector command and a newsgroup command, use '\\' to get the newsgroup command (such as \\O or \\h). Use ':' to apply a (limited set) of commands to more than one group, such as ":u" (unsubscribe) or ":c" (catchup). o Use "\v" from any selector to see the current trn version. o Use the backtick (`) command to switch back and forth between the newsgroup selector and the rn-style newsgroup browser. You can also type backtick from inside a newsgroup to exit back to the newsgroup selection level. o Use the '=' command in the newsgroup selector to refresh the article counts (possibly refetching the active file). o Use the Ctrl-G command in the selector to go to a letter without affecting it (e.g. "Ctrl-G b" would go to letter 'b'). o Added an addgroup selector to ease the arrival of new groups. o Strn's article scan/scoring is now present in trn. o ** Describe the universal selector once it settles down ** o Enabled trn to use both nntp and local news sources, either separately or at the same time. Create a .trn/access file to customize this (start with a copy of /access.def). o Changed the format of trn's option files. Trn will create a .trn/trnrc file for you using your old trn options as soon as you edit and save them using the on-line option editor. Once this happens, the old TRNINIT variable is ignored. o When you specify a news source in the active file, you can tell trn to keep a local copy of the server's active and newsgroups files, and either re-grab them at regular intervals (however often you like), update them with new information we glean while running, or leave them alone (which is useful for an NFS mounted active file). o Added a newsrc selector to choose among the news sources and newsrc options in your .trn/access file. o Alternately, use Ctrl-N and Ctrl-P in the newsgroup selector or newsgroup browser to change from news source to news source. o Added an on-line option editor (type '&' ). Use the search command (/erase) to find the option you're looking for. o Much improved xterm mouse handling now lets you define a "mouse bar" of buttons to press, as well as allowing you to click on the tree nodes in the article tree display. Use the option selector to turn it on and customize it. See the /INIT file for an example of how to make the mouse code conditional on your terminal type. You can even double-click in the selector to start reading and select a range with click-drag-release. o Enhanced the mime code so that trn now knows how to handle basic mime types, and farm out the ones it doesn't understand. !!Not finished yet!! o Use the 'a' (attachments) command to view an article's attachments, including a uuencoded picture in a picture group. Even works with multi-part pieces if you use 'a' on all the parts (in any order). Use ":a" to view a group of selected articles (handy from the selector). Of course, "::a" affects all unselected articles. o The header hiding code now hides more headers by default, and can un-hide any header (prior trns could only hide known header names plus all unknown headers in a group). o You can now specify a custom IP port for an NNTP connection in your .trn/access file or the NNTPSERVER variable. o A bargraph (for percent done) pops up on slow tasks (such as fetching the active file over a slow link). o Changed the default "auto arrows" (-A) to be more web- browser-like in the selectors. Set option "Auto Arrow Macros" to "old-style" if you like the old style better. o A client ("mini") inews is now included with trn that is compatible with other news readers and a bit more functional. o Macro writers: each selector has a different mode letter (see the %m discussion in the man page for a list), but there's now an easy way to write a macro that affects all selectors test the "general mode": %g=s. See the man page for the other general modes. o Fixed the type-ahead eating to never eat just part of a macro sequence (such as a keypad key or a mouse click). o Trn now use X-Newsgroups instead of Newsgroups in mailed replies. It also uses X-Also-Posted-To when Cc'ing people while posting. --- news/trn/Makefile | 108 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 96 insertions(+), 12 deletions(-) (limited to 'news/trn/Makefile') diff --git a/news/trn/Makefile b/news/trn/Makefile index d4324eedc92..b2dbde60e50 100644 --- a/news/trn/Makefile +++ b/news/trn/Makefile @@ -1,31 +1,115 @@ -# $NetBSD: Makefile,v 1.3 1999/08/18 09:08:10 agc Exp $ +# $NetBSD: Makefile,v 1.4 2000/02/16 18:47:15 wiz Exp $ # -DISTNAME= trn-3.6 +DISTNAME= trn4-test72 +PKGNAME= trn-4.test72 CATEGORIES= news -MASTER_SITES= ftp://ftp.wustl.edu/packages/news/readers/trn/ +MASTER_SITES= http://www.clari.net/~wayne/ -MAINTAINER= packages@netbsd.org - -BUILD_DEFS+= USE_INN +MAINTAINER= drankin@bohemians.lexington.ky.us +HOMEPAGE= http://www.clari.net/~wayne/ .include "../../mk/bsd.prefs.mk" -.if defined(USE_INN) && ${USE_INN} == YES -DEPENDS= inn-2.2:../inn -.else -DEPENDS= nntpclnt-1.6.1:../nntpclnt +# Normally, one or more of the following variables will be set inside +# of /etc/mk.conf before build time. Names of local hierarchies, e.g. +# at, aus, or de, or even smaller areas. Only changes a warning in +# inews. +TRN_LOCAL_ORG_DISTRIBUTION?= none +TRN_ORG_DISTRIBUTION?= none +TRN_CITY_DISTRIBUTION?= none +TRN_COUNTRY_DISTRIBUTION?= none +TRN_REGION_DISTRIBUTION?= none +TRN_CONTINENT_DISTRIBUTION?= none + +# TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting +# from right to left, that TRN will match to allow cancels, with 0 requiring +# a perfect match. For example, with TRN_HOSTBITS=3, x.y.z.com will match +# foo.y.z.com for the purposes of allowing cancels. +TRN_HOSTBITS?= 0 + +#TRN_ORGANIZATION defines the value for the "Organization" header in inews. +TRN_ORGANIZATION?= none + +# The following variables must be set for proper function, but TRN does +# not set sane default values due to the inherant dangers involved. +.if !defined(TRN_DOMAINNAME) + || !defined(TRN_NNTPSERVER) +IS_INTERACTIVE= yes .endif +USE_PERL5= yes + HAS_CONFIGURE= yes CONFIGURE_SCRIPT= Configure CONFIGURE_ENV= PREFIX=${PREFIX} -CONFIGURE_ARGS= -S +CONFIGURE_ARGS= -d -e -D bin=${PREFIX}/bin \ + -D binexp=${PREFIX}/bin \ + -D phost="`${CAT} ${WRKDIR}/.trn_domainname`" \ + -D citydist=${TRN_CITY_DISTRIBUTION} \ + -D cntrydist=${TRN_COUNTRY_DISTRIBUTION} \ + -D contdist=${TRN_CONTINENT_DISTRIBUTION} \ + -D filexp=${PREFIX}'/libdata/trn/filexp' \ + -D hostbits=${TRN_HOSTBITS} \ + -D installbin=${PREFIX}'/bin' \ + -D installinews=${PREFIX}'/libexec/trn/inews' \ + -D installmansrc=${PREFIX}'/man/man1' \ + -D installprivlib=${PREFIX}'/libdata/trn' \ + -D libpth=${PREFIX}'/lib /usr/lib' \ + -D locdist=${TRN_LOCAL_ORG_DISTRIBUTION} \ + -D mansrc=${PREFIX}'/man/man1' \ + -D mansrcexp=${PREFIX}'/man/man1' \ + -D mimecap=${PREFIX}'/etc/mimecap' \ + -D multistatedist=${TRN_REGION_DISTRIBUTION} \ + -D orgdist=${TRN_ORG_DISTRIBUTION} \ + -D orgname=${PREFIX}'/libdata/trn/organization' \ + -D perl=${PREFIX}'/bin/perl' \ + -D perlpath=${PREFIX}'/bin/perl' \ + -D prefix=${PREFIX} \ + -D prefixexp=${PREFIX} \ + -D privlib=${PREFIX}'/libdata/trn' \ + -D privlibexp=${PREFIX}'/libdata/trn' \ + -D servername=${PREFIX}'/libdata/trn/nntpserver' \ + -D d_nntp -U d_local -D libs=' ' -D usevfork=false +# -D inews=${PREFIX}'/libexec/trn/inews' \ +# -D useinews=${PREFIX}'/libexec/trn/inews' \ pre-configure: - @${CP} ${FILESDIR}/config.sh ${WRKSRC} + if [ "${TRN_DOMAINNAME}" = "" ]; then \ + ${ECHO} "TRN_DOMAINNAME must be set. This variable tells trn what hostname to" ;\ + ${ECHO} "place on the From: line during postings. You can:" ;\ + ${ECHO} "1. Choose a static hostname, such as your domain (which will match" ;\ + ${ECHO} " your sub-domain machines as well) and enter it here." ;\ + ${ECHO} "2. Specify just the domain portion (by starting the name with a '.')" ;\ + ${ECHO} " and your machine name will be computed at runtime and this domain" ;\ + ${ECHO} " appended to the end." ;\ + ${ECHO} "3. Enter just a '.' to have the machine AND domain computed at runtime." ;\ + ${ECHO} ;\ + ${ECHO} -n "Domainname: " ; \ + read TRN_DOMAINNAME ;\ + ${ECHO} ;\ + else \ + TRN_DOMAINNAME=${TRN_DOMAINNAME} ; \ + fi; \ + ${ECHO} -n $$TRN_DOMAINNAME > ${WRKDIR}/.trn_domainname + +pre-install: + @${MKDIR} ${PREFIX}/libexec/trn post-install: + @if [ "${TRN_NNTPSERVER}" = "" ]; then \ + ${ECHO} "TRN_NNTPSERVER must be set. This variable tells trn what hostname to" ;\ + ${ECHO} "use as the initial default NNTP server. After installation, this" ;\ + ${ECHO} "value can be changed by editing ${PREFIX}/libdata/trn/nntpserver" ;\ + ${ECHO} ;\ + ${ECHO} -n "NNTP server: " ; \ + read TRN_NNTPSERVER ; \ + ${ECHO} ;\ + else \ + TRN_NNTPSERVER=${TRN_NNTPSERVER} ; \ + fi; \ + ${ECHO} $$TRN_NNTPSERVER > ${PREFIX}/libdata/trn/nntpserver + @${ECHO} ${TRN_ORGANIZATION} > ${PREFIX}/libdata/trn/organization @${RM} -f ${PREFIX}/bin/rn ${PREFIX}/man/man1/rn.1 ${PREFIX}/man/man1/rn.1.gz @${LN} -s trn ${PREFIX}/bin/rn @${LN} -s trn.1 ${PREFIX}/man/man1/rn.1 -- cgit v1.2.3