home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sources / misc / 4246 < prev    next >
Encoding:
Text File  |  1993-01-10  |  28.5 KB  |  909 lines

  1. Newsgroups: comp.sources.misc
  2. Path: sparky!kent
  3. From: amber@engin.umich.edu (Lee Liming)
  4. Subject: v34i104:  netuse - A Network Host Usage Monitoring System, Part06/06
  5. Message-ID: <1993Jan11.023854.25662@sparky.imd.sterling.com>
  6. Followup-To: comp.sources.d
  7. X-Md4-Signature: e4b71b644768fac344c5e351fe690ed0
  8. Sender: kent@sparky.imd.sterling.com (Kent Landfield)
  9. Organization: Sterling Software
  10. References: <csm-v34i099=netuse.203327@sparky.IMD.Sterling.COM>
  11. Date: Mon, 11 Jan 1993 02:38:54 GMT
  12. Approved: kent@sparky.imd.sterling.com
  13. Lines: 894
  14.  
  15. Submitted-by: amber@engin.umich.edu (Lee Liming)
  16. Posting-number: Volume 34, Issue 104
  17. Archive-name: netuse/part06
  18. Environment: UNIX, MS-DOS, OS/2, INET, MSC
  19.  
  20. #! /bin/sh
  21. # This is a shell archive.  Remove anything before this line, then feed it
  22. # into a shell via "sh file" or similar.  To overwrite existing files,
  23. # type "sh file -c".
  24. # Contents:  netuse/COPYRIGHT netuse/Makefile netuse/VERSION
  25. #   netuse/clients/Makefile netuse/clients/libresp1.dos
  26. #   netuse/clients/libresp1.os2 netuse/clients/libresp2.dos
  27. #   netuse/clients/libresp2.os2 netuse/clients/libresp3.dos
  28. #   netuse/clients/makefile.dos netuse/clients/makefile.os2
  29. #   netuse/daemons/Makefile netuse/daemons/caenlab.h netuse/doc/README
  30. #   netuse/lib/Makefile netuse/lib/libresp netuse/lib/makefile.dos
  31. #   netuse/lib/makefile.os2 netuse/lib/network.h netuse/lib/parser.h
  32. # Wrapped by kent@sparky on Sun Jan 10 20:28:38 1993
  33. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  34. echo If this archive is complete, you will see the following message:
  35. echo '          "shar: End of archive 6 (of 6)."'
  36. if test -f 'netuse/COPYRIGHT' -a "${1}" != "-c" ; then 
  37.   echo shar: Will not clobber existing file \"'netuse/COPYRIGHT'\"
  38. else
  39.   echo shar: Extracting \"'netuse/COPYRIGHT'\" \(1309 characters\)
  40.   sed "s/^X//" >'netuse/COPYRIGHT' <<'END_OF_FILE'
  41. X/******************************************************************************
  42. X Copyright (C) 1992 by the Regents of the University of Michigan.
  43. X
  44. X User agrees to reproduce said copyright notice on all copies of the software
  45. X made by the recipient.  
  46. X
  47. X All Rights Reserved. Permission is hereby granted for the recipient to make
  48. X copies and use this software for its own internal purposes only. Recipient of
  49. X this software may re-distribute this software outside of their own 
  50. X institution. Permission to market this software commercially, to include this
  51. X product as part of a commercial product, or to make a derivative work for
  52. X commercial purposes, is explicitly prohibited.  All other uses are also
  53. X prohibited unless authorized in writing by the Regents of the University of
  54. X Michigan.
  55. X
  56. X This software is offered without warranty. The Regents of the University of
  57. X Michigan disclaim all warranties, express or implied, including but not
  58. X limited to the implied warranties of merchantability and fitness for any
  59. X particular purpose. In no event shall the Regents of the University of
  60. X Michigan be liable for loss or damage of any kind, including but not limited
  61. X to incidental, indirect, consequential, or special damages. 
  62. X******************************************************************************/
  63. END_OF_FILE
  64.   if test 1309 -ne `wc -c <'netuse/COPYRIGHT'`; then
  65.     echo shar: \"'netuse/COPYRIGHT'\" unpacked with wrong size!
  66.   fi
  67.   # end of 'netuse/COPYRIGHT'
  68. fi
  69. if test -f 'netuse/Makefile' -a "${1}" != "-c" ; then 
  70.   echo shar: Will not clobber existing file \"'netuse/Makefile'\"
  71. else
  72.   echo shar: Extracting \"'netuse/Makefile'\" \(2395 characters\)
  73.   sed "s/^X//" >'netuse/Makefile' <<'END_OF_FILE'
  74. X#
  75. X# Top-level Makefile for NETUSE.
  76. X#
  77. X# Lee Liming, Computer Aided Engineering Network
  78. X# The University of Michigan
  79. X#
  80. X# (c) 1992, The Regents of the University of Michigan
  81. X# ALL RIGHTS RESERVED
  82. X
  83. X
  84. X###############################################################################
  85. X#  Customizable parameters
  86. X
  87. X#  NOTE:  If you change the relationships between DESTDIR, PKGDEST, and the
  88. X#         rest of these paths, you're on your own WRT making sure they exist.
  89. X
  90. XDESTDIR      = /afs/.engin.umich.edu/system/@sys/usr/caen
  91. XPKGDEST      = $(DESTDIR)/netuse
  92. XLIBDEST      = $(PKGDEST)/lib
  93. XINCDEST      = $(PKGDEST)/include
  94. XBINDEST      = $(PKGDEST)/bin
  95. XETCDEST      = $(PKGDEST)/etc
  96. XMANDEST      = $(PKGDEST)/man
  97. X
  98. XCC           = "cc -g"
  99. X
  100. XINSTLIB      = "cp"
  101. XINSTINC      = "cp"
  102. XINSTBIN      = "cp"
  103. XINSTETC      = "cp"
  104. XINSTMAN      = "cp"
  105. X
  106. XDAEMONS      = "netuse netused"
  107. X
  108. X#  NOTE:  Uncomment one of the following two lines.
  109. X
  110. X# Everything except SunOS
  111. X#NETUSED_LINK = 
  112. X# Uncomment only for SunOS
  113. XNETUSED_LINK = "-lkvm"
  114. X
  115. X
  116. X###############################################################################
  117. X#  You probably don't want to change anything below this point...
  118. X
  119. XDELIVERABLES = build_library build_clients build_daemons
  120. XLIBRARY      = lib/libNetuse.a 
  121. XCLIENTS      = clients/hostinfo clients/getmach clients/netuseadmin 
  122. XDDAEMONS     = daemons/netuse
  123. X
  124. X
  125. Xall: $(DELIVERABLES)
  126. X
  127. Xbuild_library:
  128. X    cd lib; make all CC=$(CC)
  129. X
  130. Xbuild_clients: $(LIBRARY)
  131. X    cd clients; make all CC=$(CC)
  132. X
  133. Xbuild_daemons: $(LIBRARY)
  134. X    cd daemons; make all CC=$(CC) DAEMONS=$(DAEMONS) NETUSED_LINK=$(NETUSED_LINK)
  135. X
  136. Xinstall: $(DELIVERABLES) install_library install_clients install_daemons
  137. X
  138. Xinstall_library: $(LIBRARY)
  139. X    cd lib; make install DESTDIR=$(DESTDIR) INSTLIB=$(INSTLIB) INSTINC=$(INSTINC) PKGDEST=$(PKGDEST) LIBDEST=$(LIBDEST) INCDEST=$(INCDEST) MANDEST=$(MANDEST)
  140. X
  141. Xinstall_clients: $(CLIENTS)
  142. X    cd clients; make install DESTDIR=$(DESTDIR) INSTBIN=$(INSTBIN) INSTETC=$(INSTETC) PKGDEST=$(PKGDEST) BINDEST=$(BINDEST) ETCDEST=$(ETCDEST) MANDEST=$(MANDEST)
  143. X
  144. Xinstall_daemons: $(DDAEMONS)
  145. X    cd daemons; make install DESTDIR=$(DESTDIR) INSTBIN=$(INSTBIN) INSTETC=$(INSTETC) PKGDEST=$(PKGDEST) BINDEST=$(BINDEST) ETCDEST=$(ETCDEST) MANDEST=$(MANDEST) DAEMONS=$(DAEMONS)
  146. X
  147. Xclean: clean_library clean_clients clean_daemons
  148. X
  149. Xclean_library:
  150. X    cd lib; make clean
  151. X
  152. Xclean_clients:
  153. X    cd clients; make clean
  154. X
  155. Xclean_daemons:
  156. X    cd daemons; make clean
  157. END_OF_FILE
  158.   if test 2395 -ne `wc -c <'netuse/Makefile'`; then
  159.     echo shar: \"'netuse/Makefile'\" unpacked with wrong size!
  160.   fi
  161.   # end of 'netuse/Makefile'
  162. fi
  163. if test -f 'netuse/VERSION' -a "${1}" != "-c" ; then 
  164.   echo shar: Will not clobber existing file \"'netuse/VERSION'\"
  165. else
  166.   echo shar: Extracting \"'netuse/VERSION'\" \(33 characters\)
  167.   sed "s/^X//" >'netuse/VERSION' <<'END_OF_FILE'
  168. X1.1    Sat Dec 19 14:38:56 EST 1992
  169. END_OF_FILE
  170.   if test 33 -ne `wc -c <'netuse/VERSION'`; then
  171.     echo shar: \"'netuse/VERSION'\" unpacked with wrong size!
  172.   fi
  173.   # end of 'netuse/VERSION'
  174. fi
  175. if test -f 'netuse/clients/Makefile' -a "${1}" != "-c" ; then 
  176.   echo shar: Will not clobber existing file \"'netuse/clients/Makefile'\"
  177. else
  178.   echo shar: Extracting \"'netuse/clients/Makefile'\" \(1782 characters\)
  179.   sed "s/^X//" >'netuse/clients/Makefile' <<'END_OF_FILE'
  180. X#
  181. X# Makefile for NETUSE clients.
  182. X#
  183. X# Lee Liming, The Computer Aided Engineering Network
  184. X# The University of Michigan
  185. X#
  186. X# (c) 1990, 1991, 1992, The Regents of the University of Michigan
  187. X# ALL RIGHTS RESERVED
  188. X
  189. XCC       = cc -g
  190. X
  191. XDESTDIR  = /tmp
  192. XPKGDEST  = $(DESTDIR)/netuse
  193. XBINDEST  = $(PKGDEST)/bin
  194. XETCDEST  = $(PKGDEST)/etc
  195. XMANDEST  = $(PKGDEST)/man
  196. X
  197. XINSTBIN  = cp
  198. XINSTETC  = cp
  199. XINSTMAN  = cp
  200. X
  201. XBINARY1  = hostinfo
  202. XLIB1     = -L../lib -lNetuse
  203. XINCLUDE1 = -I../lib
  204. XBINARY2  = getmach
  205. XLIB2     = -L../lib -lNetuse
  206. XINCLUDE2 = -I../lib
  207. XBINARY3  = netuseadmin
  208. XLIB3     = -L../lib -lNetuse
  209. XINCLUDE3 = -I../lib
  210. X
  211. X
  212. Xall: $(BINARY1) $(BINARY2) $(BINARY3)
  213. X
  214. X$(BINARY1): hostinfo.c ../lib/netuse.h ../lib/libNetuse.a
  215. X    $(CC) -o $(BINARY1) hostinfo.c $(LIB1) $(INCLUDE1)
  216. X
  217. X$(BINARY2): getmach.c ../lib/netuse.h ../lib/libNetuse.a
  218. X    $(CC) -o $(BINARY2) getmach.c $(LIB2) $(INCLUDE2)
  219. X
  220. X$(BINARY3): netuseadmin.c ../lib/netuse.h ../lib/libNetuse.a
  221. X    $(CC) -o $(BINARY3) netuseadmin.c $(LIB3) $(INCLUDE3)
  222. X
  223. Xinstall: $(BINDEST) $(MANDEST)/man1 $(BINARY1) $(BINARY2) $(BINARY3) \
  224. X         hostinfo.1 getmach.1 netuseadmin.1
  225. X    $(INSTBIN) $(BINARY1) $(BINDEST)/$(BINARY1)
  226. X    $(INSTBIN) $(BINARY2) $(BINDEST)/$(BINARY2)
  227. X    $(INSTBIN) $(BINARY3) $(BINDEST)/$(BINARY3)
  228. X    $(INSTMAN) hostinfo.1 $(MANDEST)/man1/hostinfo.1
  229. X    $(INSTMAN) getmach.1 $(MANDEST)/man1/getmach.1
  230. X    $(INSTMAN) netuseadmin.1 $(MANDEST)/man1/netuseadmin.1
  231. X
  232. X$(BINDEST): $(PKGDEST)
  233. X    - mkdir $(BINDEST); chmod 755 $(BINDEST)
  234. X    
  235. X$(MANDEST)/man1: $(MANDEST)
  236. X    - mkdir $(MANDEST)/man1; chmod 755 $(MANDEST)/man1
  237. X    
  238. X$(MANDEST): $(PKGDEST)
  239. X    - mkdir $(MANDEST); chmod 755 $(MANDEST)
  240. X    
  241. X$(PKGDEST): $(DESTDIR)
  242. X    - mkdir $(PKGDEST); chmod 755 $(PKGDEST)
  243. X    
  244. X$(DESTDIR):
  245. X    - mkdir $(DESTDIR); chmod 755 $(DESTDIR)
  246. X    
  247. Xclean:
  248. X    \rm -f *.o *.bak $(BINARY1) $(BINARY2) $(BINARY3)
  249. END_OF_FILE
  250.   if test 1782 -ne `wc -c <'netuse/clients/Makefile'`; then
  251.     echo shar: \"'netuse/clients/Makefile'\" unpacked with wrong size!
  252.   fi
  253.   # end of 'netuse/clients/Makefile'
  254. fi
  255. if test -f 'netuse/clients/libresp1.dos' -a "${1}" != "-c" ; then 
  256.   echo shar: Will not clobber existing file \"'netuse/clients/libresp1.dos'\"
  257. else
  258.   echo shar: Extracting \"'netuse/clients/libresp1.dos'\" \(91 characters\)
  259.   sed "s/^X//" >'netuse/clients/libresp1.dos' <<'END_OF_FILE'
  260. X/st:6000 /NOE /packcode /f /co hostinfo
  261. X
  262. Xhostinfo
  263. X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib
  264. END_OF_FILE
  265.   if test 91 -ne `wc -c <'netuse/clients/libresp1.dos'`; then
  266.     echo shar: \"'netuse/clients/libresp1.dos'\" unpacked with wrong size!
  267.   fi
  268.   # end of 'netuse/clients/libresp1.dos'
  269. fi
  270. if test -f 'netuse/clients/libresp1.os2' -a "${1}" != "-c" ; then 
  271.   echo shar: Will not clobber existing file \"'netuse/clients/libresp1.os2'\"
  272. else
  273.   echo shar: Extracting \"'netuse/clients/libresp1.os2'\" \(100 characters\)
  274.   sed "s/^X//" >'netuse/clients/libresp1.os2' <<'END_OF_FILE'
  275. X/st:6000 /NOE /packcode /f /co hostinfo
  276. X
  277. Xhostinfo
  278. X..\lib\netuse.lib c:\xln\toolkit\lib\slibsock.lib
  279. END_OF_FILE
  280.   if test 100 -ne `wc -c <'netuse/clients/libresp1.os2'`; then
  281.     echo shar: \"'netuse/clients/libresp1.os2'\" unpacked with wrong size!
  282.   fi
  283.   # end of 'netuse/clients/libresp1.os2'
  284. fi
  285. if test -f 'netuse/clients/libresp2.dos' -a "${1}" != "-c" ; then 
  286.   echo shar: Will not clobber existing file \"'netuse/clients/libresp2.dos'\"
  287. else
  288.   echo shar: Extracting \"'netuse/clients/libresp2.dos'\" \(89 characters\)
  289.   sed "s/^X//" >'netuse/clients/libresp2.dos' <<'END_OF_FILE'
  290. X/st:6000 /NOE /packcode /f /co getmach
  291. X
  292. Xgetmach
  293. X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib
  294. END_OF_FILE
  295.   if test 89 -ne `wc -c <'netuse/clients/libresp2.dos'`; then
  296.     echo shar: \"'netuse/clients/libresp2.dos'\" unpacked with wrong size!
  297.   fi
  298.   # end of 'netuse/clients/libresp2.dos'
  299. fi
  300. if test -f 'netuse/clients/libresp2.os2' -a "${1}" != "-c" ; then 
  301.   echo shar: Will not clobber existing file \"'netuse/clients/libresp2.os2'\"
  302. else
  303.   echo shar: Extracting \"'netuse/clients/libresp2.os2'\" \(98 characters\)
  304.   sed "s/^X//" >'netuse/clients/libresp2.os2' <<'END_OF_FILE'
  305. X/st:6000 /NOE /packcode /f /co getmach
  306. X
  307. Xgetmach
  308. X..\lib\netuse.lib c:\xln\toolkit\lib\slibsock.lib
  309. END_OF_FILE
  310.   if test 98 -ne `wc -c <'netuse/clients/libresp2.os2'`; then
  311.     echo shar: \"'netuse/clients/libresp2.os2'\" unpacked with wrong size!
  312.   fi
  313.   # end of 'netuse/clients/libresp2.os2'
  314. fi
  315. if test -f 'netuse/clients/libresp3.dos' -a "${1}" != "-c" ; then 
  316.   echo shar: Will not clobber existing file \"'netuse/clients/libresp3.dos'\"
  317. else
  318.   echo shar: Extracting \"'netuse/clients/libresp3.dos'\" \(91 characters\)
  319.   sed "s/^X//" >'netuse/clients/libresp3.dos' <<'END_OF_FILE'
  320. X/st:6000 /NOE /packcode /f /co netusead
  321. X
  322. Xnetusead
  323. X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib
  324. END_OF_FILE
  325.   if test 91 -ne `wc -c <'netuse/clients/libresp3.dos'`; then
  326.     echo shar: \"'netuse/clients/libresp3.dos'\" unpacked with wrong size!
  327.   fi
  328.   # end of 'netuse/clients/libresp3.dos'
  329. fi
  330. if test -f 'netuse/clients/makefile.dos' -a "${1}" != "-c" ; then 
  331.   echo shar: Will not clobber existing file \"'netuse/clients/makefile.dos'\"
  332. else
  333.   echo shar: Extracting \"'netuse/clients/makefile.dos'\" \(689 characters\)
  334.   sed "s/^X//" >'netuse/clients/makefile.dos' <<'END_OF_FILE'
  335. X#
  336. X# Makefile for NETUSE clients (MS-DOS, Microsoft C)
  337. X#
  338. X# Lee Liming, The Computer Aided Engineering Network
  339. X# The University of Michigan
  340. X#
  341. X# (c) 1990, The Regents of the University of Michigan
  342. X# ALL RIGHTS RESERVED
  343. X
  344. XCC      = cl /AS -DNOVELL
  345. X
  346. XBINARY1  = hostinfo.exe
  347. XLIB1     = @libresp1.dos
  348. XINCLUDE  = -I..\lib
  349. XBINARY2  = getmach.exe
  350. XLIB2     = @libresp2.dos
  351. XBINARY3  = netusead.exe
  352. XLIB3     = @libresp3.dos
  353. X
  354. X.c.obj:
  355. X    $(CC) -c $(INCLUDE) $*.c
  356. X
  357. Xhostinfo.obj: hostinfo.c ../lib/netuse.h
  358. X
  359. Xgetmach.obj: getmach.c ../lib/netuse.h
  360. X
  361. Xnetusead.obj: netusead.c ../lib/netuse.h
  362. X
  363. X$(BINARY1): hostinfo.obj
  364. X    link $(LIB1)
  365. X
  366. X$(BINARY2): getmach.obj
  367. X    link $(LIB2)
  368. X
  369. X$(BINARY3): netusead.obj
  370. X    LINK $(LIB3)
  371. X
  372. END_OF_FILE
  373.   if test 689 -ne `wc -c <'netuse/clients/makefile.dos'`; then
  374.     echo shar: \"'netuse/clients/makefile.dos'\" unpacked with wrong size!
  375.   fi
  376.   # end of 'netuse/clients/makefile.dos'
  377. fi
  378. if test -f 'netuse/clients/makefile.os2' -a "${1}" != "-c" ; then 
  379.   echo shar: Will not clobber existing file \"'netuse/clients/makefile.os2'\"
  380. else
  381.   echo shar: Extracting \"'netuse/clients/makefile.os2'\" \(689 characters\)
  382.   sed "s/^X//" >'netuse/clients/makefile.os2' <<'END_OF_FILE'
  383. X#
  384. X# Makefile for NETUSE clients (OS/2, Microsoft C)
  385. X#
  386. X# Lee Liming, The Computer Aided Engineering Network
  387. X# The University of Michigan
  388. X#
  389. X# (c) 1990, The Regents of the University of Michigan
  390. X# ALL RIGHTS RESERVED
  391. X
  392. XCC      = cl /AL -DIBMTCPIP
  393. X
  394. XBINARY1  = hostinfo.exe
  395. XLIB1     = @libresp1.os2
  396. XINCLUDE  = -I..\lib
  397. XBINARY2  = getmach.exe
  398. XLIB2     = @libresp2.os2
  399. XBINARY3  = netusead.exe
  400. XLIB3     = @libresp3.os2
  401. X
  402. X.c.obj:
  403. X    $(CC) -c $(INCLUDE) $*.c
  404. X
  405. Xhostinfo.obj: hostinfo.c ../lib/netuse.h
  406. X
  407. Xgetmach.obj: getmach.c ../lib/netuse.h
  408. X
  409. Xnetusead.obj: netusead.c ../lib/netuse.h
  410. X
  411. X$(BINARY1): hostinfo.obj
  412. X    link $(LIB1)
  413. X
  414. X$(BINARY2): getmach.obj
  415. X    link $(LIB2)
  416. X
  417. X$(BINARY3): netusead.obj
  418. X    LINK $(LIB3)
  419. X
  420. END_OF_FILE
  421.   if test 689 -ne `wc -c <'netuse/clients/makefile.os2'`; then
  422.     echo shar: \"'netuse/clients/makefile.os2'\" unpacked with wrong size!
  423.   fi
  424.   # end of 'netuse/clients/makefile.os2'
  425. fi
  426. if test -f 'netuse/daemons/Makefile' -a "${1}" != "-c" ; then 
  427.   echo shar: Will not clobber existing file \"'netuse/daemons/Makefile'\"
  428. else
  429.   echo shar: Extracting \"'netuse/daemons/Makefile'\" \(1817 characters\)
  430.   sed "s/^X//" >'netuse/daemons/Makefile' <<'END_OF_FILE'
  431. X#
  432. X# Makefile for NETUSE daemons.
  433. X#
  434. X# Lee Liming, The Computer Aided Engineering Network
  435. X# The University of Michigan
  436. X#
  437. X# (c) 1992, The Regents of the University of Michigan
  438. X# ALL RIGHTS RESERVED
  439. X
  440. XCC           = cc -g
  441. X
  442. XDESTDIR      = /tmp
  443. XPKGDEST      = $(DESTDIR)/netuse
  444. XBINDEST      = $(PKGDEST)/bin
  445. XETCDEST      = $(PKGDEST)/etc
  446. XMANDEST      = $(PKGDEST)/man
  447. X
  448. XINSTBIN      = cp
  449. XINSTETC      = cp
  450. XINSTMAN      = cp
  451. X
  452. XDAEMONS      = netuse netused
  453. XNETUSED_LINK = 
  454. X
  455. XBINARY1      = netused
  456. XOBJS1        = netused.o getload.o getusers.o getdisk.o getmodel.o caenlab.o
  457. XLINKER1      = -lm $(NETUSED_LINK) -L../lib -lNetuse
  458. XBINARY2      = netuse
  459. XOBJS2        = netuse.o
  460. XLINKER2      = -L../lib -lNetuse
  461. XBADFILES     = $(DAEMONS) wakeup
  462. X
  463. Xall: $(DAEMONS) wakeup
  464. X
  465. X$(BINARY1): $(OBJS1)
  466. X    $(CC) -o $(BINARY1) $(OBJS1) $(LINKER1)
  467. X
  468. X$(BINARY2): $(OBJS2)
  469. X    $(CC) -o $(BINARY2) $(OBJS2) $(LINKER2)
  470. X
  471. Xwakeup: wakeup.o
  472. X    $(CC) -o wakeup wakeup.o -L../lib -lNetuse
  473. X
  474. X.c.o:
  475. X    $(CC) -c $<
  476. X
  477. Xnetused.o:  netused.c ../lib/protocol.h
  478. Xnetuse.o:   netuse.c ../lib/variable.h ../lib/protocol.h ../lib/netuse.h
  479. Xwakeup.o:   wakeup.c ../lib/protocol.h ../lib/netuse.h
  480. X
  481. Xinstall: $(ETCDEST) $(MANDEST)/man8 $(DAEMONS) wakeup
  482. X    for f in $(DAEMONS);                 \
  483. X    do                                  \
  484. X      $(INSTETC) $$f $(ETCDEST)/$$f;     \
  485. X    done
  486. X    $(INSTETC) wakeup $(ETCDEST)/wakeup
  487. X    $(INSTMAN) netuse.8 $(MANDEST)/man8/netuse.8
  488. X    $(INSTMAN) netused.8 $(MANDEST)/man8/netused.8
  489. X
  490. X
  491. X$(MANDEST)/man8: $(MANDEST)
  492. X    - mkdir $(MANDEST)/man8; chmod 755 $(MANDEST)/man8
  493. X
  494. X$(MANDEST): $(PKGDEST)
  495. X    - mkdir $(MANDEST); chmod 755 $(MANDEST)
  496. X
  497. X$(ETCDEST): $(PKGDEST)
  498. X    - mkdir $(ETCDEST); chmod 755 $(ETCDEST)
  499. X    
  500. X$(PKGDEST): $(DESTDIR)
  501. X    - mkdir $(PKGDEST); chmod 755 $(PKGDEST)
  502. X    
  503. X$(DESTDIR):
  504. X    - mkdir $(DESTDIR); chmod 755 $(DESTDIR)
  505. X    
  506. Xclean:
  507. X    \rm -f *.o *.bak $(BADFILES)
  508. END_OF_FILE
  509.   if test 1817 -ne `wc -c <'netuse/daemons/Makefile'`; then
  510.     echo shar: \"'netuse/daemons/Makefile'\" unpacked with wrong size!
  511.   fi
  512.   # end of 'netuse/daemons/Makefile'
  513. fi
  514. if test -f 'netuse/daemons/caenlab.h' -a "${1}" != "-c" ; then 
  515.   echo shar: Will not clobber existing file \"'netuse/daemons/caenlab.h'\"
  516. else
  517.   echo shar: Extracting \"'netuse/daemons/caenlab.h'\" \(1623 characters\)
  518.   sed "s/^X//" >'netuse/daemons/caenlab.h' <<'END_OF_FILE'
  519. X/******************************************************************************
  520. X CAENLAB.H - Header file for CAEN-specific NETUSE code
  521. X
  522. X Copyright (C) 1992 by the Regents of the University of Michigan.
  523. X
  524. X User agrees to reproduce said copyright notice on all copies of the software
  525. X made by the recipient.  
  526. X
  527. X All Rights Reserved. Permission is hereby granted for the recipient to make
  528. X copies and use this software for its own internal purposes only. Recipient of
  529. X this software may re-distribute this software outside of their own
  530. X institution. Permission to market this software commercially, to include this
  531. X product as part of a commercial product, or to make a derivative work for
  532. X commercial purposes, is explicitly prohibited.  All other uses are also
  533. X prohibited unless authorized in writing by the Regents of the University of
  534. X Michigan.
  535. X
  536. X This software is offered without warranty. The Regents of the University of
  537. X Michigan disclaim all warranties, express or implied, including but not
  538. X limited to the implied warranties of merchantability and fitness for any
  539. X particular purpose. In no event shall the Regents of the University of
  540. X Michigan be liable for loss or damage of any kind, including but not limited
  541. X to incidental, indirect, consequential, or special damages. 
  542. X******************************************************************************/
  543. X
  544. X#ifndef _CAENLAB_INCLUDED_
  545. X#define _CAENLAB_INCLUDED_
  546. X
  547. X
  548. X#ifdef __STDC__
  549. X
  550. Xint apolloShouldRun(void);
  551. Xint hostconfigShouldRun(void);
  552. Xint netusedShouldRun(void);
  553. X
  554. X#else
  555. X
  556. Xint apolloShouldRun();
  557. Xint hostconfigShouldRun();
  558. Xint netusedShouldRun();
  559. X
  560. X#endif
  561. X
  562. X
  563. X#endif
  564. END_OF_FILE
  565.   if test 1623 -ne `wc -c <'netuse/daemons/caenlab.h'`; then
  566.     echo shar: \"'netuse/daemons/caenlab.h'\" unpacked with wrong size!
  567.   fi
  568.   # end of 'netuse/daemons/caenlab.h'
  569. fi
  570. if test -f 'netuse/doc/README' -a "${1}" != "-c" ; then 
  571.   echo shar: Will not clobber existing file \"'netuse/doc/README'\"
  572. else
  573.   echo shar: Extracting \"'netuse/doc/README'\" \(537 characters\)
  574.   sed "s/^X//" >'netuse/doc/README' <<'END_OF_FILE'
  575. X
  576. XNETUSE DOCUMENTATION FORMATS
  577. X
  578. XThe NETUSE documentation is provided in three formats for your convenience.
  579. X
  580. XNETUSE.fm is a FrameMaker 3.0 document NETUSE.ps is the same document in 
  581. XPostScript form.  NETUSE.txt is the same document in plain-Jane ASCII text 
  582. Xformat (generated through a complex process of uglification).
  583. X
  584. XNOTE:  The USENET-posted distribution contains only the ASCII documentation.  
  585. X       The FrameMaker and PostScript forms can be obtained from the anonymous 
  586. X       FTP distribution described in the documentation.
  587. END_OF_FILE
  588.   if test 537 -ne `wc -c <'netuse/doc/README'`; then
  589.     echo shar: \"'netuse/doc/README'\" unpacked with wrong size!
  590.   fi
  591.   # end of 'netuse/doc/README'
  592. fi
  593. if test -f 'netuse/lib/Makefile' -a "${1}" != "-c" ; then 
  594.   echo shar: Will not clobber existing file \"'netuse/lib/Makefile'\"
  595. else
  596.   echo shar: Extracting \"'netuse/lib/Makefile'\" \(1338 characters\)
  597.   sed "s/^X//" >'netuse/lib/Makefile' <<'END_OF_FILE'
  598. X#
  599. X# Makefile for NETUSE library directory
  600. X#
  601. X# Lee Liming, The Computer Aided Engineering Network
  602. X# The University of Michigan
  603. X#
  604. X# (c) 1992, The Regents of the University of Michigan
  605. X# ALL RIGHTS RESERVED
  606. X
  607. XCC      = cc -g
  608. X
  609. XDESTDIR = /tmp
  610. XPKGDEST = $(DESTDIR)/netuse
  611. XLIBDEST = $(PKGDEST)/lib
  612. XINCDEST = $(PKGDEST)/include
  613. XMANDEST = $(PKGDEST)/man
  614. X
  615. XINSTLIB = cp
  616. XINSTINC = cp
  617. XINSTMAN = cp
  618. X
  619. XLIBFILE = libNetuse.a
  620. XMODULES = network.o gethost.o getlist.o netadmin.o parser.o variable.o
  621. X
  622. X
  623. Xall: $(LIBFILE)
  624. X
  625. X$(LIBFILE): $(MODULES)
  626. X    \rm -f $(LIBFILE); ar cq $(LIBFILE) $(MODULES) ; ranlib $(LIBFILE)
  627. X
  628. X.c.o:
  629. X    $(CC) -c $<
  630. X
  631. Xnetwork.o:  protocol.h network.h netuse.h
  632. Xgethost.o:  protocol.h network.h netuse.h
  633. Xgetlist.o:  protocol.h network.h netuse.h
  634. Xnetadmin.o: protocol.h network.h netuse.h
  635. Xparser.o:   parser.h
  636. Xvariable.o: protocol.h netuse.h parser.h variable.h
  637. X
  638. Xinstall: $(LIBDEST) $(INCDEST) $(LIBFILE) protocol.h netuse.h
  639. X    $(INSTLIB) $(LIBFILE) $(LIBDEST)/$(LIBFILE)
  640. X    $(INSTINC) protocol.h $(INCDEST)/protocol.h
  641. X    $(INSTINC) netuse.h $(INCDEST)/netuse.h
  642. X
  643. X$(LIBDEST): $(PKGDEST)
  644. X    - mkdir $(LIBDEST); chmod 755 $(LIBDEST)
  645. X    
  646. X$(INCDEST): $(PKGDEST)
  647. X    - mkdir $(INCDEST); chmod 755 $(INCDEST)
  648. X    
  649. X$(PKGDEST): $(DESTDIR)
  650. X    - mkdir $(PKGDEST); chmod 755 $(PKGDEST)
  651. X    
  652. X$(DESTDIR):
  653. X    - mkdir $(DESTDIR); chmod 755 $(DESTDIR)
  654. X    
  655. Xclean:
  656. X    \rm -f *.o *.bak $(LIBFILE)
  657. END_OF_FILE
  658.   if test 1338 -ne `wc -c <'netuse/lib/Makefile'`; then
  659.     echo shar: \"'netuse/lib/Makefile'\" unpacked with wrong size!
  660.   fi
  661.   # end of 'netuse/lib/Makefile'
  662. fi
  663. if test -f 'netuse/lib/libresp' -a "${1}" != "-c" ; then 
  664.   echo shar: Will not clobber existing file \"'netuse/lib/libresp'\"
  665. else
  666.   echo shar: Extracting \"'netuse/lib/libresp'\" \(70 characters\)
  667.   sed "s/^X//" >'netuse/lib/libresp' <<'END_OF_FILE'
  668. XNETUSE
  669. Xy
  670. X+NETWORK+GETHOST+GETLIST+NETADMIN+PARSER+VARIABLE
  671. Xnetuse.lst
  672. END_OF_FILE
  673.   if test 70 -ne `wc -c <'netuse/lib/libresp'`; then
  674.     echo shar: \"'netuse/lib/libresp'\" unpacked with wrong size!
  675.   fi
  676.   # end of 'netuse/lib/libresp'
  677. fi
  678. if test -f 'netuse/lib/makefile.dos' -a "${1}" != "-c" ; then 
  679.   echo shar: Will not clobber existing file \"'netuse/lib/makefile.dos'\"
  680. else
  681.   echo shar: Extracting \"'netuse/lib/makefile.dos'\" \(709 characters\)
  682.   sed "s/^X//" >'netuse/lib/makefile.dos' <<'END_OF_FILE'
  683. X#
  684. X# Makefile for NETUSE library directory (MS-DOS, Microsoft C, NOVELL TCP/IP)
  685. X#
  686. X# Lee Liming, The Computer Aided Engineering Network
  687. X# The University of Michigan
  688. X#
  689. X# (c) 1992, The Regents of the University of Michigan
  690. X# ALL RIGHTS RESERVED
  691. X
  692. XCC      = cl /AS -DNOVELL
  693. XLIBFILE = Netuse.lib
  694. XMODULES = network.obj gethost.obj getlist.obj netadmin.obj parser.obj variable.obj
  695. X
  696. X.c.obj:
  697. X    $(CC) -c $*.c
  698. X
  699. Xnetwork.obj:  protocol.h network.h netuse.h
  700. X
  701. Xgethost.obj:  protocol.h network.h netuse.h
  702. X
  703. Xgetlist.obj:  protocol.h network.h netuse.h
  704. X
  705. Xnetadmin.obj: protocol.h network.h netuse.h
  706. X
  707. Xparser.obj:   parser.h
  708. X
  709. Xvariable.obj: protocol.h netuse.h parser.h variable.h
  710. X
  711. X$(LIBFILE): $(MODULES)
  712. X    del $(LIBFILE)
  713. X    lib @libresp
  714. END_OF_FILE
  715.   if test 709 -ne `wc -c <'netuse/lib/makefile.dos'`; then
  716.     echo shar: \"'netuse/lib/makefile.dos'\" unpacked with wrong size!
  717.   fi
  718.   # end of 'netuse/lib/makefile.dos'
  719. fi
  720. if test -f 'netuse/lib/makefile.os2' -a "${1}" != "-c" ; then 
  721.   echo shar: Will not clobber existing file \"'netuse/lib/makefile.os2'\"
  722. else
  723.   echo shar: Extracting \"'netuse/lib/makefile.os2'\" \(696 characters\)
  724.   sed "s/^X//" >'netuse/lib/makefile.os2' <<'END_OF_FILE'
  725. X#
  726. X# Makefile for NETUSE library directory (OS/2, Microsoft C, IBM TCP/IP)
  727. X#
  728. X# Lee Liming, The Computer Aided Engineering Network
  729. X# The University of Michigan
  730. X#
  731. X# (c) 1992, The Regents of the University of Michigan
  732. X# ALL RIGHTS RESERVED
  733. X
  734. XCC      = cl /AL /DOS2 -DIBMTCPIP
  735. XLIBFILE = Netuse.lib
  736. XMODULES = network.obj gethost.obj getlist.obj netadmin.obj parser.obj variable.obj
  737. X
  738. X.c.obj:
  739. X    $(CC) -c $*.c
  740. X
  741. Xnetwork.obj:  protocol.h network.h netuse.h
  742. X
  743. Xgethost.obj:  protocol.h network.h netuse.h
  744. X
  745. Xgetlist.obj:  protocol.h network.h netuse.h
  746. X
  747. Xnetadmin.obj: protocol.h network.h netuse.h
  748. X
  749. Xparser.obj:   parser.h
  750. X
  751. Xvariable.obj: protocol.h netuse.h parser.h variable.h
  752. X
  753. X$(LIBFILE): $(MODULES)
  754. X    lib @libresp
  755. END_OF_FILE
  756.   if test 696 -ne `wc -c <'netuse/lib/makefile.os2'`; then
  757.     echo shar: \"'netuse/lib/makefile.os2'\" unpacked with wrong size!
  758.   fi
  759.   # end of 'netuse/lib/makefile.os2'
  760. fi
  761. if test -f 'netuse/lib/network.h' -a "${1}" != "-c" ; then 
  762.   echo shar: Will not clobber existing file \"'netuse/lib/network.h'\"
  763. else
  764.   echo shar: Extracting \"'netuse/lib/network.h'\" \(1812 characters\)
  765.   sed "s/^X//" >'netuse/lib/network.h' <<'END_OF_FILE'
  766. X/******************************************************************************
  767. X NETWORK.H - NETUSE Client-side Network Interface header file
  768. X
  769. X Lee Liming and Michael Neil, The Computer Aided Engineering Network
  770. X The University of Michigan
  771. X
  772. X Copyright (C) 1990, 1991, 1992 by the Regents of the University of Michigan.
  773. X
  774. X User agrees to reproduce said copyright notice on all copies of the software
  775. X made by the recipient.  
  776. X
  777. X All Rights Reserved. Permission is hereby granted for the recipient to make
  778. X copies and use this software for its own internal purposes only. Recipient of
  779. X this software may re-distribute this software outside of their own
  780. X institution. Permission to market this software commercially, to include this
  781. X product as part of a commercial product, or to make a derivative work for
  782. X commercial purposes, is explicitly prohibited.  All other uses are also
  783. X prohibited unless authorized in writing by the Regents of the University of
  784. X Michigan.
  785. X
  786. X This software is offered without warranty. The Regents of the University of
  787. X Michigan disclaim all warranties, express or implied, including but not
  788. X limited to the implied warranties of merchantability and fitness for any
  789. X particular purpose. In no event shall the Regents of the University of
  790. X Michigan be liable for loss or damage of any kind, including but not limited
  791. X to incidental, indirect, consequential, or special damages. 
  792. X******************************************************************************/
  793. X
  794. X#ifndef _NETWORK_INCLUDED_
  795. X#define _NETWORK_INCLUDED_
  796. X
  797. X
  798. X#include "protocol.h"
  799. X
  800. X
  801. X#ifdef __STDC__
  802. X
  803. Xint packetSend(USEREC *msg);
  804. Xint packetReceive(USEREC *msg);
  805. Xvoid netSetup(void);
  806. Xvoid netShutdown(void);
  807. X
  808. X#else
  809. X
  810. Xint packetSend();
  811. Xint packetReceive();
  812. Xvoid netSetup();
  813. Xvoid netShutdown();
  814. X
  815. X#endif
  816. X
  817. X#endif   /* _NETWORK_INCLUDED_ */
  818. END_OF_FILE
  819.   if test 1812 -ne `wc -c <'netuse/lib/network.h'`; then
  820.     echo shar: \"'netuse/lib/network.h'\" unpacked with wrong size!
  821.   fi
  822.   # end of 'netuse/lib/network.h'
  823. fi
  824. if test -f 'netuse/lib/parser.h' -a "${1}" != "-c" ; then 
  825.   echo shar: Will not clobber existing file \"'netuse/lib/parser.h'\"
  826. else
  827.   echo shar: Extracting \"'netuse/lib/parser.h'\" \(1516 characters\)
  828.   sed "s/^X//" >'netuse/lib/parser.h' <<'END_OF_FILE'
  829. X/*****************************************************************************
  830. X PARSER.H - General string parsing module header file
  831. X
  832. X (c) 1990, 1991, 1992, R. Lee Liming, Jr.
  833. X USED WITH PERMISSION OF THE AUTHOR
  834. X ALL RIGHTS RESERVED
  835. X
  836. X Defines: char *strip(char *str);
  837. X          char *strip_leading(char *str);
  838. X          char *scrunch(char *str);
  839. X          char *stoupper(char *);
  840. X          char *spicture(char *str,int n,char *temp);
  841. X          int   whitespace(char ch);
  842. X          char *textparam(char *str,int pos,char buf[]);
  843. X          char *encapsulate(char *str,char *buf);
  844. X          char *breakout(char *str,char *buf);
  845. X          int   limits(char *rstr,int *start,int *stop);
  846. X          char *strstr(char *str,char target[]);
  847. X*****************************************************************************/
  848. X
  849. X#ifndef _PARSER_INCLUDED_
  850. X
  851. X#define _PARSER_INCLUDED_
  852. X
  853. X
  854. X#ifdef  __STDC__
  855. X
  856. Xchar *strip(char *);
  857. Xchar *strip_leading(char *);
  858. Xchar *scrunch(char *str);
  859. Xchar *stoupper(char *);
  860. Xchar *spicture(char *str,int n,char *temp);
  861. Xint   whitespace(char);
  862. Xchar *textparam(char *,int,char []);
  863. Xchar *encapsulate(char *str,char *buf);
  864. Xchar *breakout(char *str,char *buf);
  865. Xint   limits(char *rstr,int *start,int *stop);
  866. Xchar *strstr(char *,char []);
  867. X
  868. X#else  /* ifndef __STDC__ */
  869. X
  870. Xchar *strip();
  871. Xchar *strip_leading();
  872. Xchar *scrunch();
  873. Xchar *stoupper();
  874. Xchar *spicture();
  875. Xint   whitespace();
  876. Xchar *textparam();
  877. Xchar *encapsulate();
  878. Xchar *breakout();
  879. Xint   limits();
  880. Xchar *strstr();
  881. X
  882. X#endif
  883. X
  884. X#endif  /* _PARSER_INCLUDED_ */
  885. END_OF_FILE
  886.   if test 1516 -ne `wc -c <'netuse/lib/parser.h'`; then
  887.     echo shar: \"'netuse/lib/parser.h'\" unpacked with wrong size!
  888.   fi
  889.   # end of 'netuse/lib/parser.h'
  890. fi
  891. echo shar: End of archive 6 \(of 6\).
  892. cp /dev/null ark6isdone
  893. MISSING=""
  894. for I in 1 2 3 4 5 6 ; do
  895.     if test ! -f ark${I}isdone ; then
  896.     MISSING="${MISSING} ${I}"
  897.     fi
  898. done
  899. if test "${MISSING}" = "" ; then
  900.     echo You have unpacked all 6 archives.
  901.     rm -f ark[1-9]isdone
  902. else
  903.     echo You still must unpack the following archives:
  904.     echo "        " ${MISSING}
  905. fi
  906. exit 0
  907. exit 0 # Just in case...
  908.