home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume15 / rnalib2 / part02 < prev    next >
Encoding:
Text File  |  1990-10-05  |  26.0 KB  |  825 lines

  1. Newsgroups: comp.sources.misc
  2. X-UNIX-From: otello!i2ack!venta@italy.sublink.org
  3. from: venta@i2ack.sublink.org (Paolo Ventafridda)
  4. subject: v15i012: RNALIB_20/part02
  5. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  6.  
  7. Posting-number: Volume 15, Issue 12
  8. Submitted-by: venta@i2ack.sublink.org (Paolo Ventafridda)
  9. Archive-name: rnalib2/part02
  10.  
  11. #!/bin/sh
  12. # This is part 02 of RNALIB_20
  13. if touch 2>&1 | fgrep '[-amc]' > /dev/null
  14.  then TOUCH=touch
  15.  else TOUCH=true
  16. fi
  17. # ============= CREDITS ==============
  18. echo "x - extracting CREDITS (Text)"
  19. sed 's/^X//' << 'SHAR_EOF' > CREDITS &&
  20. X------------------------------------------------------------------------------
  21. X
  22. X                  RNALIB 2.0  
  23. X                 
  24. X             Copyright (c) 1989,1990 by Paolo Ventafridda
  25. X
  26. X
  27. X                                      ***    **       *            
  28. X                                      **            **            
  29. X          ****   ** ***   ****       **   ***     *****   *****  
  30. X        **  **   *** ** **  **   *****    **      **    **      
  31. X       **       **  ** ******  **  **    **      **     ****   
  32. X      **  **   **     **      **  **    **      ** *      **  
  33. X      ****   ****     ****    *** **  ****      **   *****   
  34. X                     (Who Wrote It?)
  35. X
  36. X
  37. XThe RNALIB software was developed to be used inside the italian uucp
  38. Xnetwork 'sublink' as automatic source for documents, papers, maps,
  39. Xand also for 'netware'. A first release of RNA (1.0) was distributed
  40. Xinside comp.sources.misc in August 1989; that relase has little to
  41. Xshare with the 2.0. I got a copy of 'netlib' software from AT&T, and
  42. Xi kept their best ideas while designing the 2.0. I want to point out
  43. Xthat NO part of netlib was used, copied or cloned, except for some
  44. Xkind of messages (thanks at&t grammars!). Actually RNA 2.0 might look
  45. Xlike netlib, from the user point of view.
  46. X
  47. X
  48. X                       Special Credits to:
  49. X
  50. X         -----------------------------------------------------
  51. X       Marco Lorenzini, Bologna, Italy  (marlor@gear.sublink.org)
  52. X         -----------------------------------------------------
  53. X
  54. X     He took the beta development since 2.0 beta 1.11. That version
  55. X     was 33K long...
  56. X     Contributed with precious extensions for file compression and 
  57. X     uusend/uucp usage through the 'via' field. We got to 52K ..!
  58. X     He also took the deep beta-testing of the program, doing a
  59. X     great job. 
  60. X
  61. X
  62. XCredits also to:
  63. X
  64. X- Lele Gaifas, Rovereto, Italy     (lele@idea.sublink.org)   
  65. X
  66. X    sep.89
  67. X    Contributed with 'PrintSumm', 'CutMail', 'ListLib'
  68. X    'StripPermAndLink' and with many good ideas, following the project
  69. X    from very close. Actually under the IT Army.
  70. X
  71. X- Enrico Palmerini, University of L'Aquila, Italy. (palmer@univaq.sublink.org)
  72. X
  73. X
  74. XFinally, credits are given to Kent Landfield (uunet!ssbell!kent)
  75. Xfor the 'Copyright' notice taken from its 'rkive' program, and to
  76. XEric Grosse (ehg@research.att.com), author of the latest (?) version of
  77. X'netlib', AT&T labs. I could not install 'netlib', and i found
  78. Xthe documentation pretty hostile; that's why i made 'rna' ;-)
  79. XThough rna was made from scratch, i would consider netlib the logic
  80. Xfather of rnalib; i took some messages from netlib/mess which i 
  81. Xfound useful, along with some other good ideas. Header parsing was
  82. Xdeducted from RFC822. 
  83. X
  84. XRna 2.0 basic utilities were ready in september 1989. At that time 
  85. XRNA was a 19K shell script; i thought to be closed to the final version
  86. Xwhen i found serious problems inside the code. I got sick of the shell
  87. Xand decided to give up for a while. I started back working on the
  88. Xshell script in january 90; it might sound stupid for a shell program,
  89. Xbut i found it hard to patch and to get to a working version. The 19K
  90. Xcode was now 33K long; rnalib 2.0 was at its beta version 1.09.
  91. XThen came Marco (marlor@gear.sublink.org), and we started working
  92. Xtogether on the project, using e-mail for xchanging ideas and routines.
  93. XWe got to beta release 1.16 in March 1990. Then i married, then it was
  94. Xvacation's time, and finally we got to 1.17 which is the current version.
  95. X
  96. XThis is probably the longest shell script i will
  97. Xever write in my life; probably the last one also... I did my best to
  98. Xmake it readable and structured; there are a lot of comments which i
  99. Xhope someone will read ;-)
  100. X
  101. X                venta@i2ack.sublink.org
  102. X                september 1990
  103. X
  104. XHISTORY
  105. X-------
  106. X
  107. XJul 89        Beta testing 1.0
  108. XAug 89        RNA 1.0 in comp.sources.misc
  109. XSep 89        basic utilities for the 2.0
  110. XJan 90        final hacks on the source
  111. XFeb 90        Beta testing 2.0, marlor@gear adds new features
  112. XMar 90          2.0 beta 1.16: 52K of code. Added 'pathsizing'.
  113. XApr 90        sco Unix working release by marlor. Start of docs..sigh
  114. X---
  115. XSep 90        the end
  116. X
  117. X
  118. X------------------------------------------------------------------------------
  119. SHAR_EOF
  120. $TOUCH -am 0915012590 CREDITS &&
  121. chmod 0644 CREDITS ||
  122. echo "restore of CREDITS failed"
  123. set `wc -c CREDITS`;Wc_c=$1
  124. if test "$Wc_c" != "4155"; then
  125.     echo original size 4155, current size $Wc_c
  126. fi
  127. # ============= MAKE_RNA ==============
  128. echo "x - extracting MAKE_RNA (Text)"
  129. sed 's/^X//' << 'SHAR_EOF' > MAKE_RNA &&
  130. X:
  131. X# MAKE_RNA for rnalib 2.0    venta@i2ack
  132. Xecho "Making a faster and smaller version of RNA, wait please.."
  133. Xtest -s RNA || { echo "Cannot find RNA - stop"; exit; }
  134. Xrm -f XRNA /tmp/TMPRNA 2>/dev/null
  135. Xecho ":\n# RNALIB 2.0  by venta@i2ack and marlor@gear .SUBLINK.ORG" >XRNA 
  136. X# Cant use pipe here, file is too big and pipe misses lines ;-(
  137. Xgrep -v '^#' RNA >/tmp/TMPRNA; strings -1 /tmp/TMPRNA >>XRNA
  138. Xchmod 755 XRNA
  139. Xecho "Done. Now you also have an executable version of RNA called \"XRNA\""
  140. Xrm /tmp/TMPRNA
  141. SHAR_EOF
  142. $TOUCH -am 0916131490 MAKE_RNA &&
  143. chmod 0755 MAKE_RNA ||
  144. echo "restore of MAKE_RNA failed"
  145. set `wc -c MAKE_RNA`;Wc_c=$1
  146. if test "$Wc_c" != "502"; then
  147.     echo original size 502, current size $Wc_c
  148. fi
  149. # ============= PROBLEMS ==============
  150. echo "x - extracting PROBLEMS (Text)"
  151. sed 's/^X//' << 'SHAR_EOF' > PROBLEMS &&
  152. X
  153. X------------------------------------------------------------------------------
  154. X
  155. X                                    lll      ii    bbb     
  156. X                                    ll             bb     
  157. X         rr rrr  nnnnn    aaaa     ll     iii     bb     
  158. X         rrr rr nn  nn      aa    ll      ii     bbbbb  
  159. X        rr  rr nn  nn   aaaaa    ll      ii     bb  bb 
  160. X       rr     nn  nn  aa  aa    ll      ii     bb  bb 
  161. X     rrrr    nn  nn   aaa aa  llll    iiii   bb bbb    (c)
  162. X
  163. X                  RNALIB 2.0  
  164. X            Copyright (c) 1989,1990, by Paolo Ventafridda
  165. X
  166. X               Operator's Guide: Bugs & Problems Hunting
  167. X               =========================================
  168. X
  169. XThis document contains reports from beta-testers and rna operators;
  170. Xcommon problems and possible solutions for various hardware/software
  171. Xconfigurations. Please submit your reports to  venta@i2ack.sublink.org.
  172. X
  173. X
  174. X
  175. X---
  176. X
  177. XDue to the size of RNA, you might get some problems with the shell.
  178. XThis is very likely to happen on 16bit-based xenix/unix systems,
  179. Xsince their shell have a fixed stack . Basically, here's what you can get.
  180. X
  181. X(1)
  182. XDIAGNOSTIC:    sh: RNA: no space
  183. X
  184. XCAUSE:
  185. X    your shell has not enough core space for keeping in memory RNA
  186. X    and its mail. The program does NOT start, so you don't loose
  187. X    rnalib mail.
  188. X
  189. XSOLUTIONS:
  190. X
  191. X    Check that it's really a problem of space. If you have more than
  192. X    one mail inside rnalib' mailbox, remove all but the first and
  193. X    retry executing RNA. If RNA can deal with a single message but
  194. X    crashes with others at the same time, you may try one of the
  195. X    following solutions:
  196. X
  197. X    -     Edit RNA. Remove the very first line, containing ':'.
  198. X        Or, if you own a version with the first line as '#/bin/sh'
  199. X        then remove this one. Then execute RNA with 
  200. X        ' sh RNA ' (also from cron).
  201. X
  202. X    -    Try lowering stack space (ugly!). 
  203. X        Do a copy of your /bin/sh. Do 'hdr /bin/sh and take note
  204. X        of the 'stack size' number. Then execute 'fixhdr -F yyyy sh'
  205. X        where yyyy is a number slightly lower than the old one.
  206. X
  207. X    
  208. X(2)
  209. XDIAGNOSTIC:     RNA: no stack space
  210. X
  211. XCAUSE:
  212. X        Your shell can't stand RNA internal environments.
  213. X        It starts but fails after boot; you (may) loose mail, beware.
  214. X        I am assuming you did not add or remove any ' { } '
  215. X        or brackets; if you modify bracket's position you may
  216. X        get serious problems and need to debug from scratch.
  217. X        Do not modify RNA unless you are 100% sure of what
  218. X        you are doing.  
  219. X
  220. XSOLUTIONS:
  221. X        
  222. X    -    Run RNA with 'sh RNA' also from cron.
  223. X
  224. X    -    Enlarge shell's stack size. Get the current one with
  225. X        ' hdr /bin/sh ', then fix it with 'fixhdr -F yyyy sh'
  226. X        where yyyy is the new size. No warranty! Caution!
  227. X
  228. X    
  229. X(3)
  230. XDIAGNOSTIC:    cannot unlink /usr/spool/mail/rnalib    (sort-of)
  231. X
  232. XCAUSE:
  233. X    
  234. X        You are suffering of strange mail access permissions.
  235. X        Try removing your own mailbox with 'rm' (do a copy
  236. X        before!). Do 'id' and see if you have some 'egid'
  237. X        permissions.
  238. X
  239. XSOLUTION:
  240. X
  241. X        This is a problem of yours, not really an RNA one.
  242. X        Anyway try fixing the 'egid' thing; check that inside
  243. X        /etc/passwd rnalib has a /bin/sh or /bin/csh or nothing
  244. X        at all (defaults to /bin/sh). 
  245. X    
  246. X(4)
  247. XDIAGNOSTIC:
  248. X        RNA fails a 'find' command; everything looks like Ok, but
  249. X        a 'find' causes a 'Memory Fault'.
  250. X
  251. XCAUSE:        It might really be a problem of 'grep'. 
  252. X        At least, on SCO Unix System V 3.2 this was the problem.
  253. X
  254. XSOLUTION:    Search for the 'FindFile' procedure inside RNA source.
  255. X        Replace the line:
  256. X
  257. X                ls -got $FFpath | StripPermAndLink | grep -y $FFchars && {
  258. X
  259. X        with:
  260. X        
  261. X        ls -got $FFpath | StripPermAndLink | fgrep -y $FFchars && {
  262. X                             ^^^^
  263. X
  264. X        (This was included inside source as a %%FIX%% ).
  265. X
  266. X
  267. X(5)  
  268. XSENT BY: palmer@univaq.sublink.org
  269. XDATE: 17/9/1990
  270. XSYSTEM: UNISYS 7000/40 running UNIX sysV R.2.21.02
  271. X---
  272. XE.R. Palmerini - Centro di Calcolo Facolta' di Ingegneria
  273. XUniversita' Degli Studi De L'Aquila (0862-432511)
  274. X---
  275. X
  276. X* RNA could not remove its own mailbox: it was fixed giving to rnalib
  277. X  group 'mail'.
  278. X
  279. X    On UNISYS 7000 under old Unix 2.x problems appear
  280. X    with the StripPermAndLink() function.
  281. X* There was some trouble with 'head': executed by cron, RNA could not
  282. X  find this command. Fixed by putting full pathname to 'head'.
  283. X
  284. X* Along with 'head', some other commands could not be found.
  285. X  Always executed by cron (not by shell), strange 'cannot shift' were
  286. X  appearing, generating ping-pong mails between rna and root (cron owner).
  287. X  Fixed by changing 'shift' with 'shift 2>/dev/null' 
  288. X
  289. XAUTHOR'S NOTE:
  290. X    It could be just a stupid problem of 'PATH'. In this case a simple
  291. X        PATH=yourpaths/as/usual: could solve the whole situation.
  292. X    However i am not sure, since have no 7000/40 at home ;-)
  293. X    So i included PATH declaration inside RNA few hours before shipping!
  294. X
  295. XThere was a patch for the 7000, but basically all you have to do
  296. Xis changing 'shift' with 'shift 2>/dev/null' inside the program,
  297. Xand a major workout on the followings:
  298. X
  299. X359c359
  300. X<     echo "$4\t$5,$6\t$7\t$8"
  301. X---
  302. X>     echo "$3\t$4,$5\t$6\t$7"
  303. X(*** inside StripPermAndLink ***)
  304. X
  305. X402c402
  306. X<     ls -ot $LLpath | StripPermAndLink
  307. X---
  308. X>     ls -got $LLpath | StripPermAndLink
  309. X427c427
  310. X<     ls -ot $FFpath | StripPermAndLink | fgrep -i $FFchars && {
  311. X---
  312. X>     ls -got $FFpath | StripPermAndLink | fgrep -i $FFchars && {
  313. X
  314. XThere's a patch for the 7000/40 which applies to release 2.0 rev.A of RNA.
  315. XDoes nothing but changing shift to shift 2>/dev/null and above things.
  316. XIf you are lazy, this patch is named 'ptc.7000.a'. Use at your own risk!
  317. X        
  318. X
  319. X=== your suggestions will be put here in the next release ===
  320. XPlease give a description of your problems and a solution, if any.
  321. XDon't send big 'diffs' since they are related to versions of RNA
  322. Xwhich are going to be obsoleted.
  323. XIn any case, report:
  324. X1) hardware in use
  325. X2) operating system/release
  326. X3) rna release referring to
  327. X
  328. XThanks a lot, any contributions are welcome.
  329. XRemember not to post too much stuff cause i pay for the traffic ;-(
  330. X
  331. X-- Paolo
  332. SHAR_EOF
  333. $TOUCH -am 0918180990 PROBLEMS &&
  334. chmod 0644 PROBLEMS ||
  335. echo "restore of PROBLEMS failed"
  336. set `wc -c PROBLEMS`;Wc_c=$1
  337. if test "$Wc_c" != "5845"; then
  338.     echo original size 5845, current size $Wc_c
  339. fi
  340. # ============= README.FIRST ==============
  341. echo "x - extracting README.FIRST (Text)"
  342. sed 's/^X//' << 'SHAR_EOF' > README.FIRST &&
  343. X
  344. XRNALIB 2.0 - September 1990
  345. X
  346. XHello. Start from OPER.GUIDE. Don't panic, it won't take long.
  347. XI hate long docs too ;-)
  348. X
  349. X            Paolo
  350. X
  351. X
  352. SHAR_EOF
  353. $TOUCH -am 0911003290 README.FIRST &&
  354. chmod 0644 README.FIRST ||
  355. echo "restore of README.FIRST failed"
  356. set `wc -c README.FIRST`;Wc_c=$1
  357. if test "$Wc_c" != "130"; then
  358.     echo original size 130, current size $Wc_c
  359. fi
  360. # ============= black ==============
  361. echo "x - extracting black (Text)"
  362. sed 's/^X//' << 'SHAR_EOF' > black &&
  363. X# Blacklist file for RNA 2.0        - comments start with a #
  364. X# ---------------------------------------------------------------
  365. X# >>>> WARNING: NEVER USE <TABS> HERE!!! CAUTION! BEWARE! <<<<
  366. X# This file is the 'BLACKLIST' one mentioned inside RNA configuration.
  367. X# Usually it should be inside RNADIR and called 'black'.
  368. X# RNA always looks at his mail headers and greps out a 'uucp path'.
  369. X# If this 'path' contains ANY of the following words, that origin is
  370. X# considered 'blacklisted' and requests are denied (rejected).
  371. X# You can blacklist users, systems, networks... If you put a simple
  372. X# '!' on a single line, RNA will reject all requests coming from the
  373. X# UUCP worlds. If you want to blacklist a backbone but NOT its sub-hosts,
  374. X# you necessarily need to specify users inside that backbone with lines
  375. X# such as 'host!user1'  'host!user2' etc.
  376. X# If you simply specify 'host' than all sites coming through that host
  377. X# will match the blacklist and won't be accepted.
  378. X# Do NOT put *any empty line: a blank line is taken as end-of-file 
  379. X# by RNA, and all the rest is ignored. Beware...
  380. X# Everything is case-sensitive here. 
  381. X#
  382. Xbadhost!baduser
  383. Xbadgateway
  384. SHAR_EOF
  385. $TOUCH -am 0918172290 black &&
  386. chmod 0644 black ||
  387. echo "restore of black failed"
  388. set `wc -c black`;Wc_c=$1
  389. if test "$Wc_c" != "1143"; then
  390.     echo original size 1143, current size $Wc_c
  391. fi
  392. # ============= deliver.sh ==============
  393. echo "x - extracting deliver.sh (Text)"
  394. sed 's/^X//' << 'SHAR_EOF' > deliver.sh &&
  395. X:
  396. X# Deliver script for RNALIB 2.0      - by  venta@i2ack.sublink.org
  397. X#
  398. X# This script is for the 'deliver' mail package by Chip Salzenberg.
  399. X# Put it inside rnalib home directory as .deliver, and you will get
  400. X# sequential processing of RNA mail, instead of parallel ones.
  401. X# Carefully check everything is ok, or your system will get a bunch
  402. X# of dangerous sessions spreading around as hells.
  403. X# Note#1: Chip has sent out new patches for his 'deliver'. Maybe if
  404. X#         you have this new release something will not work, or 
  405. X#         (probably) will work much better ;-)
  406. X#
  407. X# Note#2: THIS SCRIPT IS NOT SUPPORTED. It was written months ago
  408. X#         while trying to find a solution in order to run RNA on a
  409. X#         286 system. The 286 shell shouts and dies running RNA.
  410. X#         When RNA was not as big, still there was a chance to make it
  411. X#         work without core dumps (!). This is just an example of
  412. X#         how 'deliver' can be used with rna. It's an old example,
  413. X#         found in an old directory of an old release of RNA.
  414. X#         So take it as a simple idea of how to do it.
  415. X#         If you run 'deliver' you could use it for having RNA processing
  416. X#         incoming mails 'realtime'. This script is supposed to process
  417. X#         them once at a time. 
  418. X#
  419. Xuser=$1
  420. X# MAILBOX=/usr/local/usr/rnalib/box
  421. X
  422. X# create your own lock
  423. Xtouch $HOME/lock.$$
  424. X
  425. X# how many delivers pending?
  426. Xset `ls -l $HOME/lock.* 2>/dev/null | wc -l`
  427. X
  428. X# determine a syncronization wait time; if your system is *fast, then
  429. X# higher the multiply factor
  430. Xsync_time=`expr $1 \* 3`
  431. X
  432. X# first attempt to queue
  433. Xsleep $sync_time
  434. X
  435. X# does a queue exist?
  436. Xwhile test -r $HOME/lock
  437. Xdo
  438. X#    wait until your turn
  439. X    sleep $sync_time
  440. Xdone
  441. X
  442. X#    My turn now!
  443. Xtouch $HOME/lock
  444. Xdate >>account
  445. X# If the next line is  creating stdin errors...
  446. Xcat $HEADER $BODY | deliver -n "$user" 
  447. X# .. jump over the pipe and do it your way!
  448. X# cat $HEADER $BODY >>$MAILBOX
  449. X
  450. X# If you use 'deliver -n' then higher sleep time in order to let deliver
  451. X# complete its mailing, or RNA won't find anything to process!
  452. Xsleep 5
  453. X
  454. X# force an RNA session
  455. X/bin/sh /usr/local/usr/rnalib/RNA 
  456. X
  457. X# remove queue lock: a new RNA session will start
  458. Xrm $HOME/lock 2>/dev/null
  459. X
  460. X# Sleep again to assure that new delivers don't get an already used sync_time.
  461. X# This way it will be harder to happen.
  462. Xsleep $sync_time
  463. Xrm $HOME/lock.$$
  464. X
  465. X# quit living and forget about any further delivery please!
  466. X# ("Trust me, i know what i am doing..")
  467. Xecho "DROP"
  468. SHAR_EOF
  469. $TOUCH -am 0915011890 deliver.sh &&
  470. chmod 0644 deliver.sh ||
  471. echo "restore of deliver.sh failed"
  472. set `wc -c deliver.sh`;Wc_c=$1
  473. if test "$Wc_c" != "2455"; then
  474.     echo original size 2455, current size $Wc_c
  475. fi
  476. # ============= libindex ==============
  477. echo "x - extracting libindex (Text)"
  478. sed 's/^X//' << 'SHAR_EOF' > libindex &&
  479. X# Library Index file for RNA 2.0    - comments start with a #
  480. X# ---------------------------------------------------------------
  481. X# >>>> WARNING: NEVER USE <TABS> HERE!!! CAUTION! BEWARE! <<<<
  482. X# This file is the 'LIBIND' one mentioned inside RNA configuration.
  483. X# Usually it should be inside RNADIR and called 'libindex'.
  484. X# You need at least one 'home' directory for the RNA-USER; this 
  485. X# directory is the one were rna will look for HELP, INDEX etc. whenever
  486. X# the request did not specified a library. It's also called
  487. X# 'system library' (do not misconfuse with RNADIR, which is the
  488. X# administrator's library).
  489. X# So the 'system library' HAS to be called 'DEFAULT'.
  490. X# Without a 'DEFAULT' library, RNA will not work.
  491. X# You can choose different library names for the same paths, no problem.
  492. X#
  493. XDEFAULT /usr/local/rnalib/system
  494. Xsystem  /usr/local/rnalib/system
  495. Xnetware /usr/local/rnalib/net
  496. Xdocs    /usr/local/rnalib/docs
  497. Xpublic  /usr/spool/uucppublic
  498. SHAR_EOF
  499. $TOUCH -am 0918172490 libindex &&
  500. chmod 0644 libindex ||
  501. echo "restore of libindex failed"
  502. set `wc -c libindex`;Wc_c=$1
  503. if test "$Wc_c" != "941"; then
  504.     echo original size 941, current size $Wc_c
  505. fi
  506. # ============= pathsize ==============
  507. echo "x - extracting pathsize (Text)"
  508. sed 's/^X//' << 'SHAR_EOF' > pathsize &&
  509. X# Pathsize file for RNA 2.0        - comments start with a #
  510. X# ---------------------------------------------------------------
  511. X# >>>> WARNING: NEVER USE <TABS> HERE!!! CAUTION! BEWARE! <<<<
  512. X# This file is the 'PATHSIZE' one mentioned inside RNA configuration.
  513. X# Usually it should be inside RNADIR and called 'pathsize'.
  514. X# This is a two-fields database: first field is a uucp path.
  515. X# >Same rules as for 'black' (blacklistings)  and 'white' apply here.
  516. X# The second field of each line is called 'credits', and it's the
  517. X# number of bytes allowed to be transmitted toward that path.
  518. X# When 'credits' is 0 or a negative number, RNA will reject requests
  519. X# and notify origin about this matter.
  520. X# This database is updated automatically by the program; however you
  521. X# can change with an editor all fields. 
  522. X# Please take care:
  523. X# - do not put comments inside the database (only at the beginning,
  524. X#   like this message).
  525. X# - do not put blank lines inside the database
  526. X# - do not use <TABS> !!!!!
  527. X# - *leave the first example line* since RNA gets angry whenever this
  528. X#   database is empty and is being used.
  529. X# - if you want a host to be given infinite credit, put the word
  530. X#   'UNLIMITED' as credits.
  531. X#
  532. X# path    credits (in bytes)  example:
  533. X# gear!marlor  9000000        or even
  534. X# host!friend  UNLIMITED
  535. X#
  536. X# * do not remove next line* !
  537. Xnohost!nobody 0
  538. SHAR_EOF
  539. $TOUCH -am 0918161990 pathsize &&
  540. chmod 0644 pathsize ||
  541. echo "restore of pathsize failed"
  542. set `wc -c pathsize`;Wc_c=$1
  543. if test "$Wc_c" != "1335"; then
  544.     echo original size 1335, current size $Wc_c
  545. fi
  546. # ============= white ==============
  547. echo "x - extracting white (Text)"
  548. sed 's/^X//' << 'SHAR_EOF' > white &&
  549. X# Whitelist file for RNA 2.0        - comments start with a #
  550. X# ---------------------------------------------------------------
  551. X# >>>> WARNING: NEVER USE <TABS> HERE!!! CAUTION! BEWARE! <<<<
  552. X# This file is the 'WHITELIST' one mentioned inside RNA configuration.
  553. X# Usually it should be inside RNADIR and called 'white'.
  554. X# RNA always looks at his mail headers and greps out a 'uucp path'.
  555. X# If this 'path' contains ANY of the following words, that origin is
  556. X# considered 'privileged' and the sender can specify alternate output
  557. X# destination (see 'external destinations' inside RNA user's guide).
  558. X# Do NOT put *any empty line: a blank line is taken as end-of-file 
  559. X# by RNA, and all the rest is ignored. Beware...
  560. X# Same rules as for 'black' (blacklistings) apply here.
  561. X#
  562. Xyourname
  563. Xtrusthost!trustuser
  564. SHAR_EOF
  565. $TOUCH -am 0918172190 white &&
  566. chmod 0644 white ||
  567. echo "restore of white failed"
  568. set `wc -c white`;Wc_c=$1
  569. if test "$Wc_c" != "793"; then
  570.     echo original size 793, current size $Wc_c
  571. fi
  572. # ============= strings.c ==============
  573. echo "x - extracting strings.c (Text)"
  574. sed 's/^X//' << 'SHAR_EOF' > strings.c &&
  575. X/* A very poor "strings" clone; just what you need for RNA 2.0 ;-)
  576. X * I could do it in bourne shell as well, but -com'on- that would
  577. X * really mean wasting time!
  578. X * I still wonder why my 3b2-600 with UNIX V 3.2. has no "strings".
  579. X * Who cares after all...
  580. X * Use this 'strings' for 'MAKE_RNA' and inside RNA. The only
  581. X * common thing between original 'strings' and this one is the name.
  582. X * This is used twice in the whole package: once inside RNA, with 
  583. X * a single argument (filename), to grep out empty lines.
  584. X * Once also inside MAKE_RNA, with a necessary option '-1' to force it
  585. X * keeping lines with a single valid character (for instance a bracket).
  586. X * No need to do more.
  587. X */
  588. X
  589. X#include <stdio.h>
  590. X
  591. Xmain(argc,argv) 
  592. Xint argc;
  593. Xchar *argv[];
  594. X{
  595. XFILE *fp, *fopen();
  596. Xint car;
  597. X
  598. X
  599. Xif ((strcmp(argv[1],"-1")) == 0) 
  600. X    fp=fopen(argv[2],"r"); 
  601. Xelse 
  602. X    fp=fopen(argv[1],"r");
  603. X
  604. Xwhile (( car=getc(fp)) != EOF) 
  605. X        if (car >32) {
  606. X                putc(car,stdout);
  607. X                while (( car=getc(fp)) != 10) putc(car,stdout);
  608. X        putc(10,stdout);
  609. X        }
  610. Xfclose(fp);
  611. X}
  612. SHAR_EOF
  613. $TOUCH -am 0916215390 strings.c &&
  614. chmod 0644 strings.c ||
  615. echo "restore of strings.c failed"
  616. set `wc -c strings.c`;Wc_c=$1
  617. if test "$Wc_c" != "1064"; then
  618.     echo original size 1064, current size $Wc_c
  619. fi
  620. # ============= ptc.7000.a ==============
  621. echo "x - extracting ptc.7000.a (Text)"
  622. sed 's/^X//' << 'SHAR_EOF' > ptc.7000.a &&
  623. X
  624. X22c22
  625. X< RNADIR=/work/rnalib/src/RNA
  626. X---
  627. X> RNADIR=/usr/local/src/rnalib
  628. X28c28
  629. X< TMPDIR=$RNADIR
  630. X---
  631. X> TMPDIR=$RNADIR/tmp
  632. X49c49
  633. X< UNAME=univaq.sublink.ORG
  634. X---
  635. X> UNAME=otello.sublink.ORG
  636. X59c59
  637. X< POSTMASTER=palmer@univaq.sublink.org
  638. X---
  639. X> POSTMASTER=venta@otello.sublink.org
  640. X96c96
  641. X< DEBUG=
  642. X---
  643. X> DEBUG=1
  644. X108c108
  645. X< UUENCODE=/u1/uuencode
  646. X---
  647. X> UUENCODE=
  648. X119c119
  649. X< BTOA=/u1/btoa
  650. X---
  651. X> BTOA=/usr/local/bin/btoa
  652. X124c124
  653. X< COMPRESS=/u1/compress
  654. X---
  655. X> COMPRESS=/usr/local/bin/compress
  656. X137c137
  657. X< UUSEND=/usr/bin/uusend
  658. X---
  659. X> UUSEND=/usr/local/bin/uusend
  660. X152c152
  661. X< STRINGS=/usr/ucb/strings
  662. X---
  663. X> STRINGS=/usr/local/bin/strings
  664. X348,349c348,349
  665. X<     test "$1" = "$search" && shift 2>/dev/null && echo $1 && break
  666. X<     shift 2>/dev/null
  667. X---
  668. X>     test "$1" = "$search" && shift && echo $1 && break
  669. X>     shift
  670. X359c359
  671. X<     echo "$4\t$5,$6\t$7\t$8"
  672. X---
  673. X>     echo "$3\t$4,$5\t$6\t$7"
  674. X402c402
  675. X<     ls -ot $LLpath | StripPermAndLink
  676. X---
  677. X>     ls -got $LLpath | StripPermAndLink
  678. X427c427
  679. X<     ls -ot $FFpath | StripPermAndLink | fgrep -i $FFchars && {
  680. X---
  681. X>     ls -got $FFpath | StripPermAndLink | fgrep -i $FFchars && {
  682. X432c432
  683. X<     shift 2>/dev/null; shift 2>/dev/null
  684. X---
  685. X>     shift; shift
  686. X474c474
  687. X<     shift 2>/dev/null
  688. X---
  689. X>     shift
  690. X488c488
  691. X<     shift 2>/dev/null
  692. X---
  693. X>     shift
  694. X703c703
  695. X<     ps_path=$1; ps_credit=$2; shift 2>/dev/null; shift 2>/dev/null
  696. X---
  697. X>     ps_path=$1; ps_credit=$2; shift; shift
  698. X717c717
  699. X<     ps_path=$1; ps_credit=$2; shift 2>/dev/null; shift 2>/dev/null
  700. X---
  701. X>     ps_path=$1; ps_credit=$2; shift; shift
  702. X1091c1091
  703. X< set `/usr/ucb/head -1 $MBOX_CUT`; UUCP_SENDER=$2
  704. X---
  705. X> set `head -1 $MBOX_CUT`; UUCP_SENDER=$2
  706. X1196c1196
  707. X<         shift 2>/dev/null;;
  708. X---
  709. X>         shift;;
  710. X1203c1203
  711. X<                 shift 2>/dev/null
  712. X---
  713. X>                 shift
  714. X1214c1214
  715. X<                         shift 2>/dev/null
  716. X---
  717. X>                         shift
  718. X1225c1225
  719. X<                 shift 2>/dev/null
  720. X---
  721. X>                 shift
  722. X1236c1236
  723. X<                         shift 2>/dev/null
  724. X---
  725. X>                         shift
  726. X1247c1247
  727. X<                 shift 2>/dev/null
  728. X---
  729. X>                 shift
  730. X1258c1258
  731. X<                         shift 2>/dev/null
  732. X---
  733. X>                         shift
  734. X1268c1268
  735. X<                 shift 2>/dev/null
  736. X---
  737. X>                 shift
  738. X1279c1279
  739. X<                         shift 2>/dev/null
  740. X---
  741. X>                         shift
  742. X1289c1289
  743. X<                 shift 2>/dev/null
  744. X---
  745. X>                 shift
  746. X1300c1300
  747. X<                         shift 2>/dev/null
  748. X---
  749. X>                         shift
  750. X1310c1310
  751. X<                 shift 2>/dev/null
  752. X---
  753. X>                 shift
  754. X1321c1321
  755. X<                         shift 2>/dev/null
  756. X---
  757. X>                         shift
  758. X1329c1329
  759. X<             shift 2>/dev/null
  760. X---
  761. X>             shift
  762. X1332c1332
  763. X<                 test "$1" != "@@" && from=$1 && shift 2>/dev/null
  764. X---
  765. X>                 test "$1" != "@@" && from=$1 && shift
  766. X1338c1338
  767. X<             shift 2>/dev/null
  768. X---
  769. X>             shift
  770. X1341c1341
  771. X<                 test "$1" != "@@" && destination=$1 && shift 2>/dev/null
  772. X---
  773. X>                 test "$1" != "@@" && destination=$1 && shift
  774. X1346c1346
  775. X<             shift 2>/dev/null
  776. X---
  777. X>             shift
  778. X1349c1349
  779. X<                 test "$1" != "@@" && with=$1 && shift 2>/dev/null
  780. X---
  781. X>                 test "$1" != "@@" && with=$1 && shift
  782. X1354c1354
  783. X<             shift 2>/dev/null
  784. X---
  785. X>             shift
  786. X1357c1357
  787. X<                 test "$1" != "@@" && via=$1 && shift 2>/dev/null
  788. X---
  789. X>                 test "$1" != "@@" && via=$1 && shift
  790. X1364c1364
  791. X<             shift 2>/dev/null;;
  792. X---
  793. X>             shift;;
  794. X1380c1380
  795. X<             shift 2>/dev/null
  796. X---
  797. X>             shift
  798. X1519,1520c1519,1520
  799. X< action=$1; shift 2>/dev/null; argument=$1; shift 2>/dev/null; from=$1; shift 2>/dev/null; destination=$1
  800. X< shift 2>/dev/null; with=$1; shift 2>/dev/null; via=$1
  801. X---
  802. X> action=$1; shift; argument=$1; shift; from=$1; shift; destination=$1
  803. X> shift; with=$1; shift; via=$1
  804. X1696c1696
  805. X<         shift 2>/dev/null; shift 2>/dev/null;;
  806. X---
  807. X>         shift; shift;;
  808. X1702c1702
  809. X< shift 2>/dev/null
  810. X---
  811. X> shift
  812. X
  813. SHAR_EOF
  814. $TOUCH -am 0918103990 ptc.7000.a &&
  815. chmod 0644 ptc.7000.a ||
  816. echo "restore of ptc.7000.a failed"
  817. set `wc -c ptc.7000.a`;Wc_c=$1
  818. if test "$Wc_c" != "3442"; then
  819.     echo original size 3442, current size $Wc_c
  820. fi
  821. echo "End of part 2, continue with part 3"
  822. exit 0
  823.  
  824.