upgrade dnews to most recent FreeBSD version 4.2j

added faq from www server
revamped directory structure, port now uses:
	/var/log/dnews
	/var/spool/dnews
	${PREFIX}/lib/dnews
the cgi stuff isn't tested
PR:
Reviewed by:
Submitted by:
Obtained from:
This commit is contained in:
Andreas Klemm 1997-05-29 15:22:14 +00:00
parent a6585349f8
commit f5ec537f78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6625
5 changed files with 1533 additions and 56 deletions

View File

@ -1,15 +1,15 @@
# New ports collection makefile for: dnews
# Version required: 27q
# Date created: Sa 22 Feb 1997 14:38:05 MET
# Version required: 42j
# Date created: Thu May 29 17:16:36 CEST 1997
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
# $Id: Makefile,v 1.1.1.1 1997/02/22 14:56:45 andreas Exp $
# $Id$
#
DISTNAME= dnews
CATEGORIES= news
MASTER_SITES= ftp://ftp.netwinsite.com/pub/netwinsite/dnews/oldversions/
DISTFILES= dnews27q_freebsd.tar.Z
MASTER_SITES= ftp://ftp.netwinsite.com/pub/netwinsite/dnews/
DISTFILES= dnews42j_freebsd.tar.Z
MAINTAINER= andreas@FreeBSD.ORG
@ -43,44 +43,76 @@ INST_SCR=${INSTALL} ${COPY} -o news -g news -m 554
INST_DAT=${INSTALL} ${COPY} -o news -g news -m 644
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/tellnews ${PREFIX}/bin
@${MKDIR} ${PREFIX}/dnews
@chown news.news ${PREFIX}/dnews
@chmod 0755 ${PREFIX}/dnews
@${INST_PRG} ${WRKSRC}/dnews ${PREFIX}/dnews
@${INST_PRG} ${WRKSRC}/dnews_start ${PREFIX}/dnews
@${INST_PRG} ${WRKSRC}/dposter ${PREFIX}/dnews
@${INST_PRG} ${WRKSRC}/xmit ${PREFIX}/dnews
@${INST_SCR} ${WRKSRC}/fixowner.sh ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/access.conf ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/control.conf ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/dnews.conf ${PREFIX}/etc
@ln -sf ${PREFIX}/etc/dnews.conf /etc
@${INST_DAT} ${WRKSRC}/expire.conf ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/fts.conf ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/moderators.conf ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/newsfeeds.conf ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/nocached.body ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/nocached.head ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/install.txt ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/license.txt ${PREFIX}/dnews
@${INST_DAT} ${WRKSRC}/manual.txt ${PREFIX}/dnews
@${MKDIR} /var/spool/dnews
@chown news.news /var/spool/dnews
@chmod 755 /var/spool/dnews
@${INSTALL_SCRIPT} ${FILESDIR}/dnews.sh ${PREFIX}/etc/rc.d
${MKDIR} ${PREFIX}/lib/dnews/scripts
${MKDIR} ${PREFIX}/lib/dnews/doc
@chmod -R 0755 ${PREFIX}/lib/dnews
@chown -R news.news ${PREFIX}/lib/dnews
${MKDIR} /var/log/dnews
@chmod 0755 /var/log/dnews
@chown news.news /var/log/dnews
${MKDIR} /var/spool/dnews
@chmod 0755 /var/spool/dnews
@chown news.news /var/spool/dnews
@${ECHO_MSG} ">> Installing tellnews control program in ${PREFIX}/bin"
@${INSTALL_PROGRAM} ${WRKSRC}/tellnews \
${PREFIX}/bin
@${ECHO_MSG} ">> Installing runtime programs in ${PREFIX}/lib/dnews"
@${INST_PRG} ${WRKSRC}/dnews \
${PREFIX}/lib/dnews
@${INST_PRG} ${WRKSRC}/dnews_start \
${PREFIX}/lib/dnews
@${INST_PRG} ${WRKSRC}/dposter \
${PREFIX}/lib/dnews
@${INST_PRG} ${WRKSRC}/xmit \
${PREFIX}/lib/dnews
@${INST_DAT} ${WRKSRC}/nocached.body \
${PREFIX}/lib/dnews
@${INST_DAT} ${WRKSRC}/nocached.head \
${PREFIX}/lib/dnews
@${ECHO_MSG} ">> Installing scripts in ${PREFIX}/lib/dnews/scripts"
@${INST_SCR} ${WRKSRC}/newver.sh ${PREFIX}/lib/dnews/scripts
@${ECHO_MSG} ">> Installing config files in ${PREFIX}/lib/dnews"
@${INST_DAT} ${WRKSRC}/access.conf \
${PREFIX}/lib/dnews/access.conf.sample
@${INST_DAT} ${WRKSRC}/control.conf \
${PREFIX}/lib/dnews/control.conf.sample
@${INST_DAT} ${WRKSRC}/dnews.conf \
${PREFIX}/lib/dnews/dnews.conf.sample
@ln -sf ${PREFIX}/lib/dnews/dnews.conf /etc
@${INST_DAT} ${WRKSRC}/expire.conf \
${PREFIX}/lib/dnews/expire.conf.sample
@${INST_DAT} ${WRKSRC}/fts.conf \
${PREFIX}/lib/dnews/fts.conf.sample
@ln -sf ${PREFIX}/lib/dnews/fts.conf /var/spool/dnews/fts.conf
@${INST_DAT} ${WRKSRC}/hp.conf \
${PREFIX}/lib/dnews/hp.conf.sample
@${INST_DAT} ${WRKSRC}/moderators.conf \
${PREFIX}/lib/dnews/moderators.conf.sample
@${INST_DAT} ${WRKSRC}/newsfeeds.conf \
${PREFIX}/lib/dnews/newsfeeds.conf.sample
@${ECHO_MSG} ">> Installing doc files in ${PREFIX}/etc/dnews/doc"
@${INST_DAT} ${WRKSRC}/install.txt \
${PREFIX}/lib/dnews/doc
@${INST_DAT} ${WRKSRC}/license.txt \
${PREFIX}/lib/dnews/doc
@${INST_DAT} ${WRKSRC}/manual.txt \
${PREFIX}/lib/dnews/doc
@${INST_DAT} ${FILESDIR}/faq.html \
${PREFIX}/lib/dnews/doc
@${ECHO_MSG} ">> Installing doc files in ${PREFIX}/etc/rc.d"
@${INST_SCR} ${FILESDIR}/dnews.sh \
${PREFIX}/etc/rc.d
.if defined(DNEWSWEB)
@${INSTALL_PROGRAM} ${WRKSRC}/dnewsweb ${PREFIX}/www/cgi-bin
@${INSTALL_DATA} ${WRKSRC}/dnewsweb.ini ${PREFIX}/www/cgi-bin
@${INSTALL_DATA} ${WRKSRC}/dnewsweb.txt ${PREFIX}/www/cgi-bin
.endif
@${ECHO_MSG} ""
@${ECHO_MSG} "*** DNEWS is NOT free !!!"
@${ECHO_MSG} "*** Please read ${PREFIX}/dnews/license.txt"
@${ECHO_MSG} "*** Edit the following config files before use:"
@${ECHO_MSG} "/etc/dnews.conf, ${PREFIX}/dnews/*.conf"
@${ECHO_MSG} "*** Please read ${PREFIX}/lib/dnews/doc/license.txt"
@${ECHO_MSG} "*** Create and Edit the config files in:"
@${ECHO_MSG} "*** ${PREFIX}/etc/dnews"
.if defined(DNEWSWEB)
@${ECHO_MSG} "and ${PREFIX}/www/cgi-bin/dnewsweb.ini !"
@${ECHO_MSG} "*** and ${PREFIX}/www/cgi-bin/dnewsweb.ini !"
.endif
.include <bsd.port.mk>

