1994-09-30 15:09:35 +00:00
|
|
|
# New ports collection makefile for: cnews
|
|
|
|
# Version required: 940927
|
|
|
|
# Date created: 28 September 1994
|
|
|
|
# Whom: adam
|
|
|
|
#
|
1999-08-30 14:33:04 +00:00
|
|
|
# $FreeBSD$
|
1994-09-30 15:09:35 +00:00
|
|
|
#
|
|
|
|
|
1998-12-17 21:54:52 +00:00
|
|
|
DISTNAME= c-news
|
1995-10-05 10:21:14 +00:00
|
|
|
PKGNAME= cnews-cr.g
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= news
|
1998-12-17 21:54:52 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.toronto.edu/pub/c-news/ \
|
|
|
|
ftp://ftp.funet.fi/pub/unix/news/cnews/ \
|
|
|
|
ftp://ftp.win.or.jp/pub/network/news/cnews/ \
|
|
|
|
ftp://ftp.redcom.ru/pub/unix/usenet/c-news/ \
|
1999-02-22 03:56:56 +00:00
|
|
|
ftp://ftp.mc.hik.se/pub/unix/news/c-news/ \
|
1999-09-06 23:29:26 +00:00
|
|
|
ftp://ftp.lan-ks.de/pub/c-news/ \
|
1999-02-22 03:56:56 +00:00
|
|
|
ftp://ftp.dinoex.org/pub/c-news/
|
1995-04-11 23:29:46 +00:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
1999-02-22 03:56:56 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
1999-06-10 08:00:12 +00:00
|
|
|
pgpverify-1.12
|
1995-04-11 23:29:46 +00:00
|
|
|
|
1999-09-06 23:29:26 +00:00
|
|
|
PATCH_SITES= ftp://ftp.lan-ks.de/pub/c-news/ \
|
|
|
|
ftp://ftp.dinoex.org/pub/c-news/
|
|
|
|
PATCHFILES= c-news-patch-fileart.c c-news-patch-namecheck.awk \
|
1999-02-22 03:56:56 +00:00
|
|
|
c-news-patch-newsrun c-news-patch-sendbatches \
|
|
|
|
c-news-patch-ctl-pgp3 c-news-patch-ctl-more \
|
|
|
|
c-news-patch-ctl-regexp \
|
|
|
|
c-news-patch-doexpire c-news-patch-queuelen.tay \
|
|
|
|
c-news-patch-bunzip2 \
|
|
|
|
c-news-patch-ctl-underscore \
|
1999-06-10 08:00:12 +00:00
|
|
|
c-news-patch-pgpverify-1.12
|
1998-08-30 15:45:35 +00:00
|
|
|
|
1999-02-22 03:56:56 +00:00
|
|
|
MAINTAINER= dirk.meyer@dinoex.sub.org
|
|
|
|
|
|
|
|
DIST_SUBDIR= c-news
|
1998-08-30 15:45:35 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
1999-02-22 03:56:56 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1994-09-30 15:09:35 +00:00
|
|
|
MAKEFILE= makefile
|
1996-11-18 14:17:24 +00:00
|
|
|
MAN1= checknews.1cn inews.1cn postnews.1cn readnews.1cn
|
|
|
|
MAN5= controlperm.5 news.5 newsctl.5 newsdb.5 newsoverview.5 \
|
1996-11-21 12:10:17 +00:00
|
|
|
newssys.5
|
1996-11-18 14:17:24 +00: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-11 23:29:46 +00:00
|
|
|
|
1999-09-06 23:29:26 +00:00
|
|
|
MODIFY= conf/quiz.def \
|
|
|
|
conf/substitutions \
|
|
|
|
include/config.make
|
|
|
|
|
|
|
|
NEWSBIN?= ${PREFIX}/news/cnewsbin
|
|
|
|
NEWSCTL?= ${PREFIX}/news/lib
|
|
|
|
NEWSARTS?= /var/news
|
|
|
|
NEWSOV?= /var/news/over.view
|
|
|
|
PGPVERIFY?= pgpverify-1.12
|
1999-02-22 03:56:56 +00:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${PGPVERIFY} ${WRKSRC}/${PGPVERIFY}
|
1994-09-30 15:09:35 +00:00
|
|
|
|
1999-09-06 23:29:26 +00:00
|
|
|
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=" \
|
|
|
|
${WRKSRC}/${i}.sed >${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
|
1995-04-22 12:06:02 +00:00
|
|
|
do-install:
|
1998-08-30 15:45:35 +00:00
|
|
|
${RM} -f ${PREFIX}/bin/inews
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libdbz/dbz.h ${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libcnews.a ${PREFIX}/lib
|
1999-09-06 23:29:26 +00:00
|
|
|
${MKDIR} ${NEWSARTS} ${NEWSBIN} ${NEWSCTL}
|
|
|
|
-${LN} -s ${NEWSARTS} /var/news
|
|
|
|
${CHOWN} news.news ${NEWSARTS} ${NEWSCTL}
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHOWN} bin.bin ${NEWSBIN}
|
1999-02-22 03:56:56 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PGPVERIFY} ${NEWSBIN}/pgpverify
|
1998-08-30 15:45:35 +00:00
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install
|
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} setup
|
|
|
|
cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ui readpostcheck
|
|
|
|
.for f in checknews cnewsdo inews injnews postnews readnews
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHOWN} bin.bin ${PREFIX}/bin/$f
|
1998-08-30 15:45:35 +00:00
|
|
|
.endfor
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHOWN} news.news ${NEWSBIN}/input/newsspool
|
|
|
|
${CHMOD} 6755 ${NEWSBIN}/input/newsspool
|
1999-02-22 03:56:56 +00:00
|
|
|
.for i in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
.for i in ${MAN5}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man5
|
|
|
|
.endfor
|
|
|
|
.for i in ${MAN8}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man8
|
|
|
|
.endfor
|
1998-08-30 15:45:35 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "!!!!!!!!"
|
|
|
|
@${ECHO} "you MUST change the configuration of this news setup:"
|
1999-09-06 23:29:26 +00:00
|
|
|
@${ECHO} " cd to ${NEWSCTL} and change the following files..."
|
1998-08-30 15:45:35 +00:00
|
|
|
@${ECHO} "mailname, whoami, organization, mailpaths, sys, readnews.ctl, postdefltgroup"
|
|
|
|
@${ECHO} " to suit your local system and news topology."
|
|
|
|
@${ECHO} "!!!!!!!!"
|
|
|
|
@${ECHO} ""
|
1994-09-30 15:09:35 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|