diff options
author | wiz <wiz@pkgsrc.org> | 2000-03-18 19:51:31 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2000-03-18 19:51:31 +0000 |
commit | 4cd86cc2fba60d29d82dcd11da6941697a974a9e (patch) | |
tree | 7aaecc0ccafd5eb92408be72c2a413d3b6911686 /news/trn/Makefile | |
parent | 1d2144d6ce396e0bf4e158d33d7c149adbbeab7d (diff) | |
download | pkgsrc-4cd86cc2fba60d29d82dcd11da6941697a974a9e.tar.gz |
Use nntpclnt or inn instead of trn's own inews (so that admins only have to
configure one inews). Also use 'share' instead of 'lib'. Pointed out and
cross-checked by Kimmo Suominen <kim@tac.nyc.ny.us>.
Diffstat (limited to 'news/trn/Makefile')
-rw-r--r-- | news/trn/Makefile | 98 |
1 files changed, 21 insertions, 77 deletions
diff --git a/news/trn/Makefile b/news/trn/Makefile index e923a92b434..5560393caa1 100644 --- a/news/trn/Makefile +++ b/news/trn/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2000/02/16 19:07:32 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2000/03/18 19:51:31 wiz Exp $ # DISTNAME= trn4-test72 @@ -6,37 +6,22 @@ PKGNAME= trn-4.72 CATEGORIES= news MASTER_SITES= http://www.clari.net/~wayne/ -MAINTAINER= drankin@bohemians.lexington.ky.us +MAINTAINER= packages@netbsd.org 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 +.endif -# 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 +.include "../../mk/bsd.prefs.mk" # 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 +TRN_HOSTBITS?= 0 USE_PERL5= yes @@ -45,72 +30,31 @@ CONFIGURE_SCRIPT= Configure CONFIGURE_ENV= PREFIX=${PREFIX} 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 phost=${PREFIX}'/etc/nntp/domainname' \ + -D filexp=${PREFIX}'/share/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 installprivlib=${PREFIX}'/share/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 orgname=${PREFIX}'/etc/nntp/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: - 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 + -D privlib=${PREFIX}'/share/trn' \ + -D privlibexp=${PREFIX}'/share/trn' \ + -D servername=${PREFIX}'/etc/nntp/server' \ + -D d_nntp -U d_local -D libs=' ' -D usevfork=false \ + -D inews=${PREFIX}'/bin/inews' \ + -D useinews=${PREFIX}'/bin/inews' 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 + @${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 |