home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / CNEWS / SLACKWAR < prev   
Encoding:
Text File  |  1995-04-20  |  15.1 KB  |  334 lines

  1. Script started on Fri Sep  2 23:39:12 1994
  2. fuzzy:~/cnews/conf# build
  3. This interactive command will build shell files named doit.root,
  4. doit.bin, doit.news, and again.root to do all the work.  It will not
  5. actually do anything itself, so feel free to abort and start again.
  6.  
  7. You probably need your system manuals handy.
  8.  
  9. When a question is asked in the form `How are you [okay]? ', the
  10. answer in brackets is what you will get if you just hit RETURN.
  11. (If you want give an empty string as the answer, type a single
  12. `-' instead.)
  13.  
  14. Do you want to use your previous answers as defaults [no]? yes
  15.  
  16. Picking up defaults, from last run...
  17. done
  18.  
  19. C News wants to keep most of its files under a uid which preferably
  20. should be all its own.  Its programs, however, can and probably should
  21. be owned by another user, typically the same one who owns most of the
  22. rest of the system.  (Note that on a system running NFS, any program
  23. not owned by "root" is a gaping security hole.)
  24. What user id should be used for news files [news]? 
  25. What group id should be used for news files [news]? 
  26. What user id should be used for news programs [root]? 
  27. What group id should be used for news programs [bin]? 
  28. Do the C News sources belong to root [yes]? 
  29.  
  30. It would appear that your system is among the victims of the
  31. 4.4BSD / SVR4 directory reorganization, with (e.g.) shared
  32. data in /usr/share.  Is this correct [no]? 
  33.  
  34. C News lives primarily under three directories:  one for articles (and
  35. incoming and outgoing spooling), one for control files, and one for
  36. programs.
  37. Where should articles live [/var/spool/news]? 
  38. Where should control files live [/var/lib/news]? 
  39. Where should programs live [/usr/lib/newsbin]? 
  40.  
  41. Is   /bin:/usr/bin:/sbin:/usr/sbin
  42. the correct path to follow to find standard programs on your
  43. system [yes]? 
  44.  
  45. C News normally uses a umask of 002, turning off only the others-write
  46. bit in the permissions of files used.  (The correspondence between bits
  47. and number is:  rwx = 421, so turning off group-write bits and all
  48. others-access bits would be a mask of 027, for example.)  Usually
  49. a umask of 002 or 022 is appropriate.
  50. What umask should C News use [002]? 
  51.  
  52. C News wants to mail some forms of trouble reports to an administrator.
  53. You probably want to make this a system mailbox, rather than that of a
  54. specific user, so you won't have to change the software when you get a
  55. new administrator.
  56. Where should C News mail trouble reports [news]? 
  57.  
  58. The shell files that are everywhere in C News want to pick up their
  59. configuration parameters (mostly, the last few questions you have
  60. answered) from a file at a known location; this is very hard to avoid
  61. unless you play tricks with environment variables (see documentation).
  62. Where should the shell configuration file be
  63. located [/var/lib/news/bin/config]? 
  64.  
  65. What is the full pathname of the chown command [/bin/chown]? 
  66. Can I say `/bin/chown news.news file' to change both the user id
  67. and group id of a file [yes]? 
  68.  
  69. building doit.root...
  70. done
  71.  
  72. C News has libraries for several kinds of Unix:
  73.     bsd42    4.2BSD and successors
  74.     usg    AT&T System V
  75.     v7    Version 7 (4.1BSD is pretty close, ditto Xenix)
  76.     v8    Version 8, aka Eighth Edition
  77. Which best describes your system [usg]? 
  78.  
  79. C News has libraries for small address spaces (16 bits) and big
  80. ones (preferably 32 bits, but anything rather bigger than 16).
  81. Which best describes your system [big]? 
  82.  
  83. Systems vary in whether certain library functions and system calls
  84. are present.  C News contains reasonably-portable versions of the
  85. possibly-missing library functions, and fake versions of the
  86. possibly-missing system calls, but it needs to know which are missing.
  87. Does your system have  fsync() [yes]? 
  88. Does your system have  getopt() [yes]? 
  89. Does your system have  memcpy() [yes]? 
  90. Does your system have  memcmp() [yes]? 
  91. Does your system have  memchr() [yes]? 
  92. Does your system have  memset() [yes]? 
  93. Does your system have  mkdir() [yes]? 
  94. Does your system have  putenv() [yes]? 
  95. Does your system have  strchr() [yes]? 
  96. Does your system have  strrchr() [yes]? 
  97. Does your system have  strpbrk() [yes]? 
  98. Does your system have  strspn() [yes]? 
  99. Does your system have  strcspn() [yes]? 
  100. Does your system have  strtok() [yes]? 
  101. Does your system have  symlink() [yes]? 
  102. Does your system have  strerror() [yes]? 
  103.  
  104. The news system uses a database package, typically the old "dbm"
  105. library from Version 7 or a lookalike, as an indexing system.  We
  106. supply a version of the "dbz" library, which is faster than "dbm",
  107. uses much less disk space, and is program-compatible (although
  108. it is *not* file-compatible, so anything else using the database
  109. [notably NNTP, if applicable] has to be relinked with it).  Dbz
  110. is usually preferable to dbm, barring major backward-compatibility
  111. problems.  Do you want to use our "dbz" library [no]? 
  112. Presumably you want to use the dbm library or some local
  113. equivalent, then.  What is the compile option, or filename,
  114. needed to get it [-ldbm]? 
  115. Does your dbm/dbz have a dbmclose() function [no]? 
  116. Does the store() function in your dbm/dbz return a
  117. value (some old dbms did not) [yes]? 
  118.  
  119. Many systems, notably older ones, have implementations of the Standard
  120. I/O library ("stdio") in which fgets, fputs, fread, and fwrite are
  121. quite slow.  We supply versions of these functions which are faster
  122. than those in any stdio we know; they are compatible with most old
  123. AT&T-derived stdios.  (They tend not to work on modern System V,
  124. but the modern System V stdio is respectably fast.)  They can be a
  125. major performance win for C News.  There is a fairly thorough
  126. compatibility check run after the library is built; as far as we
  127. know, if the test works, the functions do (even on SunOS 4.0).
  128. Do you want to use our fast stdio library [no]? 
  129.  
  130. The strchr() function is usually slower than in-line C code
  131. when small strings are involved, unless your compiler is very
  132. clever and can generate in-line code for strchr().  Is your
  133. compiler that good (okay to guess) [yes]? 
  134.  
  135. Modern Unixes can generally use the setuid() system call to set the
  136. real and effective user ids to the current effective user id.  In
  137. old Unixes, only "root" can change the real user id.  This causes
  138. various problems for C News.  C News provides a small program named
  139. "setnewsids" to run setuserid-root; all it does is change user and
  140. group ids and then execute C News "relaynews".  It is needed only on
  141. uncooperative systems.  Relaynews invokes it automatically if needed
  142. (and it then invokes relaynews in return).  Can this system do
  143. setuid(geteuid()) to change the real uid/gid [yes]? 
  144.  
  145. Some systems have header files that others lack, and C News
  146. is prepared to fake missing ones.
  147. Does your system have an ANSI-C-conforming <string.h> [yes]? 
  148. Does your system have an ANSI-C-conforming <stdlib.h> [yes]? 
  149. Does your system have an ANSI-C-conforming <stddef.h> [yes]? 
  150. Does your system have <sys/timeb.h> [yes]? 
  151.  
  152. Very old Unix systems needed the order of object modules in a library
  153. chosen very carefully.  V7 introduced "ranlib" which removes the need
  154. for this.  Recent System Vs have had the same facility built into "ar"
  155. (look for the "symdef" feature in the "ar" manual page) so "ranlib"
  156. is not needed.  Does your system use ranlib [yes]? 
  157.  
  158. Historically the C compiler is named "cc", but this is not true on
  159. some systems, and on others there are several different C compilers.
  160. What is the name of the C compiler to be used [gcc]? 
  161.  
  162. Historically the only normal compilation option needed for most
  163. programs is -O, but again compilers, especially newer ones, differ.
  164. What options should be given to the compiler [-O2]? 
  165.  
  166. The final linking ("ld") step of compiling might need an option,
  167. such as -n or -i, to produce the preferred form of executable file.
  168. On most modern systems the default is right.  What options, if any,
  169. should be given for linking [-s]? 
  170.  
  171. On unusual systems it may be necessary to link C News programs with
  172. libraries other than the usual C library.  These can be specified as
  173. either full pathnames or -l... options.  What libraries, in addition
  174. to the one(s) picked up automatically by the compiler, should be used
  175. when linking C News []? 
  176.  
  177. Does your system have a "hostname" command [yes]? 
  178.  
  179. C News tries to limit the backlog of news batches spooled up for
  180. transmission to a site, to control use of disk space.  To do this,
  181. it needs to be able to determine the length of the queue of news
  182. batches for a particular site.  This is UUCP-version-dependent.
  183. There is a good chance that you will have to customize the "queuelen"
  184. program.  C News knows about several versions:
  185.     hdb    Honey DanBer, aka Basic Networking Utilities
  186.     sub    old uucp with subdirectories (e.g. /usr/spool/uucp/C.)
  187.     old    very old uucp, no subdirectories
  188.     pre    prehistoric uucp, no subdirectories, no -g option on uux
  189.     null    don't run uucp or don't care about queue lengths
  190. Which one is most appropriate [hdb]? 
  191.  
  192. C News often wants to ask how much disk space is available.  The
  193. format of output from the "df" command unfortunately varies a lot,
  194. as does the availability of a system call to get the same information.
  195. C News knows about several different versions (the first three are
  196. preferred):
  197.     statfs    system with standard statfs() (SunOS, 4.4BSD, not System V)
  198.     ustat    system with ustat() (most System Vs)
  199.     ultrix    DEC Ultrix with DEC's own bizarre statfs()
  200.     bsd    4.2/4.3BSD
  201.     sysv    old System Vs
  202.     xenix    some (all?) Xenixes; some System Vs, e.g. Microport, HP?
  203.     sgi    Silicon Graphics Iris systems
  204.     v7    plain old style:  no headers or fluff, just name and number
  205.     null    don't know or don't care how much space is available
  206. Which one is most appropriate [statfs]? 
  207.  
  208. Some "df" commands, especially on old systems, must be given the
  209. name of a device.  Modern ones can be given any directory name and
  210. the system handles the details of figuring out what device is meant.
  211. A few will take a directory only if it is the "top" of a filesystem.
  212. Will "df" accept any directory name as an argument [yes]? 
  213.  
  214. Are you planning to use expire to archive news on disk [no]? 
  215.  
  216. Are you particularly short of disk space [no]? 
  217. You may want to inspect "spacefor" to make sure its defaults
  218. for things like desired free space are appropriate for your
  219. system, although the defaults are fairly conservative.
  220.  
  221. It is very difficult to do anything useful with incoming news when
  222. there is no space for it.  Normally, C News simply discards it and
  223. mails a trouble report.  On a single-user system, it may be better
  224. to just have the news reception stall until more space becomes
  225. available.  Warning:  this may stall processing of other incoming
  226. traffic, e.g. mail, as well, and the queue of unprocessed traffic
  227. may well grow until your disk fills up.  Should news reception
  228. stall if space gets short [no]? 
  229.  
  230. News processing is much more efficient when done in bulk, so C News
  231. normally just saves incoming news and processes it once an hour.
  232. If you have ample resources and are wildly impatient to make news
  233. available the instant it arrives, that is expensive but possible.
  234. Do you want immediate processing [no]? 
  235.  
  236. Are you running C News on a group of machines hooked together with NFS,
  237. run essentially as a single system with a single administration,
  238. with articles filed on one "server" machine [no]? 
  239.  
  240. Several programs need to know an overall name for the system news is
  241. being run on, where "system" may include multiple machines if they
  242. share a common set of control files and articles; this is used in
  243. article headers and related places.  For uucp sites, this usually
  244. should be the uucp name.  It is VITAL that you and your neighboring
  245. sites agree on this name -- if their news systems know you by a
  246. different name, or even a slightly-different variation of the same
  247. overall name, there will be trouble.  What is the name of the
  248. overall system for news purposes [nowhere]? 
  249.  
  250. The "From:" lines of news postings, on the other hand, should carry
  251. a mailing address, which in particular should be a domain address
  252. for sites that have one.  What is the mailing-address name of this
  253. system, preferably a domain address [nowhere.uucp]? 
  254.  
  255. What is the name of the organization, for insertion into articles
  256. posted from here [Godcorp]? 
  257.  
  258. Manual pages are normally stored in a tree structure under /usr/man.
  259. Local practices vary a great deal, however, and System V has also
  260. introduced some bizarre distortions into this once-simple structure.
  261. What is the top-level manual-page directory [/usr/man]? 
  262.  
  263. C News adds manual pages to chapters 1 (programs), 5 (files), and
  264. 8 (administrative programs).  These chapter numbers have changed
  265. in some variants of Unix.  Also, originally pages from chapter 5 (for
  266. example) were stored in /usr/man/man5.  This has also changed in
  267. some variants.  Has your system made such changes [no]? 
  268.  
  269. The "rnews" and "cunbatch" commands (which are identical, the latter
  270. being purely for backward compatibility with seriously-old systems)
  271. have to be installed somewhere where uucp can find them to execute
  272. them.  It is not normally necessary for users to be able to run
  273. them, so they need not go in the directories searched for normal
  274. commands... although uucp often searches only those directories.
  275. What directory should "rnews" and "cunbatch" go in [/usr/bin]? 
  276.  
  277. Our "postnews", "readnews", and "checknews" are included mostly for
  278. completeness.  They are very simple and crude compared to the user
  279. interface many users are accustomed to.  As far as we know, B News
  280. (or other) versions should run fine with C News.  If you are already
  281. running such user-interface software, you may not want to change.
  282. Do you want to install our user-interface programs [no]? 
  283.  
  284. The "inews" command(s) should
  285. go in one of the directories searched for normal commands, so users
  286. can run them without special arrangements.  What directory should
  287. these commands go in [/usr/bin]? 
  288.  
  289. For replies to control messages, C News invokes "mail" (typically
  290. /bin/mail unless you make special arrangements) with either an
  291. Internet-style "@" address or a uucp-style "!" address.  Internet
  292. style is probably better... if your mailer supports it at all.
  293. Will "mail" handle "@" addresses [yes]? 
  294.  
  295. The ihave/sendme protocol, although marginally useful in some cases,
  296. is a security hole -- it lets another site ask for any article by
  297. Message-ID, and if your Message-IDs are predictable enough (which
  298. C News's generally are not, mind you), that site can get any article
  299. currently on your system.  Do you have any newsgroups containing
  300. confidential or proprietary material [no]? 
  301.  
  302. building doit.bin...
  303. done
  304.  
  305. building doit.news...
  306. done
  307.  
  308. building again.root...
  309. done
  310.  
  311.  
  312. saving defaults...
  313. done
  314.  
  315. You should now run doit.root as root, doit.bin as root, doit.news
  316. as news, and again.root as root, in that order.  (This assumes
  317. that the source directories are owned by root.  If you need to do
  318. installation work by hand, run 'doit.bin -i' as the owner; this will
  319. create the programs but won't install them.)  (It is not necessary
  320. to log in as these users; use of 'su' suffices.)  Finally, you will
  321. want to add the contents of 'cron', or something similar, to your
  322. cron's work-to-be-done file(s), and the contents of 'rc', or something
  323. similar, to /etc/rc or whatever your system executes when booting.
  324.  
  325. "make gclean" will clean up everything afterwards.  "make lclean"
  326. does a less drastic cleanup affecting only the library directories.
  327. "make spotless" does "make gclean" and also removes the doit files.
  328.  
  329. Good luck and happy news reading.
  330. fuzzy:~/cnews/conf# exit
  331. exit
  332.  
  333. Script done on Fri Sep  2 23:42:01 1994
  334.