pkgsrc/news/inn/Makefile

90 lines
2.5 KiB
Makefile
Raw Normal View History

2001-10-20 19:31:44 +02:00
# $NetBSD: Makefile,v 1.31 2001/10/20 17:31:44 veego Exp $
Update "inn" package to version 2.3.2. Changes since version 2.3.1: - innxmit can again handle regular filenames as input as well as storage API tokens (allowing it to be used to import an old traditional spool). - Several problems with tagged-hash history files have been fixed thanks to the debugging efforts of Andrew Gierth and Sang-yong Suh. - A very long-standing (since INN 1.0!) NNTP protocol bug in nnrpd was fixed. The response to an ARTICLE command retrieving a message by message ID should have the message ID as the third word of the response, not the fourth. Fixing this is reported to *possibly* cause problems with some Netscape browsers, but other news servers correctly follow the protocol. - Some serious performance problems with expiration of tradspool should now be at least somewhat alleviated. tradspool and timehash now know how to output file names for removal rather than tokens, and fastrm's ability to remove regular files has been restored. This should bring expiration times for tradspool back to within a factor of two of pre-storage-API expiration times. - An item that was actually changed in 2.3.0 but wasn't noted in NEWS when it should have been: Users can no longer post articles containing Approved: headers to moderated groups by default; they must be specifically given that permission with the access: parameter in readers.conf. See the man page for more details. - Added a sample subscriptions file and documentation for it and innmail. The changes required for this update were contributed by Bernd Ernesti in PR pkg/13299.
2001-07-10 18:02:12 +02:00
DISTNAME= inn-2.3.2
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/
2000-02-28 00:04:23 +01:00
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/
Update "inn" package to version 2.3.2. Changes since version 2.3.1: - innxmit can again handle regular filenames as input as well as storage API tokens (allowing it to be used to import an old traditional spool). - Several problems with tagged-hash history files have been fixed thanks to the debugging efforts of Andrew Gierth and Sang-yong Suh. - A very long-standing (since INN 1.0!) NNTP protocol bug in nnrpd was fixed. The response to an ARTICLE command retrieving a message by message ID should have the message ID as the third word of the response, not the fourth. Fixing this is reported to *possibly* cause problems with some Netscape browsers, but other news servers correctly follow the protocol. - Some serious performance problems with expiration of tradspool should now be at least somewhat alleviated. tradspool and timehash now know how to output file names for removal rather than tokens, and fastrm's ability to remove regular files has been restored. This should bring expiration times for tradspool back to within a factor of two of pre-storage-API expiration times. - An item that was actually changed in 2.3.0 but wasn't noted in NEWS when it should have been: Users can no longer post articles containing Approved: headers to moderated groups by default; they must be specifically given that permission with the access: parameter in readers.conf. See the man page for more details. - Added a sample subscriptions file and documentation for it and innmail. The changes required for this update were contributed by Bernd Ernesti in PR pkg/13299.
2001-07-10 18:02:12 +02:00
PATCHFILES= inn-2.3.2-v6-20010607.diff.gz
PATCH_DIST_STRIP= -p1
INN_DATA_DIR?= /var/news
USE_PERL5= YES
HAS_CONFIGURE= YES
CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} --prefix=${PREFIX}/inn \
--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_DATA_DIR}/spool
CONFIGURE_ENV+= _PATH_PERL=${PERL5}
.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
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
BUILD_DEFS+= INN_DATA_DIR
post-build:
${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
-e 's#@@PREFIX@@#${PREFIX}#g' \
${FILESDIR}/innd.sh >${WRKDIR}/innd.sh
.for FILE in DEINSTALL INSTALL
${SED} -e 's#@@INN_DATA_DIR@@#${INN_DATA_DIR}#g' \
${PKGDIR}/${FILE} >${WRKDIR}/${FILE}
.endfor
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
1998-09-17 17:39:53 +02:00
pre-install:
2001-10-20 19:31:44 +02:00
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} ${PREFIX}/share/examples/inn
for FILE in `ls -1 ${WRKSRC}/samples/* | \
${EGREP} -v '(Makefile|.*\.(in|orig)$$)'`; do \
${INSTALL_DATA} $$FILE ${PREFIX}/share/examples/inn; \
done
cd ${WRKSRC}/site && \
2001-01-26 06:21:43 +01:00
${INSTALL_SCRIPT} ${WRKDIR}/innd.sh ${PREFIX}/etc/rc.d/innd
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"