head	1.55;
access;
symbols
	pkgsrc-2026Q1:1.55.0.4
	pkgsrc-2026Q1-base:1.55
	pkgsrc-2025Q4:1.55.0.2
	pkgsrc-2025Q4-base:1.55
	pkgsrc-2025Q3:1.54.0.26
	pkgsrc-2025Q3-base:1.54
	pkgsrc-2025Q2:1.54.0.24
	pkgsrc-2025Q2-base:1.54
	pkgsrc-2025Q1:1.54.0.22
	pkgsrc-2025Q1-base:1.54
	pkgsrc-2024Q4:1.54.0.20
	pkgsrc-2024Q4-base:1.54
	pkgsrc-2024Q3:1.54.0.18
	pkgsrc-2024Q3-base:1.54
	pkgsrc-2024Q2:1.54.0.16
	pkgsrc-2024Q2-base:1.54
	pkgsrc-2024Q1:1.54.0.14
	pkgsrc-2024Q1-base:1.54
	pkgsrc-2023Q4:1.54.0.12
	pkgsrc-2023Q4-base:1.54
	pkgsrc-2023Q3:1.54.0.10
	pkgsrc-2023Q3-base:1.54
	pkgsrc-2023Q2:1.54.0.8
	pkgsrc-2023Q2-base:1.54
	pkgsrc-2023Q1:1.54.0.6
	pkgsrc-2023Q1-base:1.54
	pkgsrc-2022Q4:1.54.0.4
	pkgsrc-2022Q4-base:1.54
	pkgsrc-2022Q3:1.54.0.2
	pkgsrc-2022Q3-base:1.54
	pkgsrc-2022Q2:1.53.0.10
	pkgsrc-2022Q2-base:1.53
	pkgsrc-2022Q1:1.53.0.8
	pkgsrc-2022Q1-base:1.53
	pkgsrc-2021Q4:1.53.0.6
	pkgsrc-2021Q4-base:1.53
	pkgsrc-2021Q3:1.53.0.4
	pkgsrc-2021Q3-base:1.53
	pkgsrc-2021Q2:1.53.0.2
	pkgsrc-2021Q2-base:1.53
	pkgsrc-2021Q1:1.52.0.4
	pkgsrc-2021Q1-base:1.52
	pkgsrc-2020Q4:1.52.0.2
	pkgsrc-2020Q4-base:1.52
	pkgsrc-2020Q3:1.51.0.6
	pkgsrc-2020Q3-base:1.51
	pkgsrc-2020Q2:1.51.0.4
	pkgsrc-2020Q2-base:1.51
	pkgsrc-2020Q1:1.51.0.2
	pkgsrc-2020Q1-base:1.51
	pkgsrc-2019Q4:1.49.0.14
	pkgsrc-2019Q4-base:1.49
	pkgsrc-2019Q3:1.49.0.10
	pkgsrc-2019Q3-base:1.49
	pkgsrc-2019Q2:1.49.0.8
	pkgsrc-2019Q2-base:1.49
	pkgsrc-2019Q1:1.49.0.6
	pkgsrc-2019Q1-base:1.49
	pkgsrc-2018Q4:1.49.0.4
	pkgsrc-2018Q4-base:1.49
	pkgsrc-2018Q3:1.49.0.2
	pkgsrc-2018Q3-base:1.49
	pkgsrc-2018Q2:1.48.0.34
	pkgsrc-2018Q2-base:1.48
	pkgsrc-2018Q1:1.48.0.32
	pkgsrc-2018Q1-base:1.48
	pkgsrc-2017Q4:1.48.0.30
	pkgsrc-2017Q4-base:1.48
	pkgsrc-2017Q3:1.48.0.28
	pkgsrc-2017Q3-base:1.48
	pkgsrc-2017Q2:1.48.0.24
	pkgsrc-2017Q2-base:1.48
	pkgsrc-2017Q1:1.48.0.22
	pkgsrc-2017Q1-base:1.48
	pkgsrc-2016Q4:1.48.0.20
	pkgsrc-2016Q4-base:1.48
	pkgsrc-2016Q3:1.48.0.18
	pkgsrc-2016Q3-base:1.48
	pkgsrc-2016Q2:1.48.0.16
	pkgsrc-2016Q2-base:1.48
	pkgsrc-2016Q1:1.48.0.14
	pkgsrc-2016Q1-base:1.48
	pkgsrc-2015Q4:1.48.0.12
	pkgsrc-2015Q4-base:1.48
	pkgsrc-2015Q3:1.48.0.10
	pkgsrc-2015Q3-base:1.48
	pkgsrc-2015Q2:1.48.0.8
	pkgsrc-2015Q2-base:1.48
	pkgsrc-2015Q1:1.48.0.6
	pkgsrc-2015Q1-base:1.48
	pkgsrc-2014Q4:1.48.0.4
	pkgsrc-2014Q4-base:1.48
	pkgsrc-2014Q3:1.48.0.2
	pkgsrc-2014Q3-base:1.48
	pkgsrc-2014Q2:1.47.0.8
	pkgsrc-2014Q2-base:1.47
	pkgsrc-2014Q1:1.47.0.6
	pkgsrc-2014Q1-base:1.47
	pkgsrc-2013Q4:1.47.0.4
	pkgsrc-2013Q4-base:1.47
	pkgsrc-2013Q3:1.47.0.2
	pkgsrc-2013Q3-base:1.47
	pkgsrc-2013Q2:1.46.0.6
	pkgsrc-2013Q2-base:1.46
	pkgsrc-2013Q1:1.46.0.4
	pkgsrc-2013Q1-base:1.46
	pkgsrc-2012Q4:1.46.0.2
	pkgsrc-2012Q4-base:1.46
	pkgsrc-2012Q3:1.45.0.4
	pkgsrc-2012Q3-base:1.45
	pkgsrc-2012Q2:1.45.0.2
	pkgsrc-2012Q2-base:1.45
	pkgsrc-2012Q1:1.44.0.2
	pkgsrc-2012Q1-base:1.44
	pkgsrc-2011Q4:1.43.0.16
	pkgsrc-2011Q4-base:1.43
	pkgsrc-2011Q3:1.43.0.14
	pkgsrc-2011Q3-base:1.43
	pkgsrc-2011Q2:1.43.0.12
	pkgsrc-2011Q2-base:1.43
	pkgsrc-2011Q1:1.43.0.10
	pkgsrc-2011Q1-base:1.43
	pkgsrc-2010Q4:1.43.0.8
	pkgsrc-2010Q4-base:1.43
	pkgsrc-2010Q3:1.43.0.6
	pkgsrc-2010Q3-base:1.43
	pkgsrc-2010Q2:1.43.0.4
	pkgsrc-2010Q2-base:1.43
	pkgsrc-2010Q1:1.43.0.2
	pkgsrc-2010Q1-base:1.43
	pkgsrc-2009Q4:1.41.0.6
	pkgsrc-2009Q4-base:1.41
	pkgsrc-2009Q3:1.41.0.4
	pkgsrc-2009Q3-base:1.41
	pkgsrc-2009Q2:1.41.0.2
	pkgsrc-2009Q2-base:1.41
	pkgsrc-2009Q1:1.40.0.4
	pkgsrc-2009Q1-base:1.40
	pkgsrc-2008Q4:1.40.0.2
	pkgsrc-2008Q4-base:1.40
	pkgsrc-2008Q3:1.39.0.14
	pkgsrc-2008Q3-base:1.39
	cube-native-xorg:1.39.0.12
	cube-native-xorg-base:1.39
	pkgsrc-2008Q2:1.39.0.10
	pkgsrc-2008Q2-base:1.39
	cwrapper:1.39.0.8
	pkgsrc-2008Q1:1.39.0.6
	pkgsrc-2008Q1-base:1.39
	pkgsrc-2007Q4:1.39.0.4
	pkgsrc-2007Q4-base:1.39
	pkgsrc-2007Q3:1.39.0.2
	pkgsrc-2007Q3-base:1.39
	pkgsrc-2007Q2:1.35.0.6
	pkgsrc-2007Q2-base:1.35
	pkgsrc-2007Q1:1.35.0.4
	pkgsrc-2007Q1-base:1.35
	pkgsrc-2006Q4:1.35.0.2
	pkgsrc-2006Q4-base:1.35
	pkgsrc-2006Q3:1.34.0.4
	pkgsrc-2006Q3-base:1.34
	pkgsrc-2006Q2:1.34.0.2
	pkgsrc-2006Q2-base:1.34
	pkgsrc-2006Q1:1.32.0.2
	pkgsrc-2006Q1-base:1.32
	pkgsrc-2005Q4:1.29.0.2
	pkgsrc-2005Q4-base:1.29
	pkgsrc-2005Q3:1.27.0.2
	pkgsrc-2005Q3-base:1.27
	pkgsrc-2005Q2:1.26.0.2
	pkgsrc-2005Q2-base:1.26
	pkgsrc-2005Q1:1.22.0.2
	pkgsrc-2005Q1-base:1.22
	pkgsrc-2004Q4:1.21.0.2
	pkgsrc-2004Q4-base:1.21
	pkgsrc-2004Q3:1.19.0.4
	pkgsrc-2004Q3-base:1.19
	pkgsrc-2004Q2:1.19.0.2
	pkgsrc-2004Q2-base:1.19
	pkgsrc-2004Q1:1.15.0.2
	pkgsrc-2004Q1-base:1.15
	pkgsrc-2003Q4:1.11.0.2
	pkgsrc-2003Q4-base:1.11
	netbsd-1-6-1:1.5.0.2
	netbsd-1-6-1-base:1.5
	netbsd-1-6:1.1.1.1.0.4
	netbsd-1-6-RELEASE-base:1.1
	pkgviews:1.1.1.1.0.6
	pkgviews-base:1.1
	buildlink2-base:1.1.1.1
	buildlink2:1.1.1.1.0.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.55
