1994-09-30 16:09:35 +01:00
|
|
|
# New ports collection makefile for: cnews
|
|
|
|
# Version required: 940927
|
|
|
|
# Date created: 28 September 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1997-12-10 02:07:40 +01:00
|
|
|
# $Id: Makefile,v 1.16 1996/12/07 01:30:12 adam Exp $
|
1994-09-30 16:09:35 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= cnews
|
1995-10-05 11:21:14 +01:00
|
|
|
PKGNAME= cnews-cr.g
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= news
|
1995-04-12 01:29:46 +02:00
|
|
|
MASTER_SITES= ftp://ftp.zoo.toronto.edu/pub/
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
1994-09-30 16:09:35 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
MAKEFILE= makefile
|
1996-11-18 15:17:24 +01:00
|
|
|
MAN1= checknews.1cn inews.1cn postnews.1cn readnews.1cn
|
|
|
|
MAN5= controlperm.5 news.5 newsctl.5 newsdb.5 newsoverview.5 \
|
1996-11-21 13:10:17 +01:00
|
|
|
newssys.5
|
1996-11-18 15:17:24 +01:00
|
|
|
MAN8= cnewsdo.8cn expire.8cn explode.8cn mergeactive.8 \
|
|
|
|
mkhistory.8cn newsaux.8cn newsbatch.8cn newsmail.8cn \
|
|
|
|
newsmaint.8cn newsoverview.8 relaynews.8cn report.8cn \
|
|
|
|
rnews.8cn
|
1995-04-12 01:29:46 +02:00
|
|
|
|
1997-12-10 02:07:40 +01:00
|
|
|
BROKEN= "Fails while installing bin/inews."
|
|
|
|
|
1995-04-18 15:56:22 +02:00
|
|
|
NEWSSPOOL= ${PREFIX}/newsspool
|
1996-12-07 02:30:23 +01:00
|
|
|
NEWSBIN= ${PREFIX}/news/cnewsbin
|
|
|
|
NEWSLIB= ${PREFIX}/news/lib
|
1995-04-18 15:56:22 +02:00
|
|
|
MANDIR= ${PREFIX}/man
|
1994-09-30 16:09:35 +01:00
|
|
|
|
1995-04-22 14:06:02 +02:00
|
|
|
do-install:
|
1995-07-02 14:40:13 +02:00
|
|
|
rm -f ${PREFIX}/bin/inews
|
1995-04-24 11:15:30 +02:00
|
|
|
cp ${WRKSRC}/libdbz/dbz.h ${PREFIX}/include
|
|
|
|
cp ${WRKSRC}/libcnews.a ${PREFIX}/lib
|
1995-01-24 17:43:07 +01:00
|
|
|
mkdir -p ${NEWSSPOOL}
|
1995-04-24 11:21:52 +02:00
|
|
|
-ln -s ${NEWSSPOOL} /var/news
|
1995-01-24 17:43:07 +01: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
|
1995-07-02 14:40:13 +02:00
|
|
|
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.1* ${MANDIR}/man1
|
|
|
|
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.5* ${MANDIR}/man5
|
|
|
|
install -c -o bin -g bin -m 444 ${WRKSRC}/man/*.8* ${MANDIR}/man8
|
1994-09-30 16:09:35 +01: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>
|