pkgsrc/news/leafnode/Makefile

78 lines
2.2 KiB
Makefile
Raw Normal View History

2007-09-08 23:57:57 +02:00
# $NetBSD: Makefile,v 1.39 2007/09/08 21:57:58 jlam Exp $
Update to version 1.11.3 Changes: ### SECURITY BUGFIXES - Fetchnews did not detect timeouts while it was downloading an article header, which malicious upstream servers could exploit to mount a denial of service attack against the fetchnews client. See leafnode-SA-2005-02.txt. CVE Name: CAN-2005-1911 ### BUGFIXES - Bugfix sed expression in makesubst script. (Reported by Jeff Zacharias.) ### CHANGES - texpire now tags the message.id expired count with "message.id" rather than "total:" to avoid misleading the user who assumes that "total:" would have to be the sum of the group counts. See also the FAQ change below. SourceForge bug #1215453. - When debugmode and verbose mode are set, leafnode programs now print a warning to stdout that the user should check syslog.conf and the syslog output rather than the screen print for debugging and sleeps for three seconds. ### DOCUMENTATION - Add FAQ entry to explain discrepancies between texpire group counts and message.id expired articles counts. - Add FAQ entry to explain influence of Gnus' gnus-read-active-file setting on lost subscriptions, and extend stop fetchnews from unsubscribing FAQ. Debian bug #307685. - Drop FAQ entry on license issues as some parts of leafnode are in fact GPLd. - Drop FAQ entry on why old articles aren't posted, obsolete since 1.9.33. - INSTALL and INSTALL_de have been polished. - Add a hint that syslog.conf must be edited to config.example. - leafnode(8) mentions that LIST ACTIVE keeps an existing subscription fresh. CVS: ---------------------------------------------------------------------- ---------------------------------------------------------------------- distinfo CVS: ----------------------------------------------------------------------
2005-06-09 20:21:23 +02:00
DISTNAME= leafnode-1.11.3.rel
Update to 1.9.43: ============================================================================== * 1.9.43, 2003-09-04 ### INCOMPATIBLE CHANGE - In the traditional spool, newsgroups with all-numeric components show up with a - (minus, hyphen) prefixed to the number, the newsgroup example.1234 will be stored as /var/spool/news/example/-1234. It is believed this change does not cause troubles because news systems that offered the traditional spool have been incapable of providing news access, and because the count of news groups with such names is way below 0.1% on the news servers I have access to. The gain in functionality justifies the incompatibility. NOTE: this only affects newsreaders that directly access the spool. NNTP-based newsreaders will see no difference. ### BUGFIXES - Fix leafnode.8 manual pages (EN and DE languages) to explain 0 and negative values for expire/groupexpire. - Avoid premature abort (that causes .overview and groupinfo files to become stale) when the stdout becomes disconnected. Reported by Sytse van Slooten. - Make sure that texpire fixes the groupinfo lines of groups in "archive mode" (groupexpire -1). Reported by Sytse van Slooten. - Repair groupexpire 0 (= use global default, rather than expire immediately). Broken since 1.9.23. - Make sure that fetchnews complains when a timeout happens while reading newsgroups lists ("active file") or newsgroup descriptions. Found after a related report from Tim Daneliuk. - Use different fix for newsgroup names with all-numeric components that does not require two stat() calls in XOVER handling. Tracked down and reported by Rein Klazes. - Remove bogus error messages "article * is below/above the *-water mark" that occur when reading a group that fetchnews is fetching into. Reported by Rein Klazes. - Make sure XOVER related error messages don't show up in the NNTP client. ### CHANGES - fetchnews puts stdout into line buffered, or -- failing that -- unbuffered mode (Patch by Mark Brown, Debian maintainer). - leafnode processes warn (syslog and stderr) when a groupexpire is set to 0 (which means "use the default", which some users may not be aware of). ### DOCUMENTATION - Added FAQ item on running leafnode as nntps server. - Mention SuSEconfig difficulties with /etc/hosts in README-FQDN* - Clarify item #13 in INSTALL. ============================================================================== * 1.9.42, 2003-06-27 ### SECURITY RELEVANT BUGFIXES - Fix hang when trying to download an article that lacked mandatory headers. (Very old bug, recently found by Joshua Crawford) NOTE: this assertion that the bug is security relevant (denial of service) has been made after 1.9.42 release. ### BUGFIXES - Check lastreply() against NULL, in an effort to fix obscure sporadic and non-reproducable crashes on OpenBSD sparc64. (Reported by Bruno Rohee) - Fix bogus "Cannot open .../interesting.group/group.name for reading" when a group subscription has expired. (Reported by Andreas Muck) ### CHANGES - The ChangeLog file has been split, older parts (leafnode 1.9.31.rel and before) have moved to the "new" ChangeLog.old file. ============================================================================== * 1.9.41, 2003-05-22 ### BUGFIXES - Fix the "leafnode keeps fetching a group I've unsubscribed from long ago" bug that haunted leafnode since 1.9.18 at the latest and that was more prominent with the delaybody migration fixes of 1.9.33. Reported by Andreas Muck and Gerry Doris. - "make clean" no longer erases t.pcre_extract ### CHANGES - Add an EXPERIMENTAL feature, delaybody_in_situ. This may work around problems with particular newsreaders in delaybody mode. Do not rely on this feature for now, and do send feedback if you use it, regardless of whether it works or not. Defaults to off (compatible with previous versions). If you don't know what it is about, leave it off. - Some messages in fetchnews have been reworded to make them clearer and more helpful. ### PORTABIILTY - Find tcpd on OpenBSD at build time. Patch by Bruno Rohee. ============================================================================== * 1.9.40, 2003-05-08 ### BUGFIX - Leafnode no longer aborts when using the replacement snprintf function (FreeBSD) and is about to display a pseudo article.
2003-09-05 18:16:23 +02:00
PKGNAME= ${DISTNAME:S/.rel//}
PKGREVISION= 1
CATEGORIES= news
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=leafnode/}
EXTRACT_SUFX= .tar.bz2
2003-07-18 00:50:55 +02:00
MAINTAINER= cjep@NetBSD.org
2004-11-19 17:59:07 +01:00
HOMEPAGE= http://leafnode.sourceforge.net/
COMMENT= NNTP server for small (dialup) sites
CONFLICTS+= cyrus-imapd<2.2.10nb2
WRKSRC= ${WRKDIR}/${DISTNAME}
LEAFNODE_SPOOL?= /var/spool/leafnode
LEAFNODE_LOCKDIR?= /var/spool/lock/leafnode
LEAFNODE_CONFDIR?= ${PKG_SYSCONFDIR}/leafnode
# Default data dir, login and group are the same as used by inn
#
BUILD_DEFS+= LEAFNODE_DATA_DIR
PKG_GROUPS= ${LEAFNODE_GROUP}
PKG_USERS= ${LEAFNODE_USER}:${LEAFNODE_GROUP}
LEAFNODE_HOME?= ${INN_DATA_DIR}
PKG_GECOS.${LEAFNODE_USER}= Internet News
PKG_HOME.${LEAFNODE_USER}= ${LEAFNODE_DATA_DIR}
PKG_SHELL.${LEAFNODE_USER}= ${SH}
PKG_GROUPS_VARS+= LEAFNODE_GROUP
PKG_USERS_VARS+= LEAFNODE_USER
FILES_SUBST+= LEAFNODE_SPOOL=${LEAFNODE_SPOOL:Q}
FILES_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR:Q}
FILES_SUBST+= LEAFNODE_LOCKDIR=${LEAFNODE_LOCKDIR:Q}
FILES_SUBST+= LEAFNODE_HOME=${LEAFNODE_HOME:Q}
MESSAGE_SUBST+= LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
2007-09-08 23:57:57 +02:00
USE_FEATURES= snprintf vsnprintf
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-spooldir=${LEAFNODE_SPOOL:Q}
CONFIGURE_ARGS+= --with-lockfile=${LEAFNODE_LOCKDIR}/fetchnews.lck
CONFIGURE_ARGS+= --sysconfdir=${LEAFNODE_CONFDIR:Q}
CONFIGURE_ARGS+= --with-user=${LEAFNODE_USER:Q}
CONFIGURE_ARGS+= --with-group=${LEAFNODE_GROUP:Q}
USE_TOOLS+= gmake
PKG_OPTIONS_VAR= PKG_OPTIONS.leafnode
PKG_SUPPORTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --with-ipv6
.else
CONFIGURE_ARGS+= --without-ipv6
.endif
2006-04-08 08:56:05 +02:00
TEST_TARGET= check
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
${INSTALL_DATA} ${WRKSRC}/config.example \
${PREFIX}/share/examples/leafnode
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/leafnode
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-FQDN \
${WRKSRC}/README-MAINTAINER \
${WRKSRC}/README-daemontools \
${WRKSRC}/README.FIRST ${PREFIX}/share/doc/leafnode
2004-04-11 19:45:05 +02:00
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"