date	2025.10.23.20.38.57;	author wiz;	state Exp;
branches;
next	1.54;
commitid	1V2hBZn9ypXaCJfG;

1.54
date	2022.07.15.12.37.55;	author micha;	state Exp;
branches;
next	1.53;
commitid	Lf326Ov1hW60qZLD;

1.53
date	2021.05.07.11.09.35;	author micha;	state Exp;
branches;
next	1.52;
commitid	prw5bxZQU3xJRcSC;

1.52
date	2020.11.10.12.03.59;	author micha;	state Exp;
branches;
next	1.51;
commitid	8L2tIgNsur6tTkvC;

1.51
date	2020.01.26.05.26.26;	author rillig;	state Exp;
branches;
next	1.50;
commitid	uxXvYG0sFCxwZ9UB;

1.50
date	2020.01.18.23.33.24;	author rillig;	state Exp;
branches;
next	1.49;
commitid	shGUwZfkr7sleeTB;

1.49
date	2018.09.04.11.00.48;	author wiz;	state Exp;
branches;
next	1.48;
commitid	vrjVbYfB0uWLcMQA;

1.48
date	2014.09.12.21.58.44;	author shattered;	state Exp;
branches;
next	1.47;
commitid	kEr0dJ8Q9iSay6Qx;

1.47
date	2013.07.12.10.45.01;	author jperkin;	state Exp;
branches;
next	1.46;
commitid	vVOw5ngQ2VNQxaXw;

1.46
date	2012.10.08.12.27.40;	author asau;	state Exp;
branches;
next	1.45;

1.45
date	2012.06.12.15.46.02;	author wiz;	state Exp;
branches;
next	1.44;

1.44
date	2012.03.03.00.13.48;	author wiz;	state Exp;
branches;
next	1.43;

1.43
date	2010.02.26.10.28.34;	author wiz;	state Exp;
branches;
next	1.42;

1.42
date	2010.01.21.23.32.10;	author heinz;	state Exp;
branches;
next	1.41;

1.41
date	2009.04.29.10.54.10;	author wiz;	state Exp;
branches;
next	1.40;

1.40
date	2008.10.25.13.19.10;	author obache;	state Exp;
branches;
next	1.39;

1.39
date	2007.09.08.21.57.58;	author jlam;	state Exp;
branches;
next	1.38;

1.38
date	2007.09.07.22.12.21;	author jlam;	state Exp;
branches;
next	1.37;

1.37
date	2007.09.06.21.51.53;	author jlam;	state Exp;
branches;
next	1.36;

1.36
date	2007.07.04.20.54.55;	author jlam;	state Exp;
branches;
next	1.35;

1.35
date	2006.10.15.20.06.59;	author schwarz;	state Exp;
branches;
next	1.34;

1.34
date	2006.04.23.00.12.41;	author jlam;	state Exp;
branches;
next	1.33;

1.33
date	2006.04.08.06.56.05;	author heinz;	state Exp;
branches;
next	1.32;

1.32
date	2006.03.14.01.14.31;	author jlam;	state Exp;
branches;
next	1.31;

1.31
date	2006.02.05.23.10.33;	author joerg;	state Exp;
branches;
next	1.30;

1.30
date	2005.12.29.06.22.05;	author jlam;	state Exp;
branches;
next	1.29;

1.29
date	2005.12.05.23.55.15;	author rillig;	state Exp;
branches;
next	1.28;

1.28
date	2005.12.05.20.50.50;	author rillig;	state Exp;
branches;
next	1.27;

1.27
date	2005.08.23.11.48.50;	author rillig;	state Exp;
branches;
next	1.26;

1.26
date	2005.06.09.18.21.23;	author salo;	state Exp;
branches;
next	1.25;

1.25
date	2005.05.22.20.08.26;	author jlam;	state Exp;
branches;
next	1.24;

1.24
date	2005.05.13.15.08.04;	author kim;	state Exp;
branches;
next	1.23;

