pkgsrc/news/inn/Makefile
tron 7c841d0c4b Update "inn" package to version 2.3.4. Changes since version 2.3.3:
- LIST ACTIVE no longer returns data when given a single group argument
  if the client is not authorized to read that group.
- XHDR and XPAT weren't correctly parsing article headers, resulting in
  searches for the header "newsgroup" matching the header "newsgroups".
- Made CNFS more robust against crashes by actually syncing the cycbuff
  headers to disk as was originally intended.  Fixed a memory leak in
  the tradspool code.
- Two bugs in pgpverify when using GnuPG were fixed: it now correctly
  checks for gpgv (rather than pgp) when told to use GnuPG and expects
  the keyring to be pubring.gpg (not pubring.pgp).
- Substantial updates to the sample provided control.ctl file.
- Compilation fixes with Perl 5.8.0, BerkeleyDB 4.x, current versions of
  Linux (including with large file support), and Tru64.  inndf fixes for
  ReiserFS.
- Various bugs in the header handling in nnrpd have been fixed,
  including hangs when using virtual domains and improper processing of
  folded headers under certain circumstances.
- Other minor bug fixes and documentation improvements.

While INN 2.3.4 is not the latest officially released version it is the
latest one for which an IPv6 patch is available.
2003-03-23 11:07:15 +00:00

118 lines
3.3 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2003/03/23 11:07:15 tron Exp $
DISTNAME= inn-2.3.4
CATEGORIES= news
MASTER_SITES= ftp://ftp.isc.org/isc/inn/ \
ftp://ftp.sunet.se/pub/news/nntp/inn/ \
ftp://ftp.fu-berlin.de/unix/news/inn/
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.isc.org/inn.html
COMMENT= the public release of InterNet News (INN)
CONFLICTS+= nntpclnt-[0-9]*
PATCH_SITES= ftp://ftp.north.ad.jp/pub/IPv6/INN/
PATCHFILES= inn-2.3.4-v6-20030201.diff.gz
PATCH_DIST_STRIP= -p1
INN_DATA_DIR?= /var/news
INN_SPOOL?= ${INN_DATA_DIR}/spool
BUILD_DEFS+= INN_DATA_DIR
FILES_SUBST+= INN_DATA_DIR=${INN_DATA_DIR}
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
GNU_CONFIGURE_PREFIX= ${PREFIX}/inn
CONFIGURE_ARGS+= --enable-setgid-inews \
--enable-uucp-rnews \
--mandir=${PREFIX}/man \
--with-perl --with-tmp-path=${INN_DATA_DIR}/tmp \
--with-db-dir=${INN_DATA_DIR}/db \
--with-etc-dir=${INN_DATA_DIR}/etc \
--with-log-dir=${INN_DATA_DIR}/log \
--with-run-dir=${INN_DATA_DIR}/run \
--with-spool-dir=${INN_SPOOL}
CONFIGURE_ENV+= _PATH_PERL=${PERL5}
PKG_USERS= news:news::Internet\\ News:${INN_DATA_DIR}:${SH}
PKG_GROUPS= news
PKG_SYSCONFDIR.inn= ${INN_DATA_DIR}/etc
EXAMPLEDIR= ${PREFIX}/share/examples/inn
INN_DATADIRS= db etc log log/OLD run spool tmp
INN_SPOOLDIRS= archive articles overview incoming incoming/bad \
outgoing uniover innfeed
OWN_DIRS= ${PREFIX}/etc/nntp
OWN_DIRS_PERMS= ${INN_DATA_DIR} news news 0775
.for DIR in ${INN_DATADIRS}
MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/${DIR} news news 0775
.endfor
.for DIR in ${INN_SPOOLDIRS}
MAKE_DIRS_PERMS+= ${INN_DATA_DIR}/spool/${DIR} news news 0775
.endfor
CFILES= actsync.cfg actsync.ign buffindexed.conf \
control.ctl cycbuff.conf distrib.pats \
expire.ctl incoming.conf inn.conf innfeed.conf \
innreport.conf innwatch.ctl moderators \
motd.news news2mail.cf newsfeeds nnrpd.track \
nntpsend.ctl ovdb.conf overview.fmt passwd.nntp \
radius.conf readers.conf sasl.conf storage.conf
.for FILE in ${CFILES}
CONF_FILES_PERMS+= ${EXAMPLEDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \
news news 0664
.endfor
RCD_SCRIPTS= innd
.include "../../mk/bsd.prefs.mk"
# IPv6 support
.if defined(USE_INET6) && ${USE_INET6} == YES
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --with-sendmail=/usr/lib/sendmail
.else
CONFIGURE_ARGS+= --with-sendmail=/usr/sbin/sendmail
.endif
.if (${MACHINE_ARCH} == arm32)
. include "../../lang/gcc/buildlink2.mk"
.endif
post-patch:
${RM} -f ${WRKSRC}/samples/inn.conf.in.orig_dist
post-build:
for DIR in backends expire frontends innd innfeed lib nnrpd \
storage; do \
${SED} -e 's#-b .OLD##' -e 's#-G#-g#' -e 's#-O#-o#' \
${WRKSRC}/$$DIR/Makefile \
> ${WRKSRC}/$$DIR/Makefile.patch; \
${MV} ${WRKSRC}/$$DIR/Makefile.patch \
${WRKSRC}/$$DIR/Makefile; \
done
pre-install:
for DIR in ${INN_DATA_DIR} ${PREFIX}/etc/nntp ${PREFIX}/inn; do \
${INSTALL_DATA_DIR} $$DIR; \
done
post-install:
${RM} -f ${PREFIX}/bin/inews
${LN} -s ../inn/bin/inews ${PREFIX}/bin/inews
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
for FILE in `ls -1 ${WRKSRC}/samples/* | \
${EGREP} -v '(Makefile|.*\.(in|orig)$$)'`; do \
${INSTALL_DATA} $$FILE ${EXAMPLEDIR}; \
done
.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"