summaryrefslogtreecommitdiffstats
path: root/news/nntp/Makefile
blob: a1d986745882b73c1f0940b186ce10f4273805bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:	nntp
# Version required:	t5
# Date created:		29 September 1994
# Whom:			adam
#
# $FreeBSD$
#

DISTNAME=	nntp.1.5.12.2
PKGNAME=	nntp-1.5.12.2
CATEGORIES=	news
MASTER_SITES=	ftp://ftp.academ.com/pub/nntp/server/

PATCH_SITES=    ftp://ftp.lan-ks.de/pub/c-news/ \
		ftp://ftp.dinoex.org/pub/c-news/
PATCHFILES=     nntp-patch-y2k

MAINTAINER=	adam@veda.is

BUILD_DEPENDS=	${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/news/cnews

NO_WRKSUBDIR=	yes
MAN1=		nntpxmit.1
MAN8=		nntpd.8c acttimes.8c
PLIST=		${WRKDIR}/.PLIST.sed

MODIFY=		conf.h Makefile

NEWSBIN?=	${PREFIX}/news/cnewsbin
NEWSCTL?=	${PREFIX}/news/lib
NEWSARTS?=	/var/news
NEWSOV?=	/var/news/over.view

post-extract:
	@${CP} ${WRKSRC}/conf.h.dist ${WRKSRC}/conf.h

pre-configure:
.for i in ${MODIFY}
	@${MV} ${WRKSRC}/${i} ${WRKSRC}/${i}.sed
	${SED} \
		-e "s=/usr/local/news/lib/bin/config=${NEWSBIN}/config=" \
		-e "s=/usr/local/news/cnewsbin=${NEWSBIN}=" \
		-e "s=/usr/local/news/lib=${NEWSCTL}=" \
		-e "s=/var/news/over.view=${NEWSOV}=" \
		-e "s=/var/news=${NEWSARTS}=" \
		-e "s=/usr/local/bin=${PREFIX}/bin=" \
		-e "s=/usr/local/sbin=${PREFIX}/sbin=" \
		-e "s=/usr/local/man=${PREFIX}/man=" \
		${WRKSRC}/${i}.sed >${WRKSRC}/${i}
.endfor
	@${SED} \
		-e "s=news/cnewsbin=${NEWSBIN:S=${PREFIX}/==}=" \
		${PKGDIR}/PLIST >${PLIST}

post-install:
	${INSTALL_DATA} ${WRKSRC}/overview.fmt ${NEWSCTL}/overview.fmt

.include <bsd.port.mk>
OpenPOWER on IntegriCloud