1.23
date	2005.04.11.21.47.03;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	2005.01.11.04.34.08;	author kim;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	2004.11.19.16.59.07;	author wiz;	state Exp;
branches;
next	1.20;

1.20
date	2004.10.03.00.18.02;	author tv;	state Exp;
branches;
next	1.19;

1.19
date	2004.06.08.12.24.00;	author cjep;	state Exp;
branches;
next	1.18;

1.18
date	2004.05.23.16.01.49;	author jschauma;	state Exp;
branches;
next	1.17;

1.17
date	2004.05.05.15.25.40;	author cjep;	state Exp;
branches;
next	1.16;

1.16
date	2004.04.11.17.45.05;	author snj;	state Exp;
branches;
next	1.15;

1.15
date	2004.01.24.14.51.52;	author grant;	state Exp;
branches;
next	1.14;

1.14
date	2004.01.20.12.22.41;	author agc;	state Exp;
branches;
next	1.13;

1.13
date	2004.01.12.12.20.09;	author salo;	state Exp;
branches;
next	1.12;

1.12
date	2004.01.11.16.45.51;	author cjep;	state Exp;
branches;
next	1.11;

1.11
date	2003.09.05.16.16.23;	author wiz;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.17.22.52.08;	author grant;	state Exp;
branches;
next	1.9;

1.9
date	2003.05.05.12.22.40;	author cjep;	state Exp;
branches;
next	1.8;

1.8
date	2003.05.03.16.38.57;	author cjep;	state Exp;
branches;
next	1.7;

1.7
date	2003.03.29.12.42.08;	author jmmv;	state Exp;
branches;
next	1.6;

1.6
date	2003.02.26.14.00.36;	author cjep;	state Exp;
branches;
next	1.5;

1.5
date	2002.12.30.18.14.25;	author cjep;	state Exp;
branches;
next	1.4;

1.4
date	2002.12.08.12.44.13;	author cjep;	state Exp;
branches;
next	1.3;

1.3
date	2002.09.25.06.50.17;	author cjep;	state Exp;
branches;
next	1.2;

1.2
date	2002.09.22.10.35.48;	author cjep;	state Exp;
branches;
next	1.1;

1.1
date	2002.06.16.11.34.26;	author cjep;	state Exp;
branches
	1.1.1.1;
next	;

1.22.2.1
date	2005.05.14.06.05.13;	author snj;	state Exp;
branches;
next	1.22.2.2;

1.22.2.2
date	2005.06.13.05.36.28;	author snj;	state Exp;
branches;
next	;

1.1.1.1
date	2002.06.16.11.34.26;	author cjep;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	2002.06.16.11.34.26;	author jlam;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2002.06.23.18.57.33;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.55
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@# $NetBSD: Makefile,v 1.54 2022/07/15 12:37:55 micha Exp $

DISTNAME=		leafnode-1.12.0
PKGREVISION=		1
CATEGORIES=		news
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=leafnode/}

MAINTAINER=		micha@@NetBSD.org
HOMEPAGE=		https://leafnode.sourceforge.io/
COMMENT=		NNTP server for small (dialup) sites
LICENSE=		mit AND gnu-gpl-v2 AND gnu-lgpl-v2.1

CONFLICTS+=		cyrus-imapd<2.2.10nb2

USE_FEATURES=		snprintf vsnprintf

LEAFNODE_SPOOL?=	/var/spool/leafnode
LEAFNODE_LOCKDIR?=	/var/spool/lock/leafnode
LEAFNODE_CONFDIR?=	${PKG_SYSCONFDIR}/leafnode

# Configure INSTALL.pkgsrc (formerly displayed as MESSAGE)
SUBST_CLASSES+=		install
SUBST_STAGE.install=	post-configure
SUBST_MESSAGE.install=	Preparing INSTALL.pkgsrc file ...
SUBST_FILES.install=	${WRKDIR}/INSTALL.pkgsrc
SUBST_VARS.install=	PREFIX
SUBST_VARS.install+=	LEAFNODE_CONFDIR

# Default data dir, login and group are the same as used by inn
BUILD_DEFS+=		LEAFNODE_DATA_DIR INN_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}

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

.include "options.mk"

TEST_TARGET=		check

INSTALLATION_DIRS+=	share/examples/leafnode
INSTALLATION_DIRS+=	share/doc/leafnode

pre-configure:
	${CP} ${FILESDIR}/INSTALL.pkgsrc ${WRKDIR}

post-install:
	${INSTALL_DATA} ${WRKSRC}/config.example 			\
		${DESTDIR}${PREFIX}/share/examples/leafnode
	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-FQDN 		\
		${WRKSRC}/README-MAINTAINER				\
		${WRKSRC}/UNINSTALL-daemontools				\
		${DESTDIR}${PREFIX}/share/doc/leafnode
	${INSTALL_DATA} ${WRKDIR}/INSTALL.pkgsrc			\
		${DESTDIR}${PREFIX}/share/doc/leafnode/INSTALL.pkgsrc

.include "../../devel/pcre2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.54
log
@news/leafnode: Update to 1.12.0

- Moved pkgsrc options into separate file options.mk
- Modified pkgsrc patch to cover whole rule body again
- Removed WRKSRC setting (was explicitly set to default value)
- Replaced MESSAGE by ${PREFIX}/share/doc/leafnode/INSTALL.pkgsrc

==============================================================================
* 1.12.0, 2022-05-26

### CHANGES
- leafnode now requires the PCRE2 library instead of PCRE.
  PCRE2 has been around for a few years and is maintained,
  while PCRE is end of life, no longer supported,
  and is being phased out by distributions.
  See its home page, https://github.com/PhilipHazel/pcre2
  Fixes Debian Bug#1000110 reported by Matthew Vernon via Moritz Mühlenhoff.
- Documentation for running under daemontools/ucspi-tcp (tcpserver)
  has been removed, only UNINSTALL-daemontools remains as documentation.
- leafnode 1 is now distributed in gzip and xz formats.
  bzip2 will no longer be used because xz performs better overall.
- All files have been converted from ISO-8859-1 to UTF-8 encoding.
- Added leafnode@@.service and leafnode.socket as examples for how to launch
  the network-based leafnode listening on port 119.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2021/05/07 11:09:35 micha Exp $
d4 1
@


1.53
log
@news/leafnode: Update to 1.11.12

Removed patches that were merged upstream.
Take maintainership.

===========================================================================
* 1.11.12, 2021-03-28

### CHANGES
- The sourceforge.net hosting was reconfigured to serve HTTPS, thus, the
  leafnode website is now at https://leafnode.sourceforge.io/
- https://www.leafnode.org/ is now being served by an external nginx-based
  web server so it can use a proper TLS certificate.
- The GMANE links and last modified tag have been removed from the
  website.
- The web site has been updated to use newer https:// links where
  available.
- The mailing list has been moved to the leafnode.org domain. See README.

### BUGFIXES
- A configuration --without-ipv6 now compiles again.
  Patch by Michael Bäuerle.