View File

@ -1 +1 @@
MD5 (dnews27q_freebsd.tar.Z) = 5c10f132bcbb4e4f34f3e959a283ab7b
MD5 (dnews42j_freebsd.tar.Z) = d7fc16ebae8c43472c31cd42a3c5d38f

View File

@ -2,8 +2,8 @@
# start dnews if it's really there ... usually in /usr/local ...
[ -x /usr/local/dnews/dnews_start ] \
&& /usr/local/dnews/dnews_start > /dev/null 2>&1 &
[ -x /usr/local/lib/dnews/dnews_start ] \
&& /usr/local/lib/dnews/dnews_start > /dev/null 2>&1 &
# dnews started successfully if exit status = 0

1443
news/dnews/files/faq.html Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,21 @@
bin/tellnews
dnews/access.conf
dnews/control.conf
dnews/dnews
dnews/dnews_start
dnews/dposter
dnews/expire.conf
dnews/fixowner.sh
dnews/fts.conf
dnews/install.txt
dnews/license.txt
dnews/manual.txt
dnews/moderators.conf
dnews/newsfeeds.conf
dnews/nocached.body
dnews/nocached.head
dnews/xmit
etc/dnews.conf
etc/rc.d/dnews.sh
lib/dnews/access.conf.sample
lib/dnews/control.conf.sample
lib/dnews/dnews
lib/dnews/dnews.conf.sample
lib/dnews/dnews_start
lib/dnews/doc/faq.html
lib/dnews/doc/install.txt
lib/dnews/doc/license.txt
lib/dnews/doc/manual.txt
lib/dnews/dposter
lib/dnews/expire.conf.sample
lib/dnews/fts.conf.sample
lib/dnews/hp.conf.sample
lib/dnews/moderators.conf.sample
lib/dnews/newsfeeds.conf.sample
lib/dnews/nocached.body
lib/dnews/nocached.head
lib/dnews/scripts/newver.sh
lib/dnews/xmit