This file is indexed.

/usr/share/doc/HOWTO/ja-html/Offline-News-mini-HOWTO-4.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Offline-News-mini-HOWTO: gnspool</TITLE>
 <LINK HREF="Offline-News-mini-HOWTO-5.html" REL=next>
 <LINK HREF="Offline-News-mini-HOWTO-3.html" REL=previous>
 <LINK HREF="Offline-News-mini-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Offline-News-mini-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Offline-News-mini-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Offline-News-mini-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s4">4. gnspool</A></H2>

<P>¤³¤Î¾Ï¤Ç¤Ï¡¢gnspool ¤Î¥¤¥ó¥¹¥È¡¼¥ë¡¢µ­»ö¤Î¼è¤ê¹þ¤ß¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ²òÀ⤷¤Þ¤¹¡£´û¤Ë¡¢
gnspool ¤ò»È¤Ã¤Æ¤¤¤ë¿Í¤Ï¡¢Å¬Åö¤ËÆɤßÈô¤Ð¤·¤Æ²¼¤µ¤¤¡£
<P>
<P>
<H2><A NAME="ss4.1">4.1 ¥¤¥ó¥¹¥È¡¼¥ë</A>
</H2>

<P>ŬÅö¤Ê¥Ç¥£¥ì¥¯¥È¥ê¤Ë¡¢gn-1.35 ¤Î¥½¡¼¥¹¤òŸ³«¤·¤Þ¤¹¡£Linux ÍѤΠMakefile ¤Ï¡¢
<CODE>gn-1.35/mkfiles/unix/linux</CODE> ¤È¤¤¤¦Ì¾Á°¤ÇÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¥³¥Ô¡¼¤·¤Æ
²¼¤µ¤¤¡£
<P>
<P>gn ¤Î config ¥×¥í¥°¥é¥à¤Ï¡¢¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¤Î¤Ç¡¢Àè
¤ËɬÍפʥǥ£¥ì¥¯¥È¥ê¤òºî¤Ã¤Æ¤ª¤­¤Þ¤¹¡£
<HR>
<PRE>
mkdir /var/spool/news
mkdir /usr/lib/news
mkdir /usr/lib/news/bin
mkdir /usr/lib/news/man
</PRE>
<HR>
<P>
<P>¼¡¤Ë¡¢<CODE>gn-1.35/src/</CODE> ¤Ë°ÜÆ°¤·¤Æ <CODE>configur</CODE> ¤ò¼Â¹Ô¤·¤Þ¤¹¡£
<P>
<P><CODE>configur</CODE> ¤Î¼Â¹Ô»þ¤Ë¥¤¥ó¥¹¥È¡¼¥ëÀè¤Ê¤É¤Î»ØÄê¤òµá¤á¤é¤ì¤Þ¤¹¡£»ä¤Ï¼¡¤Î¤è¤¦
¤Ë¤·¤Þ¤·¤¿¡£
<HR>
<PRE>
BINDIR = /usr/lib/news/bin
MANDIR = /usr/lib/news/man
NEWSSPOOL = /usr/spool/news
NEWSLIB = /usr/lib/news
MAIL_KANJI_CODE = JIS
PROCESS_KANJI_CODE =    JIS
FILE_KANJI_CODE = JIS
DISPLAY_KANJI_CODE =    JIS
NEWSRC = ~/.newsrc
</PRE>
<HR>
<P>
<P>¤Þ¤¿¡¢¤³¤ì¤é¤ÎÀßÄê¤Ï <CODE>site.def</CODE> ¤òÊѹ¹¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¤âÊѹ¹¤Ç¤­¤Þ¤¹¡£¤¬¡¢
<CODE>site.def</CODE> ¤òÊѹ¹¤·¤¿¸å¤Ï¡¢É¬¤º¡¢<CODE>configur</CODE> ¤òºÆ¼Â¹Ô¤·¤Þ¤·¤ç¤¦¡£
<P>
<P>¤³¤Î¸å¡¢<CODE>make ; make install</CODE> ¤¹¤ì¤Ð¡¢É¬Íפʥե¡¥¤¥ë¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤ë
¤Ï¤º¤Ç¤¹¡£
<P>
<P>
<P>
<H2><A NAME="ss4.2">4.2 ¥Ë¥å¡¼¥¹¤ò¼è¤ê¹þ¤à¤¿¤á¤ÎÀßÄê</A>
</H2>