- Leafnode recognizes an EEXIST error to rmdir() the same as ENOTEMPTY.
  Patch by Gary R. Schmidt.
- Leafnode no longer trashes the stack if it, while scanning the message.id
  directory, finds a directory with an all-numeric name that is 1000 or
  higher. Reported by Matthias Gerstner.

===========================================================================
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2020/11/10 12:03:59 micha Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.11.12
a5 1
EXTRACT_SUFX=		.tar.bz2
d14 1
a14 4
WRKSRC=			${WRKDIR}/${DISTNAME}

INSTALLATION_DIRS+=	share/examples/leafnode
INSTALLATION_DIRS+=	share/doc/leafnode
d20 8
a28 1
#
a46 2
USE_FEATURES=		snprintf vsnprintf

d55 1
a55 11
PKG_OPTIONS_VAR=	PKG_OPTIONS.leafnode
PKG_SUPPORTED_OPTIONS=	inet6
PKG_SUGGESTED_OPTIONS=	inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--with-ipv6
.else
CONFIGURE_ARGS+=	--without-ipv6
.endif
d59 6
d67 1
a67 1
				${DESTDIR}${PREFIX}/share/examples/leafnode
d69 5
a73 3
			${WRKSRC}/README-MAINTAINER			\
			${WRKSRC}/README-daemontools			\
				${DESTDIR}${PREFIX}/share/doc/leafnode
d75 1
a75 1
.include "../../devel/pcre/buildlink3.mk"
@


1.52
log
@news/leafnode: Backport patch from upcoming 1.11.12

Prevent stack overruns if /message.id contains filenames >= 1000.
Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2020/01/26 05:26:26 rillig Exp $
d3 1
a3 2
DISTNAME=		leafnode-1.11.11
PKGREVISION=		1
d8 1
a8 1
MAINTAINER=		pkgsrc-users@@NetBSD.org
@


1.51
log
@all: migrate some SourceForge homepage URLs back from https to http

https://mail-index.netbsd.org/pkgsrc-changes/2020/01/18/msg205146.html

In the above commit, the homepage URLs were migrated from http to https,
assuming that SourceForge would use the same host names for both http and
https connections. This assumption was wrong. Their documentation at
https://sourceforge.net/p/forge/documentation/Custom%20VHOSTs/ states
that the https URLs use the domain sourceforge.io instead.

To make the homepages from the above commit reachable again, pkglint has
been extended to check for reachable homepages. This check is only
enabled when the --network command line option is given.

Each of the homepages that referred to https://$project.sourceforge.net
before was migrated to https://$project.sourceforge.io (27), and if that
was not reachable, to the fallback URL http://$project.sourceforge.net
(163).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2020/01/18 23:33:24 rillig Exp $
d4 1
@


1.50
log
@all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2018/09/04 11:00:48 wiz Exp $
d9 1
a9 1
HOMEPAGE=		https://leafnode.sourceforge.net/
@


1.49
log
@leafnode: update to 1.11.11.

Updated provided by Michael Bäuerle via pkgsrc-wip.

* 1.11.11, 2015-08-25

### BUGFIXES
- The configfile parser now strips whitespace between a configuration
  parameter's value and a trailing comment. Found by Cecil Westerhof.
- The roff manual page sources now render proper hyphens (-), minus characters
  (\-) and en-dashes (\[en]) depending on their context. This is so that
  copying-and-pasting from the manual page works properly.
- The code that checks if the peer is local now properly deals with IPv4
  mapped IPv6 addresses.
@
text
@d1 1
a1 1
# $NetBSD$
d9 1
a9 1
HOMEPAGE=		http://leafnode.sourceforge.net/
@


1.48
log
@Update to 1.11.10 (2013).  Notable changes:

- Performance optimization, reported by Gary R. Schmidt.
- Fix a file descriptor leak in fetchnews.c's getbody_newno function
- When complaining that we are unable to switch the user ID, report the
  current real and effective user IDs to ease debugging.

- Leafnode now enables IPv6 support by default. Use --without-ipv6 to disable.
- Leafnode now supports detecting if a peer is in a local network also
  for IPv6 global addresses, providing that the host OS provides getifaddrs().
  This comprises Linux, NetBSD, FreeBSD, but not, for instance, Solaris 10.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2013/07/12 10:45:01 jperkin Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.11.10
d17 3
d26 1
a26 1
BUILD_DEFS+=		LEAFNODE_DATA_DIR
a68 1
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/leafnode
a70 2
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/leafnode

@


1.47
log
@Bump PKGREVISION of all packages which create users, to pick up change of
sysutils/user_* packages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2012/10/08 12:27:40 asau Exp $
d3 1
a3 2
DISTNAME=		leafnode-1.11.7
PKGREVISION=		2
a73 1
			${WRKSRC}/README.FIRST				\
@


1.46
log
@Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2012/06/12 15:46:02 wiz Exp $
d4 1
a4 1
PKGREVISION=		1
@


1.45
log
@Add inet6 to default suggested options. It's 2012.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2012/03/03 00:13:48 wiz Exp $
a13 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.44
log
@Recursive bump for pcre-8.30* (shlib major change)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2010/02/26 10:28:34 wiz Exp $
d56 1
@


1.43
log
@Reset maintainer for developers who gave back their commit bit.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2010/01/21 23:32:10 heinz Exp $
d4 1
@


1.42
log
@Added LICENSE information.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2009/04/29 10:54:10 wiz Exp $
d8 1
a8 1
MAINTAINER=		cjep@@NetBSD.org
@


1.41
log
@Update to 1.11.7, provided by Aleksey Cheusov in PR 41291.

* 1.11.7, 2009-04-20

### WORKAROUND
- fetchnews: If the LN_SUPPRESS_DATE environment variable is defined and set
  to any value or empty, fetchnews will not test the upstream server's time by
  means of the "DATE" NNTP command.
  This can be used to quench related log messages.

### BUGFIXES
- Fix logging if texpire unlinks files without further hardlinks from
  message.id/NNN/
- Fix potential segfault on libcs that do not catch NULL for %s formatting
  (several GNU libc versions do) when trying to retrieve delayed bodies from
  corrupt article headers. Pretend success, to purge article number from
  subscription file.  Bug reported by Chris Carr.
- Fix & change "noactive" so that it can be overridden by "fetchnews -f", as
  documented in config.example.
  Regression as side effect of 1.9.50 fix, reported by Jesse F. Hughes.
- Fix logged IP address in "connected to..., reply:" message when compiled
  without IPv6 support.
  Fixes Mandriva Bug #45605, reported by David W. Hodgins.
- Print connected to... to console as well at proper verbosity level, found
  by maintainer while debugging aforementioned bug.
- Only emit warning that no server with posting permission was found if that's
  actually needed. Reported by Christian Weiske.
