summaryrefslogtreecommitdiffstats
path: root/news/cnews/Makefile
blob: b2baa1d9b6af45da5cdc1e7bc9efb7602499d627 (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
# New ports collection makefile for:	cnews
# Version required:	940927
# Date created:		28 September 1994
# Whom:			adam
#
# $Id: Makefile,v 1.9 1995/04/24 09:15:30 asami Exp $
#

DISTNAME=	cnews
PKGNAME=	cnews-cr.e
CATEGORIES+=	news
MASTER_SITES=	ftp://ftp.zoo.toronto.edu/pub/
EXTRACT_SUFX=	.tar.Z

WRKSRC=		${WRKDIR}
MAKEFILE=	makefile

NEWSSPOOL=	${PREFIX}/newsspool
NEWSBIN=	${PREFIX}/libexec/news
NEWSLIB=	${PREFIX}/lib/news
MANDIR=		${PREFIX}/man

do-install:
	cp ${WRKSRC}/libdbz/dbz.h ${PREFIX}/include
	cp ${WRKSRC}/libcnews.a ${PREFIX}/lib
	mkdir -p ${NEWSSPOOL}
	-ln -s ${NEWSSPOOL} /var/news
	mkdir -p ${NEWSBIN} ${NEWSLIB}
	chown news.news ${NEWSSPOOL} ${NEWSLIB}
	chown bin.bin ${NEWSBIN}
	cd ${WRKSRC}; \
		echo ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install | \
		su -m bin
	cd ${WRKSRC}; \
		echo ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} setup | \
		su -m news
	cd ${WRKSRC}; \
		echo ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ui readpostcheck | \
		su -m bin
	chown news.news ${NEWSBIN}/input/newsspool
	chmod 6755 ${NEWSBIN}/input/newsspool
	mkdir -p ${MANDIR}/man1 ${MANDIR}/man5 ${MANDIR}/man8
	install -o bin -g bin -m 444 ${WRKSRC}/man/*.1* ${MANDIR}/man1
	install -o bin -g bin -m 444 ${WRKSRC}/man/*.5* ${MANDIR}/man5
	install -o bin -g bin -m 444 ${WRKSRC}/man/*.8* ${MANDIR}/man8
	@echo ""
	@echo "!!!!!!!!"
	@echo "you MUST change the configuration of this news setup:"
	@echo "	cd to ${NEWSLIB} and change the following files..."
	@echo "mailname, whoami, organization, mailpaths, sys, readnews.ctl, postdefltgroup"
	@echo "	to suit your local system and news topology."
	@echo "!!!!!!!!"
	@echo ""

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