View | Details | Raw Unified | Return to bug 19397
Collapse All | Expand All

(-)Makefile (-47 / +27 lines)
Lines 1-77 Link Here
1
# New ports collection makefile for:		diablo
1
# New ports collection makefile for:		diablo
2
# Date created:					June 2nd 1997
2
# Date created:					June 20th 2000
3
# Whom:						jfitz
3
# Whom:						des
4
#
4
#
5
# $FreeBSD: ports/news/diablo/Makefile,v 1.11 2000/04/21 07:51:42 mharo Exp $
5
# $FreeBSD: ports/news/diablo/Makefile,v 1.11 2000/04/21 07:51:42 mharo Exp $
6
#
6
#
7
7
8
PORTNAME=	diablo
8
PORTNAME=	diablo
9
PORTVERSION=	1.15
9
PORTVERSION=	2.2
10
CATEGORIES=	news
10
CATEGORIES=	news
11
MASTER_SITES=	http://www.backplane.com/diablo/
11
MASTER_SITES=	http://www.openusenet.org/diablo/download/
12
DISTNAME=	${PKGNAME}-rel
12
DISTNAME=	${PKGNAME}-REL
13
EXTRACT_SUFX=	.tgz
13
EXTRACT_SUFX=	.tgz
14
14
15
MAINTAINER=	jfitz@FreeBSD.org
15
MAINTAINER=	des@FreeBSD.org
16
16
17
BUILD_DEPENDS=	xmake:${PORTSDIR}/devel/xmake
17
BUILD_DEPENDS=	xmake:${PORTSDIR}/devel/xmake
18
18
19
WRKSRC=		${WRKDIR}/diablo
20
21
NO_PACKAGE=	"has to create/verify news user"
19
NO_PACKAGE=	"has to create/verify news user"
20
21
MAN5=		diablo-kp.5 diablo-files.5
22
MAN8=		dicmd.8 didump.8 dexpireover.8 dgrpctl.8 dclean.8 \
23
		dilookup.8 diloadfromspool.8 doutq.8 dreadart.8 \
24
		dreaderd.8 dpath.8 drcmd.8 dsyncgroups.8 dreadover.8 \
25
		dkp.8 diablo.8 dexpire.8 dspoolout.8 dnewslink.8
26
27
DOCDIR=		${PREFIX}/share/doc/diablo
22
28
23
MAN5=		diablo-files.5 diablo-kp.5
29
post-extract:
24
MAN8=		diablo.8 dclean.8 dicmd.8 dexpire.8 didump.8 \
30
	${CP} ${SCRIPTDIR}/diablo.sh ${WRKDIR}
25
		dilookup.8 doutq.8 dspoolout.8 dkp.8 dnewslink.8 \
26
		dreadart.8 dreaderd.8 dsyncgroups.8
27
31
28
do-configure:
32
do-configure:
29
	${CP} ${FILESDIR}/post-install-notes ${WRKSRC}
30
	${SETENV} ${MAKE_ENV} ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
33
	${SETENV} ${MAKE_ENV} ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' \
31
		${WRKSRC}/post-install-notes
34
		${WRKDIR}/diablo.sh ${WRKSRC}/XMakefile.inc
32
35
33
do-build:
36
do-build:
34
	cd ${WRKSRC} && ${PREFIX}/bin/xmake clean all
37
	cd ${WRKSRC} && xmake all
35
38
36
pre-install:
39
pre-install:
37
	@ ${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/createuser
40
	${SETENV} ${MAKE_ENV} ${PERL} ${SCRIPTDIR}/createuser
38
	${MKDIR} ${PREFIX}/news ${PREFIX}/news/dbin ${PREFIX}/news/spool \
41
	${INSTALL} -d ${DOCDIR} ${PREFIX}/news ${PREFIX}/news/dbin \
39
		${PREFIX}/news/spool/news ${PREFIX}/share/doc/diablo
42
		${PREFIX}/news/spool ${PREFIX}/news/spool/dqueue \
40
	${RM} -f /news
43
		${PREFIX}/news/spool/cache ${PREFIX}/news/spool/group \
41
	${LN} -sf ${PREFIX}/news /news
44
		${PREFIX}/news/spool/postq
42
	${CHOWN} -R news.news ${PREFIX}/news
45
	${CHOWN} -R news.news ${PREFIX}/news
43
46
44
do-install:
47
do-install:
45
	cd ${WRKSRC} && ${PREFIX}/bin/xmake install
48
	cd ${WRKSRC} && xmake install
46
.for file in COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
49
.for file in COPYRIGHT INSTALL README.READER README.SERVER RELEASE_NOTES
47
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/diablo
50
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCDIR}
48
.endfor
51
.endfor
49
	${INSTALL_DATA} ${WRKSRC}/post-install-notes ${PREFIX}/share/doc/diablo