- If corrupted articles had been detected, fetchnews -x NNN would not be able
  to re-fetch the said article because a 0-sized file remained in message.id,
  making fetchnews believe the article was in the spool.
  0-sized message.id/NNN/ files are now purged when checking if the article is
  already in the spool.
  Reported by Peter Bauernfeind. (de.comm.software.newsserver post, May 2008)
- Change interface enumeration to track incompatible NetBSD 5 changes.  The
  latter led to bogus connection refusals in NNTPD.  SourceForge Bug #2700756,
  by Aleksey Cheusov, fix suggested by Roy Marples.
- Add support for SIOCGIFALIAS where available (BSD) in order to obtain
  netmasks for 4.4BSD-style IP aliases.
  getifaddrs() has been suggested as well, but it isn't available everywhere,
  so we would have to keep the old code around anyways, and we can just fix
  that rather than introduce alternative code branches.

### BUGFIXES BACKPORTED FROM LEAFNODE 2
- lsort (used by make update) now detects and report errors.
- "make update" handles the lockfile properly now: it records its PID and
  removes the lock also in cases of failure.
- "make update" restores the old groupinfo file if lsort fails.
- "make update" now builds an up-to-date lsort first.
- "make update" now uses the configured NEWS_USER and _GROUP.
- "make update" is now a phony Makefile target, i. e. it will work even
  if there is a file "update" in the build directory.

### CHANGES
- When creating a Path: header (because the newsreader did not do that), use
  "not-for-mail" instead of NEWS_USER (usually "news") as the user component.
  This seems to resolve propagation issues with 2nd-hop-upstreams, as reported
  in Debian Bug#459980 by Michael Weitzel, with Universit
- When writing to client fails, log decoded errno, too.
  This can help debugging certain firewall misconfigurations more easily.
- Undoing a wordwrap in configure.ac allows for bootstrapping on Cygwin.
- Drop obsolete mysetvbuf().
- leafnode-version now supports an additional "-v" mode to print more
  information on the installation. The output then is similar, but not
  identical - due to different feature sets - to the way leafnode-2 prints it.

### DOCUMENTATION
- Add some comments to UNINSTALL-daemontools
- Put README-FQDN* under leafnode's license. Found to be in conflict with
  Debian's DFSG by Mark Brown.

==============================================================================
* 1.11.6, 2007-03-17

### BUGFIXES
- .site TLDs are refused in FQDN.
- apply patch from Georg Schwarz to fix compilation with SGI IDO cc.
- do not delete articles if the References: lines are malformatted.
  Reported by Adam Funk.
- support autoconf 2.60, fixing datarootdir-related warnings.
- do not log authentication success unless in verbose mode.

### DOCUMENTATION
- fix minor typos in README-FQDN.
- minor changes to INSTALL.

==============================================================================
* 1.11.5, 2006-04-09

