1994-09-30 15:09:35 +00:00
|
|
|
# New ports collection makefile for: cnews
|
|
|
|
# Version required: 940927
|
|
|
|
# Date created: 28 September 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1995-04-24 09:21:52 +00:00
|
|
|
# $Id: Makefile,v 1.9 1995/04/24 09:15:30 asami Exp $
|
1994-09-30 15:09:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= cnews
|
1995-04-11 23:29:46 +00:00
|
|
|
PKGNAME= cnews-cr.e
|
1995-04-01 12:51:41 +00:00
|
|
|
CATEGORIES+= news
|
1995-04-11 23:29:46 +00:00
|
|
|
MASTER_SITES= ftp://ftp.zoo.toronto.edu/pub/
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
1994-09-30 15:09:35 +00:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
MAKEFILE= makefile
|
1995-04-11 23:29:46 +00:00
|
|
|
|
1995-04-18 13:56:22 +00:00
|
|
|
NEWSSPOOL= ${PREFIX}/newsspool
|
|
|
|
NEWSBIN= ${PREFIX}/libexec/news
|
|
|
|
NEWSLIB= ${PREFIX}/lib/news
|
|
|
|
MANDIR= ${PREFIX}/man
|
1994-09-30 15:09:35 +00:00
|
|
|
|
1995-04-22 12:06:02 +00:00
|
|
|
do-install:
|
1995-04-24 09:15:30 +00:00
|
|
|
cp ${WRKSRC}/libdbz/dbz.h ${PREFIX}/include
|
|
|
|
cp ${WRKSRC}/libcnews.a ${PREFIX}/lib
|
1995-01-24 16:43:07 +00:00
|
|
|
mkdir -p ${NEWSSPOOL}
|
1995-04-24 09:21:52 +00:00
|
|
|
-ln -s ${NEWSSPOOL} /var/news
|
1995-01-24 16:43:07 +00:00
|
|
|
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
|
1994-09-30 15:09:35 +00:00
|
|
|
@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>
|