home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume31 / mbox / part11 < prev    next >
Encoding:
Text File  |  1992-07-09  |  13.7 KB  |  454 lines

  1. Newsgroups: comp.sources.misc
  2. From: Volker.Schuermann@unnet.w.open.de@unnet (Volker Schuermann)
  3. Subject:  v31i027:  mbox - A BBS for UNIX and MINIX v1.6 PL10, Part11/11
  4. Message-ID: <1992Jul10.050527.27933@sparky.imd.sterling.com>
  5. X-Md4-Signature: 90a9cd744606bea020e9efbc61aa03d1
  6. Date: Fri, 10 Jul 1992 05:05:27 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Volker.Schuermann@unnet.w.open.de@unnet (Volker Schuermann)
  10. Posting-number: Volume 31, Issue 27
  11. Archive-name: mbox/part11
  12. Environment: MINIX, ISC, ESIX, SVR3
  13. Supersedes: mbox: Volume 29, Issue 63-72
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then feed it
  17. # into a shell via "sh file" or similar.  To overwrite existing files,
  18. # type "sh file -c".
  19. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  20. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  21. # Contents:  Quick.Start addrpatch etc/active etc/face.put.uu
  22. #   etc/inews.sh etc/intro etc/mbd.log etc/mbox.calls etc/mbox.editors
  23. #   etc/mbox.seq etc/mbox.who etc/pd.log etc/pd.script
  24. #   etc/reflector.log etc/tset src/coreleft.c src/mbrsh.c
  25. #   src/patchlevel.h src/undef.c
  26. # Wrapped by kent@sparky on Thu Jul  9 23:26:05 1992
  27. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  28. echo If this archive is complete, you will see the following message:
  29. echo '          "shar: End of archive 11 (of 11)."'
  30. if test -f 'Quick.Start' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'Quick.Start'\"
  32. else
  33.   echo shar: Extracting \"'Quick.Start'\" \(497 characters\)
  34.   sed "s/^X//" >'Quick.Start' <<'END_OF_FILE'
  35. X# If [/mbox] shouldn't be the HOME, you have to change the following files:
  36. X#
  37. X# [HOME/src/Makefile] -> Entry MBOXHOME
  38. X# [HOME/src/mbox.h]   -> Entry HOME
  39. X#
  40. X# DON'T use this script, if you've made the changes!!!
  41. X
  42. X
  43. X# Create the ix/MBox (BBS) HOME-Directory
  44. X
  45. Xmkdir /mbox
  46. X
  47. X# Copy the Package to HOME
  48. X
  49. Xcp mbox.tar.Z /mbox
  50. X
  51. X# Jump there ...
  52. X
  53. Xcd /mbox
  54. X
  55. X# Unpack all
  56. X
  57. Xuncompress *.Z
  58. Xrm *.Z
  59. Xtar ovx *
  60. Xrm *.tar
  61. X
  62. X# Install the BBS (wrong ID etc. - i.e. testing only)
  63. X
  64. Xmake inst
  65. X
  66. X# Try to start ...
  67. X
  68. Xmbox
  69. X
  70. X
  71. X
  72. X
  73. END_OF_FILE
  74.   if test 497 -ne `wc -c <'Quick.Start'`; then
  75.     echo shar: \"'Quick.Start'\" unpacked with wrong size!
  76.   fi
  77.   # end of 'Quick.Start'
  78. fi
  79. if test -f 'addrpatch' -a "${1}" != "-c" ; then 
  80.   echo shar: Will not clobber existing file \"'addrpatch'\"
  81. else
  82.   echo shar: Extracting \"'addrpatch'\" \(232 characters\)
  83.   sed "s/^X//" >'addrpatch' <<'END_OF_FILE'
  84. XCURDIR=`pwd`
  85. X
  86. Xcd /usr/spool/uucp
  87. X
  88. Xfor i in D.unnet*
  89. X    do    
  90. X        echo -n $i' ... '
  91. X        sed '/From unnet.w.open.DE !/s//From /g' < $i > SED.TMP
  92. X        sed '/From: unnet!/s//From: /g' < SED.TMP > $i
  93. X        echo 'patched.'
  94. X    done
  95. X
  96. Xrm SED.TMP
  97. X
  98. Xcd $CURDIR
  99. END_OF_FILE
  100.   if test 232 -ne `wc -c <'addrpatch'`; then
  101.     echo shar: \"'addrpatch'\" unpacked with wrong size!
  102.   fi
  103.   chmod +x 'addrpatch'
  104.   # end of 'addrpatch'
  105. fi
  106. if test -f 'etc/active' -a "${1}" != "-c" ; then 
  107.   echo shar: Will not clobber existing file \"'etc/active'\"
  108. else
  109.   echo shar: Extracting \"'etc/active'\" \(0 characters\)
  110.   sed "s/^X//" >'etc/active' <<'END_OF_FILE'
  111. END_OF_FILE
  112.   if test 0 -ne `wc -c <'etc/active'`; then
  113.     echo shar: \"'etc/active'\" unpacked with wrong size!
  114.   fi
  115.   # end of 'etc/active'
  116. fi
  117. if test -f 'etc/face.put.uu' -a "${1}" != "-c" ; then 
  118.   echo shar: Will not clobber existing file \"'etc/face.put.uu'\"
  119. else
  120.   echo shar: Extracting \"'etc/face.put.uu'\" \(431 characters\)
  121.   sed "s/^X//" >'etc/face.put.uu' <<'END_OF_FILE'
  122. Xbegin 644 etc/face.put
  123. XM,  P /X    ?__@    /__@    '__     '__ #\  #__ /__ #__ ___@!
  124. XM__!___@!__!___@!__!___@!__A___@!__A___@!__A___@!__Q___ !__Q_
  125. XM_\ !__Q__P !__QX/@ !__YC/  !__YP'/X!__YQ_/\!__]__'\!__]__'\!
  126. XM__^__C\!__^__S\#___?_Q\#___O_A\#___O\ $#___W\  !___W@   ___[
  127. XM  , ?__Y /X /__]O_P '__^__P #___?_@ !___/_   ___C\   ?__P   
  128. XM /__X    /__L    /__'    /_^'@>  /_X'_\  /_ #_X  /_ !_P  /\ 
  129. X6#_@  /P !_   /@ !^   /   \    > 
  130. Xend
  131. END_OF_FILE
  132.   if test 435 -ne `wc -c <'etc/face.put.uu'`; then
  133.     echo shar: \"'etc/face.put.uu'\" unpacked with wrong size!
  134.   else
  135.     echo shar: Uudecoding \"'etc/face.put.uu'\"
  136.     cat 'etc/face.put.uu' | uudecode
  137.     if [ -f 'etc/face.put' ]; then
  138.        rm -f 'etc/face.put.uu'
  139.     fi
  140.   fi
  141.   # end of 'etc/face.put.uu'
  142. fi
  143.  
  144. if test -f 'etc/inews.sh' -a "${1}" != "-c" ; then 
  145.   echo shar: Will not clobber existing file \"'etc/inews.sh'\"
  146. else
  147.   echo shar: Extracting \"'etc/inews.sh'\" \(701 characters\)
  148.   sed "s/^X//" >'etc/inews.sh' <<'END_OF_FILE'
  149. X#---------------------------------------------------------------------------
  150. X#
  151. X#                       ix/MBox  I N E W S . S H
  152. X#          Mailbox-Programm fuer UNIX(-Derivate)
  153. X#            
  154. X#               Volker Schuermann
  155. X#              Wuppertal, FRG, 08.12.1991
  156. X#
  157. X#---------------------------------------------------------------------------
  158. X# Dieses Script uebergibt einen neuen Artikel an INEWS. Dieser Artikel
  159. X# enthaelt bereits einen (fast) kompletten Header.
  160. X#---------------------------------------------------------------------------
  161. X# Parameter:
  162. X#
  163. X# $1  ->  Newsgroup, an die die Datei gesendet werden soll
  164. X# $2  ->  Datei mit Artikel (s.o.)
  165. X# 
  166. X# Beispiel:
  167. X#
  168. X# /usr/lib/news/inews -h < $2
  169. X
  170. X/usr/lib/news/inews -h < $2
  171. X
  172. END_OF_FILE
  173.   if test 701 -ne `wc -c <'etc/inews.sh'`; then
  174.     echo shar: \"'etc/inews.sh'\" unpacked with wrong size!
  175.   fi
  176.   # end of 'etc/inews.sh'
  177. fi
  178. if test -f 'etc/intro' -a "${1}" != "-c" ; then 
  179.   echo shar: Will not clobber existing file \"'etc/intro'\"
  180. else
  181.   echo shar: Extracting \"'etc/intro'\" \(24 characters\)
  182.   sed "s/^X//" >'etc/intro' <<'END_OF_FILE'
  183. XWellcome to ix/MBox BBS
  184. END_OF_FILE
  185.   if test 24 -ne `wc -c <'etc/intro'`; then
  186.     echo shar: \"'etc/intro'\" unpacked with wrong size!
  187.   fi
  188.   # end of 'etc/intro'
  189. fi
  190. if test -f 'etc/mbd.log' -a "${1}" != "-c" ; then 
  191.   echo shar: Will not clobber existing file \"'etc/mbd.log'\"
  192. else
  193.   echo shar: Extracting \"'etc/mbd.log'\" \(0 characters\)
  194.   sed "s/^X//" >'etc/mbd.log' <<'END_OF_FILE'
  195. END_OF_FILE
  196.   if test 0 -ne `wc -c <'etc/mbd.log'`; then
  197.     echo shar: \"'etc/mbd.log'\" unpacked with wrong size!
  198.   fi
  199.   # end of 'etc/mbd.log'
  200. fi
  201. if test -f 'etc/mbox.calls' -a "${1}" != "-c" ; then 
  202.   echo shar: Will not clobber existing file \"'etc/mbox.calls'\"
  203. else
  204.   echo shar: Extracting \"'etc/mbox.calls'\" \(0 characters\)
  205.   sed "s/^X//" >'etc/mbox.calls' <<'END_OF_FILE'
  206. END_OF_FILE
  207.   if test 0 -ne `wc -c <'etc/mbox.calls'`; then
  208.     echo shar: \"'etc/mbox.calls'\" unpacked with wrong size!
  209.   fi
  210.   # end of 'etc/mbox.calls'
  211. fi
  212. if test -f 'etc/mbox.editors' -a "${1}" != "-c" ; then 
  213.   echo shar: Will not clobber existing file \"'etc/mbox.editors'\"
  214. else
  215.   echo shar: Extracting \"'etc/mbox.editors'\" \(628 characters\)
  216.   sed "s/^X//" >'etc/mbox.editors' <<'END_OF_FILE'
  217. X/***************************************************************************/
  218. X/* Diese Datei enthaelt die Liste der verfuegbaren Editoren. Die Struktur  */
  219. X/* ist folgende:                               */
  220. X/*                                       */
  221. X/* Name        Pfad zum Editor                           */
  222. X/* ======================================================================= */
  223. X/* Led       /usr/bin/led                           */
  224. X/* Vi        /usr/bin/vi                           */
  225. X/*                                       */
  226. X/* ACHTUNG: Zwischen Kommentar und Liste EINE Leerzeile einfuegen !       */
  227. X/***************************************************************************/
  228. X
  229. XLed    /usr/bin/bled
  230. XMined    /usr/bin/mined
  231. XVi    /usr/bin/vi
  232. XMicroEmacs    /usr/bin/me
  233. X
  234. END_OF_FILE
  235.   if test 628 -ne `wc -c <'etc/mbox.editors'`; then
  236.     echo shar: \"'etc/mbox.editors'\" unpacked with wrong size!
  237.   fi
  238.   # end of 'etc/mbox.editors'
  239. fi
  240. if test -f 'etc/mbox.seq' -a "${1}" != "-c" ; then 
  241.   echo shar: Will not clobber existing file \"'etc/mbox.seq'\"
  242. else
  243.   echo shar: Extracting \"'etc/mbox.seq'\" \(2 characters\)
  244.   sed "s/^X//" >'etc/mbox.seq' <<'END_OF_FILE'
  245. X1
  246. END_OF_FILE
  247.   if test 2 -ne `wc -c <'etc/mbox.seq'`; then
  248.     echo shar: \"'etc/mbox.seq'\" unpacked with wrong size!
  249.   fi
  250.   # end of 'etc/mbox.seq'
  251. fi
  252. if test -f 'etc/mbox.who' -a "${1}" != "-c" ; then 
  253.   echo shar: Will not clobber existing file \"'etc/mbox.who'\"
  254. else
  255.   echo shar: Extracting \"'etc/mbox.who'\" \(0 characters\)
  256.   sed "s/^X//" >'etc/mbox.who' <<'END_OF_FILE'
  257. END_OF_FILE
  258.   if test 0 -ne `wc -c <'etc/mbox.who'`; then
  259.     echo shar: \"'etc/mbox.who'\" unpacked with wrong size!
  260.   fi
  261.   # end of 'etc/mbox.who'
  262. fi
  263. if test -f 'etc/pd.log' -a "${1}" != "-c" ; then 
  264.   echo shar: Will not clobber existing file \"'etc/pd.log'\"
  265. else
  266.   echo shar: Extracting \"'etc/pd.log'\" \(0 characters\)
  267.   sed "s/^X//" >'etc/pd.log' <<'END_OF_FILE'
  268. END_OF_FILE
  269.   if test 0 -ne `wc -c <'etc/pd.log'`; then
  270.     echo shar: \"'etc/pd.log'\" unpacked with wrong size!
  271.   fi
  272.   # end of 'etc/pd.log'
  273. fi
  274. if test -f 'etc/pd.script' -a "${1}" != "-c" ; then 
  275.   echo shar: Will not clobber existing file \"'etc/pd.script'\"
  276. else
  277.   echo shar: Extracting \"'etc/pd.script'\" \(0 characters\)
  278.   sed "s/^X//" >'etc/pd.script' <<'END_OF_FILE'
  279. END_OF_FILE
  280.   if test 0 -ne `wc -c <'etc/pd.script'`; then
  281.     echo shar: \"'etc/pd.script'\" unpacked with wrong size!
  282.   fi
  283.   # end of 'etc/pd.script'
  284. fi
  285. if test -f 'etc/reflector.log' -a "${1}" != "-c" ; then 
  286.   echo shar: Will not clobber existing file \"'etc/reflector.log'\"
  287. else
  288.   echo shar: Extracting \"'etc/reflector.log'\" \(0 characters\)
  289.   sed "s/^X//" >'etc/reflector.log' <<'END_OF_FILE'
  290. END_OF_FILE
  291.   if test 0 -ne `wc -c <'etc/reflector.log'`; then
  292.     echo shar: \"'etc/reflector.log'\" unpacked with wrong size!
  293.   fi
  294.   # end of 'etc/reflector.log'
  295. fi
  296. if test -f 'etc/tset' -a "${1}" != "-c" ; then 
  297.   echo shar: Will not clobber existing file \"'etc/tset'\"
  298. else
  299.   echo shar: Extracting \"'etc/tset'\" \(21 characters\)
  300.   sed "s/^X//" >'etc/tset' <<'END_OF_FILE'
  301. XTERM=$1
  302. Xexport TERM
  303. X
  304. END_OF_FILE
  305.   if test 21 -ne `wc -c <'etc/tset'`; then
  306.     echo shar: \"'etc/tset'\" unpacked with wrong size!
  307.   fi
  308.   chmod +x 'etc/tset'
  309.   # end of 'etc/tset'
  310. fi
  311. if test -f 'src/coreleft.c' -a "${1}" != "-c" ; then 
  312.   echo shar: Will not clobber existing file \"'src/coreleft.c'\"
  313. else
  314.   echo shar: Extracting \"'src/coreleft.c'\" \(657 characters\)
  315.   sed "s/^X//" >'src/coreleft.c' <<'END_OF_FILE'
  316. X/***************************************************************************/
  317. X/*        PROGRAMM  ix/MBox                           */
  318. X/*             DATEI  coreleft.c                       */
  319. X/*        FUNKTIONEN  coreleft()                       */
  320. X/*             AUTOR  vs (Volker Schuermann/MINIX-Version)           */
  321. X/*  LETZTE AENDERUNG  24.11.1991                       */
  322. X/***************************************************************************/
  323. X
  324. X#ifdef _SYS7
  325. X#include <stdlib.h>
  326. X#else
  327. X#include <stdio.h>
  328. X#include <malloc.h>
  329. X#endif
  330. X
  331. X
  332. Xint coreleft()
  333. X{
  334. X  char *buffer;
  335. X  long size = 32L;
  336. X
  337. X  do{
  338. X    size *= 2;
  339. X    buffer = malloc(size);
  340. X    if(buffer != NULL) free( buffer );
  341. X  }while(buffer != NULL);
  342. X
  343. X  return (int) size;
  344. X}
  345. X
  346. END_OF_FILE
  347.   if test 657 -ne `wc -c <'src/coreleft.c'`; then
  348.     echo shar: \"'src/coreleft.c'\" unpacked with wrong size!
  349.   fi
  350.   # end of 'src/coreleft.c'
  351. fi
  352. if test -f 'src/mbrsh.c' -a "${1}" != "-c" ; then 
  353.   echo shar: Will not clobber existing file \"'src/mbrsh.c'\"
  354. else
  355.   echo shar: Extracting \"'src/mbrsh.c'\" \(725 characters\)
  356.   sed "s/^X//" >'src/mbrsh.c' <<'END_OF_FILE'
  357. X/***************************************************************************/
  358. X/*        PROGRAMM  ix/Mbox                           */
  359. X/*             DATEI  mbrsh.c                           */
  360. X/*        FUNKTIONEN  main()                           */
  361. X/*             AUTOR  vs (Volker Schuermann/MINIX-Version)           */
  362. X/*  LETZTE AENDERUNG  16.11.1991                       */
  363. X/***************************************************************************/
  364. X
  365. X#include <stdio.h>
  366. X#include <sys/types.h>
  367. X#include <unistd.h>
  368. X
  369. Xint main(argc, argv)
  370. Xint argc;
  371. Xchar *argv[];
  372. X{
  373. X  char s[255];
  374. X  int i, j;
  375. X
  376. X  setgid( atoi(argv[argc -1]) );
  377. X  setuid( atoi(argv[argc -2]) );
  378. X
  379. X  strcpy(s, "exec ");
  380. X  j = argc -2;
  381. X
  382. X  for(i = 1; i < j; i++){
  383. X    strcat(s, argv[i]);
  384. X    strcat(s, " ");
  385. X  }
  386. X
  387. X  system( s );
  388. X
  389. X  return 0;
  390. X}
  391. END_OF_FILE
  392.   if test 725 -ne `wc -c <'src/mbrsh.c'`; then
  393.     echo shar: \"'src/mbrsh.c'\" unpacked with wrong size!
  394.   fi
  395.   # end of 'src/mbrsh.c'
  396. fi
  397. if test -f 'src/patchlevel.h' -a "${1}" != "-c" ; then 
  398.   echo shar: Will not clobber existing file \"'src/patchlevel.h'\"
  399. else
  400.   echo shar: Extracting \"'src/patchlevel.h'\" \(603 characters\)
  401.   sed "s/^X//" >'src/patchlevel.h' <<'END_OF_FILE'
  402. X/***************************************************************************/
  403. X/*        PROGRAMM  ix/MBox                           */
  404. X/*             DATEI  patchlevel.h                       */
  405. X/*             AUTOR  vs (Volker Schuermann/MINIX-Version)           */
  406. X/*  LETZTE AENDERUNG  22.06.1992                       */
  407. X/***************************************************************************/
  408. X  
  409. X/***************************************************************************/
  410. X/*  PATCHLEVEL       - Nummer der zuletzt installierten CDIFFS           */
  411. X/***************************************************************************/
  412. X
  413. X#define PATCHLEVEL    "PL10e"
  414. END_OF_FILE
  415.   if test 603 -ne `wc -c <'src/patchlevel.h'`; then
  416.     echo shar: \"'src/patchlevel.h'\" unpacked with wrong size!
  417.   fi
  418.   # end of 'src/patchlevel.h'
  419. fi
  420. if test -f 'src/undef.c' -a "${1}" != "-c" ; then 
  421.   echo shar: Will not clobber existing file \"'src/undef.c'\"
  422. else
  423.   echo shar: Extracting \"'src/undef.c'\" \(17 characters\)
  424.   sed "s/^X//" >'src/undef.c' <<'END_OF_FILE'
  425. X#undef _MBOX
  426. X
  427. X
  428. X
  429. X
  430. END_OF_FILE
  431.   if test 17 -ne `wc -c <'src/undef.c'`; then
  432.     echo shar: \"'src/undef.c'\" unpacked with wrong size!
  433.   fi
  434.   # end of 'src/undef.c'
  435. fi
  436. echo shar: End of archive 11 \(of 11\).
  437. cp /dev/null ark11isdone
  438. MISSING=""
  439. for I in 1 2 3 4 5 6 7 8 9 10 11 ; do
  440.     if test ! -f ark${I}isdone ; then
  441.     MISSING="${MISSING} ${I}"
  442.     fi
  443. done
  444. if test "${MISSING}" = "" ; then
  445.     echo You have unpacked all 11 archives.
  446.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  447. else
  448.     echo You still must unpack the following archives:
  449.     echo "        " ${MISSING}
  450. fi
  451. exit 0
  452. exit 0 # Just in case...
  453.