<P>¼¡¤Î¤è¤¦¤ÊÆâÍƤΠ<CODE>/usr/lib/news/.gnrc</CODE> ¤òºîÀ®¤·¤Þ¤¹¡£<CODE>.gnrc</CODE> ¤ÎÀß
ÄêË¡¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï¡¢gn(1) ¤ò»²¾È¤·¤Æ²¼¤µ¤¤¡£
<HR>
<PRE>
NNTPSERVER      news.server
NAME            Hoge Hoge
DOMAINNAME      mydomain.or.jp
ORGANIZATION    dokoka
GENERICFROM     1
UNSUBSCRIBE     all,!fj.os.linux
ARTICLE_LIMIT   0
ARTICLE_LEAVE   0
SELECT_LIMIT    0
GNSPOOL_LANG    EUC
AUTHOR_COPY     /dev/null
NEWSRC          ~/.newsrc
</PRE>
<HR>

¤³¤Î»ØÄê¤Ï¡¢fj.os.linux ¤Î¤ß¤ò¼è¤ê¹þ¤à¤È¤¤¤¦»ØÄê¤Ç¤¹¡£¤³¤Î»ØÄê¤Ë¤è¤Ã¤Æ¡¢¥Ë¥å¡¼¥¹
¥µ¡¼¥Ð¡¼¾å¤Ë¸ºß¤¹¤ë f.o.l ¤Îµ­»ö¤¬Á´¤Æ¥¹¥×¡¼¥ë¤Ë¼è¤ê¹þ¤Þ¤ì¤Þ¤¹¡£NAME,
DOMAINNAME, AUTHOR_COPY Åù¤Î»ØÄê¤Ï¡¢¥Ë¥å¡¼¥¹¤ËÅê¹Æ¤¹¤ëºÝ¤ËɬÍפˤʤê¤Þ¤¹¡£½é²ó¤Î
µ¯Æ°»þ¤Ï¡¢ÂçÎ̤ε­»ö¤ò¼è¤ê¹þ¤à¤¿¤á¤«¤Ê¤ê»þ´Ö¤¬¤«¤«¤ë¤Î¤Ç¡¢Ãí°Õ¤·¤Æ²¼¤µ¤¤¡£ÀßÄ꤬
½ª¤Ã¤¿¤é¡¢
<HR>
<PRE>
su news -c "/usr/lib/news/bin/gnspool -g -h news.server"
</PRE>
<HR>

