From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Mar  2 04:14:59 1998
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) id EAA02681
	Mon, 2 Mar 1998 04:14:59 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) with ESMTP id EAA02675
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 2 Mar 1998 04:14:56 +0900 (JST)
Received: from MARS (ppp01003.telecom.alles.or.jp [203.139.96.3])
          by alles.or.jp (8.8.8+2.7Wbeta7/96122501) with SMTP
	  id EAA11729 for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 2 Mar 1998 04:14:43 +0900 (JST)
Message-Id: <199803011914.EAA11729@alles.or.jp>
X-My-Real-Login-Name: ozakit; smtp.alles.or.jp
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
X-Mailer: Denshin 8 Go V321.1b7
Date: Mon, 02 Mar 1998 04:14:38 +0900
From: =?ISO-2022-JP?B?GyRCSHg6ahsoSg==?= <ozaki@bigfoot.com>
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: Your message of "Sun, 01 Mar 1998 21:14:09 +0900"
 	<199803011213.VAA27357@alles.or.jp>
References: <199803011213.VAA27357@alles.or.jp>
X-MailEditor: Humikiti Editor Ver 1.00b5
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: FreeBSD-users-jp 25243
Subject: [FreeBSD-users-jp 25243] Re: setting up leafnode
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B$3$s$K$A$O!"Hx:j$G$9!#(J

$B<+8J2r7h$7$F$7$^$$$^$7$?!#(JFreeBSD2.2.5$B$N(JCD-ROM$B$KF~$C$F$$$k(Jleafnode$B$O%t(J
$B%!!<%8%g%s$,(J1.0.2$B$G$9$,!"Ej9F$7$?8e$U$H;W$$$D$$$F:G?7$N(Jleafnode$B!J%t%!(J
$B!<%8%g%s$O(J1.4$B!K$r<h$C$F$-$^$7$?!#$3$NCf$KF~$C$F$$$k(JMakefile$B$N%G%#%l%/(J
$B%H%j:n@.$H%U%!%$%k$N%Q!<%_%C%7%g%sJQ99$r9T$C$F$$$kItJ,$@$1H4$-=P$7$?(JMa
kefile$B$r:n@.$7$F(Jmake$B$r$+$1$k$H(Jleafnode$B$,F0:n$7$^$7$?!#(J

$B;HMQ$7$?(JMakefile$B$r0J2<$K5-:\$7$F$*$-$^$9(J

- - - - - - - - - - - - - $B@Z$j<h$j@~(J- - - - - - - - - - - - - - - -

# -*- makefile -*-
# $Id: Makefile,v 1.16 1997/07/20 00:28:31 agulbra Exp $
CC = gcc
DEBUG = -g -Wall -Wformat -Wstrict-prototypes -Wmissing-prototypes 
CFLAGS = $(DEBUG)
LIBS = 
BINDIR = /usr/local/sbin
MANDIR = /usr/local/man
VERSION = 1.4
#
# this is the directory where the news is stored.
SPOOLDIR = /var/spool/news
#
# this is the directory where the configuration and group information is
# kept.  It should preferably not be on the same partition as spooldir
LIBDIR = /usr/lib/leafnode
#
# This is the lock file for fetch.  The normal locations for such lock
# files are /var/run or /var/lock.
LOCKFILE = "/var/run/news/fetch.lck"

install:
	-mkdir -p /var/run/news
	chown news.news /var/run/news
	-mkdir -p $(SPOOLDIR) $(LIBDIR)
	-mkdir -p $(SPOOLDIR)/message.id
	-mkdir -p $(SPOOLDIR)/interesting.groups
	-mkdir -p $(SPOOLDIR)/out.going
	cd $(SPOOLDIR)/message.id ; for a in 0 1 2 3 4 5 6 7 8 9 ; do \
		for b in 0 1 2 3 4 5 6 7 8 9 ; do \
			mkdir -p $${a}$${b}0 $${a}$${b}1 $${a}$${b}2 \
				$${a}$${b}3 $${a}$${b}4 $${a}$${b}5 \
				$${a}$${b}6 $${a}$${b}7 $${a}$${b}8 \
				$${a}$${b}9 ; \
			done ; done
	chown -R news.news $(LIBDIR) $(SPOOLDIR)
	chmod 2750 $(SPOOLDIR)
	chmod 750 $(BINDIR)/leafnode
	chmod 750 $(BINDIR)/fetch
	chmod 750 $(BINDIR)/texpire
	chmod 750 $(BINDIR)/checkgroups
	chown news.news $(BINDIR)/leafnode
	chown news.news $(BINDIR)/fetch
	chown news.news $(BINDIR)/texpire
	chown news.news $(BINDIR)/checkgroups
	@echo edit /etc/inetd.conf to start $(BINDIR)/leafnode

- - - - - - - - - - - - - $B@Z$j<h$j@~(J- - - - - - - - - - - - - - - -

----+----+----+----+----+----+----+----+----+----+----+----+----+----+
                                      Takao Ozaki( ozaki@bigfoot.com )
