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

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

Revision 1.41, Wed Aug 19 10:18:26 2015 UTC (5 years, 6 months ago) by leot
Branch: MAIN
CVS Tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.40: +3 -4 lines

Update news/trn to trn-4.77. Patches from Dario Niedermann in PR pkg/50154

pkgsrc changes:
- patches/patch-a[ab] are no longer needed

Changes:
- Added IPv6 support to get_tcp_socket() using a ever-so-slightly-tweaked
  patch from Olaf 'Rhialto' Seibert.
- Misc bug fixes and improvements

# $NetBSD: Makefile,v 1.41 2015/08/19 10:18:26 leot Exp $

DISTNAME=		trn-4.0-test77
PKGNAME=		trn-4.77
CATEGORIES=		news
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=trn/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://trn.sourceforge.net/
COMMENT=		Threaded version of rn, the classic news reader
LICENSE=		trn-license

PKG_SYSCONFSUBDIR=	nntp

.include "options.mk"

# TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting
# from right to left, that TRN will match to allow cancels, with 0 requiring
# a perfect match.  For example, with TRN_HOSTBITS=3, x.y.z.com will match
# foo.y.z.com for the purposes of allowing cancels.
TRN_HOSTBITS?=		0

HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	./Configure
CONFIGURE_ENV+=		PREFIX=${PREFIX:Q}
USE_TOOLS+=		awk basename cat cp diff echo egrep expr grep mkdir mv
USE_TOOLS+=		perl:run rm sed tail tr yacc
CONFIGURE_ENV+=		TOOLS_AWK=${TOOLS_AWK:Q}
CONFIGURE_ENV+=		TOOLS_BASENAME=${TOOLS_BASENAME:Q}
CONFIGURE_ENV+=		TOOLS_CAT=${TOOLS_CAT:Q}
CONFIGURE_ENV+=		TOOLS_CP=${TOOLS_CP:Q}
CONFIGURE_ENV+=		TOOLS_DIFF=${TOOLS_DIFF:Q}
CONFIGURE_ENV+=		TOOLS_ECHO=${TOOLS_ECHO:Q}
CONFIGURE_ENV+=		TOOLS_EGREP=${TOOLS_EGREP:Q}
CONFIGURE_ENV+=		TOOLS_EXPR=${TOOLS_EXPR:Q}
CONFIGURE_ENV+=		TOOLS_GREP=${TOOLS_GREP:Q}
CONFIGURE_ENV+=		TOOLS_MKDIR=${TOOLS_MKDIR:Q}
CONFIGURE_ENV+=		TOOLS_MV=${TOOLS_MV:Q}
CONFIGURE_ENV+=		TOOLS_RM=${TOOLS_RM:Q}
CONFIGURE_ENV+=		TOOLS_SED=${TOOLS_SED:Q}
CONFIGURE_ENV+=		TOOLS_TAIL=${TOOLS_TAIL:Q}
CONFIGURE_ENV+=		TOOLS_TR=${TOOLS_TR:Q}
CONFIGURE_ARGS+=	-d -e -D bin=${PREFIX:Q}/bin \
			-D binexp=${PREFIX:Q}/bin \
			-D phost=${PKG_SYSCONFDIR}'/domainname' \
			-D filexp=${PREFIX:Q}'/share/trn/filexp' \
			-D hostbits=${TRN_HOSTBITS:Q} \
			-D installbin=${DESTDIR:Q}${PREFIX:Q}'/bin' \
			-D installmansrc=${DESTDIR:Q}${PREFIX:Q}'/man/man1' \
			-D installprivlib=${DESTDIR:Q}${PREFIX:Q}'/share/trn' \
			-D libpth=${PREFIX:Q}'/lib /usr/lib' \
			-D mansrc=${PREFIX:Q}/${PKGMANDIR:Q}'/man1' \
			-D mansrcexp=${PREFIX:Q}/${PKGMANDIR:Q}'/man1' \
			-D mimecap=${PREFIX:Q}'/etc/mimecap' \
			-D orgname=${PKG_SYSCONFDIR}'/organization' \
			-D perl=${PERL5:Q} \
			-D perlpath=${PERL5:Q} \
			-D prefix=${PREFIX:Q} \
			-D prefixexp=${PREFIX:Q} \
			-D privlib=${PREFIX:Q}'/share/trn' \
			-D privlibexp=${PREFIX:Q}'/share/trn' \
			-D servername=${PKG_SYSCONFDIR}'/server' \
			-D d_nntp \
			-U d_local \
			-D libs=' ' \
			-D usevfork=false \
			-D inews=${PREFIX:Q}'/bin/inews' \
			-D useinews=${PREFIX:Q}'/bin/inews'

post-install:
	@${RM} -f ${DESTDIR}${PREFIX}/bin/rn ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1.gz
	@${LN} -s trn ${DESTDIR}${PREFIX}/bin/rn
	@${LN} -s trn.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1

SUBST_CLASSES+=		pipe2
SUBST_STAGE.pipe2=	pre-configure
SUBST_FILES.pipe2=	filter.c
SUBST_SED.pipe2+=	-e 's|pipe2|trn_pipe2|g'

INSTALLATION_DIRS+=	share/trn

.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"