¤È¥³¥Þ¥ó¥É¤òÆþÎϤ·¤Þ¤¹¡£¤³¤Î¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¡¢<CODE>/var/spool/news</CODE> ¤Î²¼¤Ëµ­
»ö¤¬¼è¤ê¹þ¤Þ¤ì¡¢<CODE>/usr/lib/news/active</CODE> ¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£
<P>
<P>¸íÆ°ºî¤òÈò¤±¤ë¤¿¤á¡¢NNTP Server ¤Ï¥³¥Þ¥ó¥É¥é¥¤¥ó¤ÇÌÀ¼¨Åª¤Ë»ØÄꤷ¤Æ²¼¤µ¤¤¡£
gnspool ¤Ï¡¢<CODE>.gnrc</CODE> ¤ÎÀßÄê¤è¤ê¤â´Ä¶­ÊÑ¿ô NNTPSERVER ¤òÍ¥À褷¤Þ¤¹¡£¤µ¤é¤Ë¡¢
su ¥³¥Þ¥ó¥É¤Ï¸½ºß¤Î´Ä¶­ÊÑ¿ô¤ò°ú¤­·Ñ¤®¤Þ¤¹¡£½¾¤Ã¤Æ¡¢´Ä¶­ÊÑ¿ô NNTPSERVER ¤¬ÀßÄꤵ¤ì
¤Æ¤¤¤ë¾õÂ֤Ǿ嵭¤Î¥³¥Þ¥ó¥É¤òȯ¹Ô¤¹¤ë¤È¡¢°Õ¿Þ¤·¤Ê¤¤ NNTP Server ¤ËÀܳ¤¹¤ë¤³¤È¤¬¤¢
¤êÆÀ¤Þ¤¹¡£¼¡¤Î¥¹¥¯¥ê¥×¥È¤òÍѤ¤¤ë¤È gnspool ¤Ë <CODE>.gnrc</CODE> ¤Î»ØÄê¤ò¶¯À©¤µ¤»¤ë¤³
¤È¤¬¤Ç¤­¤Þ¤¹¡£
<HR>
<PRE>
#!/bin/bash
export NEWSLIB=/usr/lib/news
export NEWSSPOOL=/var/spool/news
gnrc=$NEWSLIB/.gnrc
export NNTPSERVER=$(/usr/bin/awk '/^NNTPSERVER/ {print $2}' $gnrc)
/usr/lib/news/bin/gnspool -g
</PRE>
<HR>

´Ä¶­ÊÑ¿ô NEWSLIB, NEWSSPOOL ¤ÎÀßÄê¤â²Ã¤¨¤Æ¤¢¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤Ï¤ª¤Þ¤¸¤Ê¤¤¤ß¤¿¤¤¤Ê¤â
¤Î¤Ç¤¹¡£
<P>
<P><CODE>/usr/lib/news/.gnrc</CODE> ¤Ë¼¡¤ÎÀßÄê¤ò²Ã¤¨¤ë¤È¡¢¾åή¤Î¥Ë¥å¡¼¥¹¥µ¡¼¥Ð¡¼¤Ç¥­¥ã
¥ó¥»¥ë¤µ¤ì¤¿µ­»ö¤¬¥í¡¼¥«¥ë¥¹¥×¡¼¥ë¤Ë¸ºß¤¹¤ë¾ì¹ç¡¢¤½¤Îµ­»ö¤ò¾Ãµî¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ
¤¹¡£
<HR>
<PRE>
REMOVE_CANCELED 1
</PRE>
<HR>

¤¹¤Ê¤ï¤Á¡¢¾åή¥Ë¥å¡¼¥¹¥µ¡¼¥Ð¡¼¤Ë¤è¤Ã¤Æ¥³¥ó¥È¥í¡¼¥ë¥á¥Ã¥»¡¼¥¸¤ä Expire:,
Supersedes: ¤Ê¤É¤Î¥Ø¥Ã¥À¤¬½èÍý¤µ¤ì¤¿·ë²Ì¤ËÄɿ路¤Þ¤¹¡£
<P>
<P>¤¿¤À¤·¡¢¾åή¥Ë¥å¡¼¥¹¥µ¡¼¥Ð¡¼¤Î expire ´ü¸Â¤¬·Ð²á¤·¤¿¸å¤â¥í¡¼¥«¥ë¤Îµ­»ö¤ò»Ä¤·¤Æ¤ª
¤­¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢¤³¤ÎÊýË¡¤Ï»È¤¨¤Þ¤»¤ó¡£
<P>
<P>Message-ID ¤Ë¤è¤ë¸¡º÷¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢<CODE>/usr/lib/news/.gnrc</CODE> ¤Ë¡¢
<HR>
<PRE>
USE_HISTORY     1
</PRE>
<HR>

¤È¤¤¤¦¹Ô¤ò²Ã¤¨¤Æ²¼¤µ¤¤¡£¤³¤Î¹Ô¤ò²Ã¤¨¤ë¤È¡¢<CODE>/usr/lib/news/history</CODE> ¤¬À¸À®
¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
<P>
<P>
<P>
<P>
<HR>
<A HREF="Offline-News-mini-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Offline-News-mini-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Offline-News-mini-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>