[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / news / leafnode

File: [cvs.NetBSD.org] / pkgsrc / news / leafnode / Makefile (download)

Revision 1.48, Fri Sep 12 21:58:44 2014 UTC (6 years, 4 months ago) by shattered
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3
Changes since 1.47: +2 -4 lines

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.

# $NetBSD: Makefile,v 1.48 2014/09/12 21:58:44 shattered Exp $

DISTNAME=		leafnode-1.11.10
CATEGORIES=		news
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=leafnode/}
EXTRACT_SUFX=		.tar.bz2

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

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}

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
PKG_SUGGESTED_OPTIONS=	inet6

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

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--with-ipv6
.else
CONFIGURE_ARGS+=	--without-ipv6
.endif

TEST_TARGET=		check

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/leafnode
	${INSTALL_DATA} ${WRKSRC}/config.example 			\
				${DESTDIR}${PREFIX}/share/examples/leafnode
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/leafnode

	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/README-FQDN 		\
			${WRKSRC}/README-MAINTAINER			\
			${WRKSRC}/README-daemontools			\
				${DESTDIR}${PREFIX}/share/doc/leafnode

.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"