52
	${INSTALL_SCRIPT} ${WRKDIR}/diablo.sh ${PREFIX}/etc/rc.d
50
53
51
post-install:
54
post-install:
52
	${INSTALL} -c -o news -g news ${WRKSRC}/samples/* ${PREFIX}/news
55
	@${CAT} ${PKGMESSAGE}
53
	@ ${ECHO} "Installing ${PREFIX}/etc/rc.d/diablo.sh startup script"
54
	@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/diablo.sh
55
	@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/diablo.sh
56
	@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/diablo.sh
57
	@ ${ECHO} "# The line to run diablo is specifically commented out" >> \
58
		${PREFIX}/etc/rc.d/diablo.sh
59
	@ ${ECHO} "# so that you don't start up diablo with a generic config" >> \
60
		${PREFIX}/etc/rc.d/diablo.sh
61
	@ ${ECHO} "# Once you've configured diablo, uncomment the line below" >> \
62
		${PREFIX}/etc/rc.d/diablo.sh
63
	@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/diablo.sh
64
	@ ${ECHO} "if [ -x ${PREFIX}/news/rc.news ]" >> \
65
		${PREFIX}/etc/rc.d/diablo.sh
66
	@ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/diablo.sh
67
	@ ${ECHO} "#	${PREFIX}/news/rc.news && ${ECHO} -n ' diablo'" >> \
68
		${PREFIX}/etc/rc.d/diablo.sh
69
	@ ${ECHO} "	${ECHO} -n ' diablo(disabled)'" >> \
70
		${PREFIX}/etc/rc.d/diablo.sh
71
	@ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/diablo.sh
72
	${CHMOD} 0750 ${PREFIX}/etc/rc.d/diablo.sh
73
.if !defined(BATCH)
74
	@ /usr/bin/more -e ${PREFIX}/share/doc/diablo/post-install-notes
75
.endif
76
56
77
.include <bsd.port.mk>
57
.include <bsd.port.mk>
(-)files/md5 (-1 / +1 lines)
Line 1 Link Here
1
MD5 (diablo-1.15-rel.tgz) = a1976d3eee802bd13e5ba5819da87fa4
1
MD5 (diablo-2.2-REL.tgz) = 62b1df59b49709ebef48d336ea8cfc87
(-)/tmp/cvssXbJX73126 (-23 lines)
Removed Link Here
1
Post-install notes for diablo
2
-----------------------------
3
4
The port of diablo installs a very basic diablo system.  You will certainly
5
want to change paths and partitions before you start using diablo in a
6
production environment.
7
8
The directory tree, as installed, consists of :
9
10
%%PREFIX%%/news
11
%%PREFIX%%/news/dqueue
12
%%PREFIX%%/news/dbin
13
%%PREFIX%%/news/spool/news
14
15
To keep with the author's suggestion, /news is symlinked to /usr/local/news
16
on installation.  You will want to put /news/spool/news on it's own
17
partition.
18
19
Please refer to the documentation located at
20
http://www.backplane.com/diablo/ for further information.
21
22
--
23
j.
(-)patch-aa (+20 lines)
Added Link Here
1
--- XMakefile.inc.orig	Tue Jun 20 10:31:09 2000
2
+++ XMakefile.inc	Tue Jun 20 10:43:22 2000
3
@@ -20,8 +20,8 @@
4
 #endif
5
 
6
 .set LFLAGS	-L$(BD)obj -lfilter -ldiablo -lutil -lm
7
-.set IDIR	/news
8
-.set MDIR	/news/man
9
+.set IDIR	%%PREFIX%%/news
10
+.set MDIR	%%PREFIX%%/man
11
 .set INSTALL	install
12
 
13
 #ifdef __FreeBSD__
14
@@ -41,5 +41,5 @@
15
 .set INSTALL	/usr/ucb/install
16
 #endif
17
 
18
-.set DIST /news
19
+.set DIST %%PREFIX%%/news
20
 
(-)pkg/COMMENT (-1 / +1 lines)
Line 1 Link Here
1
A news transit system for backbone news feeders
1
A comprehensive newsfeeding and newsreading software package.
(-)pkg/DESCR (-23 / +5 lines)
Lines 1-24 Link Here
1
DIABLO is a backbone news transit system, designed to replace INND on
1
Diablo is a comprehensive newsfeeding and newsreading software package
2
backbone machines. DIABLO UNDERSTANDS NEWSFEEDS ONLY, IT DOES NOT UNDERSTAND
2
that was originally developed by Matthew Dillon and is now run as an open
3
NEWSREADER CLIENTS!. You cannot run diablo on a machine which needs to
3
source project.  Diablo is significantly faster and more robust than INN,
4
accept nntp post commands or newsreading-related nntp commands. You cannot
4
and scales well to multi-server installations.
5
point your NNTPSERVER at a host running Diablo.
6
5
7
Diablo is strictly a backbone news transit system. It will accept newsfeeds
6
WWW: http://www.openusenet.org/diablo/
8
using the ihave or the streaming check/takethis protocols, and it can
9
generate newsfeeds using ihave or streaming check/takethis protocols. Diablo
10
maintains a news spool and dhistory file, but the spool and history file is
11
arranged very differently from INN.
12
13
Diablo is also between 10 and 20 times as fast as INN in regards to incoming
14
feeds, and extremely efficient for outgoing feeds. I have been running
15
Diablo on BEST Internet's backbone news machine for several weeks now, and
16
it has run flawlessly.
17
18
If you have a dedicated newsfeeds machine which does feeds, feeds, and
19
nothing but feeds, Diablo may be for you.
20
21
Diablo was written and is currently being maintained by Matthew Dillon,
22
you can mail me at: dillon@backplane.com
23
24
WWW: http://www.backplane.com/
(-)MESSAGE (+9 lines)
Added Link Here
1
2
Post-install notes for Diablo
3
-----------------------------
4
5
This port installs a very basic Diablo system.  You will certainly
6
want to change paths and partitions before you start using diablo in a
7
production environment.  Please refer to the documentation located at
8
http://www.openusenet.org/diablo/ for further information.
9
(-)pkg/PLIST (-38 / +50 lines)
Lines 1-58 Link Here
1
etc/rc.d/diablo.sh
1
etc/rc.d/diablo.sh
2
news/dbin/dilookup
2
share/doc/diablo/COPYRIGHT
3
news/dbin/dicmd
3
share/doc/diablo/INSTALL
4
news/dbin/didump
4
share/doc/diablo/README.READER
5
news/dbin/diconvhist
5
share/doc/diablo/README.SERVER
6
share/doc/diablo/RELEASE_NOTES
7
news/dbin/dexpireover
8
news/dbin/.empty
9
news/dbin/dclean
6
news/dbin/dexpire
10
news/dbin/dexpire
11
news/dbin/diconvhist
12
news/dbin/dgrpctl
13
news/dbin/diablo
14
news/dbin/dicmd
15
news/dbin/dilookup
7
news/dbin/didate
16
news/dbin/didate
8
news/dbin/dspaminfo
17
news/dbin/didump
9
news/dbin/diload
18
news/dbin/diload
10
news/dbin/doutq
19
news/dbin/doutq
11
news/dbin/dclean
12
news/dbin/dspoolout
13
news/dbin/dreadart
14
news/dbin/dkp
20
news/dbin/dkp
15
news/dbin/pgpverify
21
news/dbin/diloadfromspool
16
news/dbin/dsyncgroups
22
news/dbin/dprimehostcache
17
news/dbin/dexpireover
18
news/dbin/diablo
19
news/dbin/dnewslink
23
news/dbin/dnewslink
24
news/dbin/dpath
25
news/dbin/dreadart
26
news/dbin/drcmd
27
news/dbin/dreaderd
28
news/dbin/dreadover
29
news/dbin/drequeue
30
news/dbin/dspaminfo
31
news/dbin/dspoolout
32
news/dbin/dsyncgroups
33
news/dbin/pgpverify
20
news/dbin/plock
34
news/dbin/plock
21
news/dbin/showlocks
35
news/dbin/showlocks
22
news/dbin/dreaderd
36
news/samples/adm/rot
37
news/samples/adm/biweekly.atrim
38
news/samples/adm/crontab.sample
39
news/samples/adm/daily.atrim
40
news/samples/adm/daily.dclean
41
news/samples/adm/daily.reader
42
news/samples/adm/hourly.expire
43
news/samples/adm/quadhr.expire
44
news/samples/adm/rc.news
45
news/samples/adm/weekly.reader
46
news/samples/dcontrol.ctl
47
news/samples/dactive.kp
23
news/samples/diablo.config
48
news/samples/diablo.config
24
news/samples/rc.news
25
news/samples/dexpire.ctl
49
news/samples/dexpire.ctl
50
news/samples/diablo.hosts
51
news/samples/distrib.pats
26
news/samples/dnewsfeeds
52
news/samples/dnewsfeeds
27
news/samples/dnntpspool.ctl
53
news/samples/dnntpspool.ctl
28
news/samples/diablo.hosts
54
news/samples/dreader.access
29
news/samples/dactive.kp
30
news/samples/dreader.hosts
31
news/samples/dserver.hosts
55
news/samples/dserver.hosts
32
news/samples/moderators
56
news/samples/moderators
33
news/samples/dcontrol.ctl
57
news/samples/pgp-sample
34
news/dactive.kp
35
news/dcontrol.ctl
36
news/dexpire.ctl
37
news/diablo.config
38
news/diablo.hosts
39
news/dnewsfeeds
40
news/dnntpspool.ctl
41
news/dreader.hosts
42
news/dserver.hosts
43
news/moderators
44
news/rc.news
45
share/doc/diablo/COPYRIGHT
46
share/doc/diablo/INSTALL
47
share/doc/diablo/README.READER
48
share/doc/diablo/README.SERVER
49
share/doc/diablo/RELEASE_NOTES
50
share/doc/diablo/post-install-notes
51
@unexec /bin/rm -f /news
52
@dirrm share/doc/diablo
58
@dirrm share/doc/diablo
53
@dirrm news/dbin
59
@dirrm news/spool/postq
54
@dirrm news/dqueue
55
@dirrm news/spool/news
60
@dirrm news/spool/news
61
@dirrm news/spool/group
62
@dirrm news/spool/dqueue
63
@dirrm news/spool/cache
56
@dirrm news/spool
64
@dirrm news/spool
65
@dirrm news/samples/adm
57
@dirrm news/samples
66
@dirrm news/samples
67
@dirrm news/dqueue
68
@dirrm news/dbin
69
@dirrm news/adm
58
@dirrm news
70
@dirrm news
(-)scripts/createuser (-2 / +2 lines)
Lines 58-66 Link Here
58
58
59
59
60
if( ! $have_user ) {
60
if( ! $have_user ) {
61
	$result = system( "pw useradd news -u $cUID -g $cGID -d \"/usr/local/news\" -c \"The Diablo News System\" -s \"/bin/sh\" -p \"*\"" );
61
	$result = system( "pw useradd news -u $cUID -g $cGID -d \"$ENV{PREFIX}/news\" -c \"The Diablo News System\" -s \"/bin/sh\" -p \"*\"" );
62
} else {
62
} else {
63
	$result = system( "pw usermod news -u $cUID -g $cGID -d \"/usr/local/news\" -c \"The Diablo News System\" -s \"/bin/sh\" -p \"*\"" );
63
	$result = system( "pw usermod news -u $cUID -g $cGID -d \"$ENV{PREFIX}/news\" -c \"The Diablo News System\" -s \"/bin/sh\" -p \"*\"" );
64
}
64
}
65
if( $result ) {
65
if( $result ) {
66
	print "Failed to add/modify user news!\n";
66
	print "Failed to add/modify user news!\n";
(-)diablo.sh (+5 lines)
Added Link Here
1
#!/bin/sh
2
3
if [ -x %%PREFIX%%/news/rc.news ] ; then
4
    %%PREFIX%%/news/rc.news && echo -n ' diablo'
5
fi

Return to bug 19397