### BUGFIXES
- Fix logging of invalid FQDH/FQDN.
- Do not trash delaybody download markers if the interesting.group/* files
  are writeable by NEWS_USER ("news") but owned by somebody else. Found
  debugging a problem described by David Aldred.
- Some syslog messages were still logged at LOG_DEBUG priority without
  debugmode set.
- Support noactive = 0. Reported by Rafal Maj, Debian Bug #329760.
- Support nodesc = 0.
- Keep non-expiring groups (negative groupexpire date) in active file even if
  they have expired upstream. Sourceforge Bug #1230256, Thomas Zajic.
- INSTALL: leafnode needs a "news" group as well. Found by Julien Sansonnens.
- Allow unterminated lines in regular files. Found by Ivo Maintz.
- Applyfilter unfolds headers before matching, to match fetchnews behavior.
- Applyfilter no longer unconditionally removes messages without body
  if delaybody is off. The interesting.groups/group.name file might still
  have pointers so that fetchnews will download the bodies later.

### CHANGES
- "killed nnn (<mess@@ge.id>), already fetched before" messages have been
  demoted to debug priority, to avoid syslog spamming with multiple upstream
  servers or after crashes.  Reported by Adam Funk.
- The RPM is now accompanied by a -debuginfo package.
- Build "grouplist" program in "make check".
- The fetchnews manual page states that -f is not to be used in cron jobs.
- The filtering documentation (applyfilter(8) man page and filters.example)
  was overhauled, at the suggestion of Michael R. McCarrey.
  Mike also courteously provided additional filter examples with documentation.

### WEBSITE
- http://www.leafnode.org/ is now served by SourceForge's VHOST service and
  thus serves the same content as http://leafnode.sourceforge.net/

==============================================================================
* 1.11.4, 2005-11-23

### BUGFIXES
- Skip server processing when posting articles fails, for instance,
  because of a protocol error or server disconnect/timeout.
  Bug found when analyzing Debian #318644.
- Do not mark the active for refetch when the failed server has "noread" set
  or fetchnews is in -P (post only) mode. Patch by Brian Sammon.

### COMPATIBILITY CHANGE
- GNU coreutils 5.92 are broken and can no longer create a missing directory
  with "mkdir -p missing/." Work around the bug. Reported by Michael Shigorin.

### DOCUMENTATION
- Switch FAQ.pdf formatting back to XSL stylesheets and RenderX XEP 4.4,
  now that a personal license for OpenSource documentation is available.
- Renamed all CAN-YYYY-NNNN to CVE-YYYY-NNNN in leafnode-SA-*.txt, ChangeLog,
  NEWS and OLDNEWS to chase the CVE database change of 2005-10-19.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2008/10/25 13:19:10 obache Exp $
d11 1
@


1.40
log
@Added DESTDIR support.
Fixes PR 38544.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2007/09/08 21:57:58 jlam Exp $
d3 1
a3 3
DISTNAME=		leafnode-1.11.3.rel
PKGNAME=		${DISTNAME:S/.rel//}
PKGREVISION=		1
@


1.39
log
@Convert to use the features framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2007/09/07 22:12:21 jlam Exp $
d14 2
d68 1
a68 1
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
d70 2
a71 2
				${PREFIX}/share/examples/leafnode
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/leafnode
d76 2
a77 1
			${WRKSRC}/README.FIRST ${PREFIX}/share/doc/leafnode
@


1.38
log
@Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2007/09/06 21:51:53 jlam Exp $
d42 2
a75 3
.if !empty(LOWER_OPSYS:Mirix5*)
.  include "../../pkgtools/libnbcompat/inplace.mk"	# {,v}snprintf()
.endif
@


1.37
log
@Convert all libnbcompat/buildlink3.mk references to inplace.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2007/07/04 20:54:55 jlam Exp $
a34 1
BUILD_DEFS+=		USE_INET6
d50 2
a51 1
.include "../../mk/bsd.prefs.mk"
d53 3
a55 1
.if defined(USE_INET6) && ${USE_INET6} == YES
@


1.36
log
@Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2006/10/15 20:06:59 schwarz Exp $
d73 1
a73 2
# needs snprintf(), vsnprintf()
. include "../../pkgtools/libnbcompat/buildlink3.mk"
@


1.35
log
@
added support for IRIX 5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2006/04/23 00:12:41 jlam Exp $
d24 1
a24 1
BUILD_DEFS+=		LEAFNODE_DATA_DIR LEAFNODE_GROUP LEAFNODE_USER
d33 2
@


1.34
log
@Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2006/04/08 06:56:05 heinz Exp $
d70 4
@


1.33
log
@Added appropriate TEST_TARGET.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2006/03/14 01:14:31 jlam Exp $
a24 1
PKG_USERS=		${LEAFNODE_USER}:${LEAFNODE_GROUP}::Internet\ News:${LEAFNODE_DATA_DIR}:${SH}
d26 1
d29 4
@


1.32
log
@Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2006/02/05 23:10:33 joerg Exp $
d53 2
@


1.31
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2005/12/29 06:22:05 jlam Exp $
a16 2
INSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL
DEINSTALL_EXTRA_TMPL+=	${.CURDIR}/DEINSTALL
@


1.30
log
@Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2005/12/05 23:55:15 rillig Exp $
d5 1
@


1.29
log
@Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2005/12/05 20:50:50 rillig Exp $
a15 1
USE_PKGINSTALL=		yes
@


1.28
log
@Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2005/08/23 11:48:50 rillig Exp $
d40 1
a40 1
CONFIGURE_ARGS+=	--with-spooldir=${LEAFNODE_SPOOL}
d42 3
a44 3
CONFIGURE_ARGS+=	--sysconfdir=${LEAFNODE_CONFDIR}
CONFIGURE_ARGS+=	--with-user=${LEAFNODE_USER}
CONFIGURE_ARGS+=	--with-group=${LEAFNODE_GROUP}
@


1.27
log
@The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/06/09 18:21:23 salo Exp $
d33 4
a36 4
FILES_SUBST+=		LEAFNODE_SPOOL=${LEAFNODE_SPOOL}
FILES_SUBST+=		LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
FILES_SUBST+=		LEAFNODE_LOCKDIR=${LEAFNODE_LOCKDIR}
FILES_SUBST+=		LEAFNODE_HOME=${LEAFNODE_HOME}
@


1.26
log
@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:
----------------------------------------------------------------------
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/05/22 20:08:26 jlam Exp $
d27 1
a27 1
PKG_USERS=		${LEAFNODE_USER}:${LEAFNODE_GROUP}::Internet\\ News:${LEAFNODE_DATA_DIR}:${SH}
@


1.25
log
@Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:

	USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/05/13 15:08:04 kim Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.11.2.rel
a4 1
PKGREVISION=		# empty
@


1.24
log
@Upgrade to 1.11.2:

* Fix segfault when timeout or connection reset encountered while
  article header is read.

* fetchnews will no longer re-fetch the active file for a server if it
  has been completely received even if fetching articles from this server
  encounters a problem.  Long-standing bug.  Debian bug #70052.

* fetchnews will now properly mark the active for complete re-fetch if
  it says so. Previously, it forgot the mark in some circumstances.  A
  problem fetching the active file or descriptions for a newly added
  server will now mark the active for re-fetch even if articles have
  successfully been retrieved from the same server.

* Fix use-after-free segfault when server dies while body is being
  received.

* Support quoted strings on the right hand side of configuration lines.

* Support IPv6 in fetchnews as well.

* In LIST ACTIVE/GROUP, keep group interesting in spite of being
  pseudo (which includes empty) as long as it is interesting. Avoids
  unsubscription of low-traffic groups that fall empty.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2005/04/11 21:47:03 tv Exp $
d46 1
a46 1
USE_GNU_TOOLS+=		make
@


1.23
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2005/01/11 04:34:08 kim Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.10.7.rel
d34 4
a37 4
FILES_SUBST+=	LEAFNODE_SPOOL=${LEAFNODE_SPOOL}
FILES_SUBST+=	LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
FILES_SUBST+=	LEAFNODE_LOCKDIR=${LEAFNODE_LOCKDIR}
FILES_SUBST+=	LEAFNODE_HOME=${LEAFNODE_HOME}
@


1.22
log
@Upgrade to leafnode 1.10.7:
- numerous bug fixes
- restores Xref: to XOVER (overview) data
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2004/11/19 16:59:07 wiz Exp $
a16 1
USE_BUILDLINK3=		yes
@


1.22.2.1
log
@Pullup ticket 502 - requested by Lubomir Sedlacik
security fix for leafnode

Revisions pulled up:
- pkgsrc/news/leafnode/Makefile		1.24
- pkgsrc/news/leafnode/distinfo		1.14
- pkgsrc/news/leafnode/patches/patch-aa	1.6

    Module Name:    pkgsrc
    Committed By:   kim
    Date:           Fri May 13 15:08:04 UTC 2005

    Modified Files:
            pkgsrc/news/leafnode: Makefile distinfo
            pkgsrc/news/leafnode/patches: patch-aa

    Log Message:
    Upgrade to 1.11.2:

    * Fix segfault when timeout or connection reset encountered while
      article header is read.

    * fetchnews will no longer re-fetch the active file for a server if it
      has been completely received even if fetching articles from this server
      encounters a problem.  Long-standing bug.  Debian bug #70052.

    * fetchnews will now properly mark the active for complete re-fetch if
      it says so. Previously, it forgot the mark in some circumstances.  A
      problem fetching the active file or descriptions for a newly added
      server will now mark the active for re-fetch even if articles have
      successfully been retrieved from the same server.

    * Fix use-after-free segfault when server dies while body is being
      received.

    * Support quoted strings on the right hand side of configuration lines.

    * Support IPv6 in fetchnews as well.

    * In LIST ACTIVE/GROUP, keep group interesting in spite of being
      pseudo (which includes empty) as long as it is interesting. Avoids
      unsubscription of low-traffic groups that fall empty.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/05/13 15:08:04 kim Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.11.2.rel
d35 4
a38 4
FILES_SUBST+=		LEAFNODE_SPOOL=${LEAFNODE_SPOOL}
FILES_SUBST+=		LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}
FILES_SUBST+=		LEAFNODE_LOCKDIR=${LEAFNODE_LOCKDIR}
FILES_SUBST+=		LEAFNODE_HOME=${LEAFNODE_HOME}
@


1.22.2.2
log
@Pullup ticket 550 - requested by Lubomir Sedlacik
security update for leafnode

Revisions pulled up:
- pkgsrc/news/leafnode/Makefile	1.26
- pkgsrc/news/leafnode/distinfo	1.15

    Module Name:    pkgsrc
    Committed By:   salo
    Date:           Thu Jun  9 18:21:23 UTC 2005

    Modified Files:
            pkgsrc/news/leafnode: Makefile distinfo

    Log Message:
    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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/06/09 18:21:23 salo Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.11.3.rel
d5 1
@


1.21
log
@Update HOMEPAGE.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2004/10/03 00:18:02 tv Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.9.52.rel
d5 1
a5 1
PKGREVISION=	1
d14 2
@


1.20
log
@Libtool fix for PR pkg/26633, and other issues.  Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2004/06/08 12:24:00 cjep Exp $
d11 1
a11 1
HOMEPAGE=		http://www.leafnode.org/
@


1.19
log
@Add USE_INET6 to BUILD_DEFS as these packages use it. Part of PR#25743 from
Georg Schwarz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2004/05/23 16:01:49 jschauma Exp $
d5 1
@


1.18
log
@Introduce and use three new variables:
LEAFNODE_DATA_DIR, LEAFNODE_USER and LEAFNODE_GROUP, to be used by leafnode
to specify the data dir, the user and the group, defaulting to 'news'.
Note: the default is the same as for inn.
Pointed out by Georg Schwarz in mail to tech-pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/05/05 15:25:40 cjep Exp $
d30 2
@


1.17
log
@Update to 1.9.52. Changes since previous version (1.9.49) include:

	* nntpd will now disable ln_log()'s sending its logging to the
	console (stderr usually), to prevent them from being seen by the
	newsreader, which then gets confused.
	* Usage fixes and usage info update
	* Fix memory leaks
 	* Other bug fixes

For a full listing, please see the ChangeLog supplied with the source
code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2004/04/11 17:45:05 snj Exp $
d23 1
a23 1
# Use news login and be compatible with inn package
d25 3
a27 3
BUILD_DEFS+=		INN_DATA_DIR
PKG_USERS=		news:news::Internet\\ News:${INN_DATA_DIR}:${SH}
PKG_GROUPS=		news
d40 2
@


1.16
log
@Convert to buildlink3.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2004/01/24 14:51:52 grant Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.9.49.rel
@


1.15
log
@replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2004/01/20 12:22:41 agc Exp $
d14 1
a14 1
USE_BUILDLINK2=		yes
d61 1
a61 1
.include "../../devel/pcre/buildlink2.mk"
@


1.14
log
@Move WRKSRC definition away from the first paragraph in a Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2004/01/12 12:20:09 salo Exp $
d40 1
a40 1
USE_GMAKE=		yes
@


1.13
log
@Do not include bsd.pkg.install.mk directly, set USE_PKGINSTALL instead.
(hi cjep!)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2004/01/11 16:45:51 cjep Exp $
a4 1
WRKSRC=			${WRKDIR}/${DISTNAME}
d13 1
@


1.12
log
@
Update of news/leafnode to 1.9.49.

Pkgsrc changes since previous version:
* Add the news user if necessary (and be compatible with the INN package).
* Use bsd.pkg.install.mk.

Vendor changes since previous version:
(see the Changelog for more details)

* Security fix. Do not lock up when the news header ends prematurely.
* Revise some memory handling and catch out-of-memory conditions.
* Fixes to syslog handling.
* Support XOVER without argument.
* Fix SEGV in fetchnews.c.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2003/09/05 16:16:23 wiz Exp $
d15 1
a61 1
.include "../../mk/bsd.pkg.install.mk"
@


1.11
log
@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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2003/07/17 22:52:08 grant Exp $
d3 1
a3 1
DISTNAME=		leafnode-1.9.43.rel
a7 1

d15 2
d22 13
a48 13
DEINSTALL_FILE=		${WRKDIR}/DEINSTALL
INSTALL_FILE=		${WRKDIR}/INSTALL

MESSAGE_SUBST+=		LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}

post-build:
	for F in DEINSTALL INSTALL; do					\
	${SED} 	-e 's#@@@@LEAFNODE_SPOOL@@@@#${LEAFNODE_SPOOL}#g' 		\
		-e 's#@@@@LEAFNODE_LOCKDIR@@@@#${LEAFNODE_LOCKDIR}#g'	\
		-e 's#@@@@LEAFNODE_CONFDIR@@@@#${LEAFNODE_CONFDIR}#g'	\
		-e 's#@@@@PREFIX@@@@#${PREFIX}#g'	\
		${PKGDIR}/$${F}	> ${WRKDIR}/$${F}; done

d53 6
a58 1
	PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
d61 1
@


1.10
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2003/05/05 12:22:40 cjep Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.39.rel
PKGNAME=		leafnode-1.9.39
@


1.9
log
@Update of news/leafnode to 1.9.39.

Changes since 1.9.38 from Changelog
   * nntpd.c: Fix: STAT <mess@@ge.id> returned OK in pseudogroups even
  when the wrong message- id has been requested.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2003/05/03 16:38:57 cjep Exp $
d11 1
a11 1
MAINTAINER=		cjep@@netbsd.org
@


1.8
log
@
Update of news/leafnode to 1.9.38.

Changes since 1.9.36:
	* Documentation fixes and updates.
	* Bug fixes (please see the change log).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2003/03/29 12:42:08 jmmv Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.38.rel
PKGNAME=		leafnode-1.9.38
@


1.7
log
@Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2003/02/26 14:00:36 cjep Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.36.rel
PKGNAME=		leafnode-1.9.36
@


1.6
log
@
Upgrade of news/leafnode to version 1.9.36.

Summary of changes since 1.9.31:
Bug and documentation fixes including:

* fetchnews_check_date.c: Portability: don't pass time_t to
        syslog(...%ld...), sizeof time_t != sizeof long on 64bit FreeBSD,
        reported by Christian Weisgerber <naddy@@mips.inka.de>.

* fetchnews_check_date.c: Check for overflow of time difference.
        Paranoia mode, someone needs to hose his clock by at least 68 years
        to run into this.

* miscutil.c, TODO: Change to spooldir at the end of initvars()
        (after changing uid/gid) to avoid barfing when run from
        misconfigured cron.

* pcre_extract.c: Fix abort when extracting string, introduced with
          previous strlcpy -> xstrlcpy commit.  Reported by Joshua Crawford
        <mortarn@@softhome.net> Add debug variable to conditional TEST part
        to use this code standalone.

* fetchnews.c: Several bug fixes

Please see the ChangeLog file in the source distribution for more details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2002/12/30 18:14:25 cjep Exp $
d5 1
a13 2

WRKSRC=			${WRKDIR}/${DISTNAME}
@


1.5
log
@Update of news/leafnode to 1.31.

Changes since 1.30:
* Portability fixes
* Documentation fixes
* Minor bug fixes (please see the ChangeLog file distributed with
  the leafnode source)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2002/12/08 12:44:13 cjep Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.31.rel
PKGNAME=		leafnode-1.9.31
@


1.4
log
@Update of news/leafnode to 1.9.30.

Summary of changes since 1.9.27 (please see the ChangeLog):
 * Add leafnode-version.
 * Various changes to fetchnews.c including:
   + In verbose mode, print if we're using the STAT
     command or the HEAD workaround.
   + nntpactive: cache current time, saves time() calls and gives a
     consistent 'age' for the newsgroups.
   + Avoid duplicate articles that raced from another server
     against our fetchnews from ending up in failed.postings. We
     assume that a server that refuses a posting with 441 435
     Duplicate can at the same time deliver it to STAT (or HEAD if
     the workaround is in effect).
   + Only touch active.read if the active has been successfully written.
   + Also apply only_groups_pcre when updating the active, to avoid
      presenting groups that are not really fetched.
   + Bugfix: cope with multiple upstreams that have the	same server name
     but different ports.
 * Various changes to nntpd.c including:
   + Point to syslog when reading the configuration fails.
   + Fix very subtle and intricate infinite loop bug
 * Various changes to nntputil.c. Blacklist STAT for "NNTP news cache."
   Whitelist NewsCache 1.1.*. Whitelist NewsCache 0.99.18, 0.99.19, 0.99.2?.
 * Changes to activutil.c including:
   + Check for duplicate newsgroups after reading, before writing and after
     merging the active file.
 * Fixs for SEGV problems to activutil.c and artutil.c
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2002/09/25 06:50:17 cjep Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.30.rel
PKGNAME=		leafnode-1.9.30
@


1.3
log
@Upgrade of Leafnode (news/leafnode) to version 1.9.27.

Differences to Leafnode version 1.9.26:

* Bug fixes and changes including:
	+ checkpeerlocal.c:
	  % Fix infinite loop problem when interface list is longer than
	    2 kB (reported by Brian Somers).
	  % Fix for non-IPv6 compilation on Solaris
	  % Fix compiler warnings

	+ Portability fixes for 64bit platforms in activutil.c, nntpd.c
	  and texpire.c

	+ nntpd.c: if allowstrangers is set, don't call checkpeerlocal
	  at all.k

(For more details, please see the Leafnode ChangeLog file)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/09/22 10:35:48 cjep Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.27.rel
PKGNAME=		leafnode-1.9.27
@


1.2
log
@Upgrade of Leafnode (news/leafnode) to version 1.9.26.

Differences to previous NetBSD package:

* Use devel/pcre rather than the one supplied with Leafnode.

Differences to Leafnode version 1.9.22:

* Bug fixes and changes including:
	+ No longer install lsort
	+ Merge in timeout_client patch from Jonathan Larmour
	+ Fix file descriptor leak in markdownload()
	+ No longer emit "400 Service discontinued" to clients.
	+ Drop connection when the upstream server runs NNTPcache 2.3.x
	+ More verbose POST reject messages.
	+ Fix two filtering bugs in fetchnews.
	+ Expire groups that are not in group.info
	+ Fix several memory leaks (e.g. in fetchnews.c, newsq.c &
		artutil.c)
	+ Fix possible overflow in nntpd.c
	+ Some speed improvements (e.g. in getline.c and mastring.c)
	+ Fix bogus error messages.
	+ Several documentation fixes.
	+ Various fixes from Leafnode 2.

(For more details, please see the Leafnode ChangeLog file)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2002/06/16 11:34:26 cjep Exp $
d3 2
a4 2
DISTNAME=		leafnode-1.9.26.rel
PKGNAME=		leafnode-1.9.26
a8 4
#MASTER_SITES=		ftp://wpxx02.toxi.uni-wuerzburg.de/pub/            \
#			ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
#			ftp://ftp.stikman.com/pub/leafnode/                \
#			${MASTER_SITE_SUNSITE:=system/news/transport/}
d10 1
a10 1
MAINTAINER=		packages@@netbsd.org
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d3 2
a4 1
DISTNAME=		leafnode-1.9.22
d6 7
a12 4
MASTER_SITES=		ftp://wpxx02.toxi.uni-wuerzburg.de/pub/            \
			ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
			ftp://ftp.stikman.com/pub/leafnode/                \
			${MASTER_SITE_SUNSITE:=system/news/transport/}
d18 3
a20 1
WRKSRC=			${WRKDIR}/${DISTNAME}.rel
d59 1
@


1.1.1.1
log
@Initial import of Leafnode 1.9.22 into the NetBSD packages collection
as news/leafnode.

Leafnode is a USENET software package designed for small sites, with a
few tens of readers and only a slow link to the net.

The work in this package is based on that of Ingolf Steinbach 
in PR#13830. wiz@@ made some suggestions as well. Thanks to both of them.
@
text
@@


1.1.1.1.2.1
log
@file Makefile was added on branch buildlink2 on 2002-06-23 18:57:33 +0000
@
text
@d1 53
@


1.1.1.1.2.2
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@a0 53
# $NetBSD: Makefile,v 1.1.1.1.2.1 2002/06/23 18:57:33 jlam Exp $

DISTNAME=		leafnode-1.9.22
CATEGORIES=		news
MASTER_SITES=		ftp://wpxx02.toxi.uni-wuerzburg.de/pub/            \
			ftp://ftp.karlsruhe.org/pub/news/servers/leafnode/ \
			ftp://ftp.stikman.com/pub/leafnode/                \
			${MASTER_SITE_SUNSITE:=system/news/transport/}

MAINTAINER=		packages@@netbsd.org
HOMEPAGE=		http://www.leafnode.org/
COMMENT=		NNTP server for small (dialup) sites

WRKSRC=			${WRKDIR}/${DISTNAME}.rel

LEAFNODE_SPOOL?=	/var/spool/leafnode
LEAFNODE_LOCKDIR?=	/var/spool/lock/leafnode
LEAFNODE_CONFDIR?=	${PKG_SYSCONFDIR}/leafnode

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-spooldir=${LEAFNODE_SPOOL}
CONFIGURE_ARGS+=	--with-lockfile=${LEAFNODE_LOCKDIR}/fetchnews.lck
CONFIGURE_ARGS+=	--sysconfdir=${LEAFNODE_CONFDIR}
USE_GMAKE=		yes

.include "../../mk/bsd.prefs.mk"

.if defined(USE_INET6) && ${USE_INET6} == YES
CONFIGURE_ARGS+=	--with-ipv6
.else
CONFIGURE_ARGS+=	--without-ipv6
.endif

DEINSTALL_FILE=		${WRKDIR}/DEINSTALL
INSTALL_FILE=		${WRKDIR}/INSTALL

MESSAGE_SUBST+=		LEAFNODE_CONFDIR=${LEAFNODE_CONFDIR}

post-build:
	for F in DEINSTALL INSTALL; do					\
	${SED} 	-e 's#@@@@LEAFNODE_SPOOL@@@@#${LEAFNODE_SPOOL}#g' 		\
		-e 's#@@@@LEAFNODE_LOCKDIR@@@@#${LEAFNODE_LOCKDIR}#g'	\
		-e 's#@@@@LEAFNODE_CONFDIR@@@@#${LEAFNODE_CONFDIR}#g'	\
		-e 's#@@@@PREFIX@@@@#${PREFIX}#g'	\
		${PKGDIR}/$${F}	> ${WRKDIR}/$${F}; done

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
	${INSTALL_DATA} ${WRKSRC}/config.example 			\
				${PREFIX}/share/examples/leafnode
	PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL

.include "../../mk/bsd.pkg.mk"
@
