AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

comm/tcp/AmiTCP_ups10.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Nice little AmiTCP file transmission program
Author: ch at irb.informatik.uni-dortmund.de
Uploader:ch irb informatik uni-dortmund de
Type:comm/tcp
Architecture:m68k-amigaos
Date:1993-10-13
Download:comm/tcp/AmiTCP_ups10.lha - View contents
Readme:comm/tcp/AmiTCP_ups10.readme
Downloads:782

Hello Netters,

I wanted to know how difficult it is to create a daemon suitable for
AmiTCP. I liked the little program "ups" we use at the university of
Dortmund for sending files between users and so I took the source
to my amiga.
Here's the result. 

Be warned:
	I didn't take much effort in making a clean port but I hope I
	didn't introduce much new bugs :-)


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! But as ever: You got what you paid for, use at your own risk.!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Take a look at the original README to see what ups does.

Here a short summary:
1. Send the files 'a', 'b' and 'c' to a <user> on <host>:
	ups user@host a b c
2. Look for arrived files
	ups -q
3. Receive files
	ups
	
The port was done using SAS 6.3 and AmiTCP 2.0.

Installation on amitcp

	1)  Add ups to the table of known ports in amitcp:db/services as follows:

	ups	600/tcp

	2)  Add ups to the inetd configuration file amitcp:db/inetd.conf:

	ups	stream	tcp	nowait	root	amitcp:bin/upsd	upsd

	3) Copy ups, upsd and ups-sendmail to amitcp:bin.

	4) Set USERNAME in your user-startup to your login name.
	   Set UPS_USERS to a colon separated list of users able to 
	   receive files via ups.

	   I use:
		setenv USERNAME alph
		setenv UPS_USERS alph:ch

	5) Make an "assign ups-spool: <somewhere>" to your incoming
	   spool directory.
	
Changes to the un*x version:
	- Since there's no semi-official port of /etc/password stuff I
	  made the following assumptions:
	  Sender:
		The name of the sender is obtained from the
		environment variable USERNAME, the name of the
		host from HOSTNAME.
	  Receiver:
		The ups daemon will accept incoming files 
		only for users listed in UPS_USERS, e.g. 
		"ups alph@alph3000 mytreasure" will only be legal if
		UPS_USERS contains 'alph' on the host alph3000.

	- Since there's no semi-official port of /etc/aliases I disabed
	  the alias feature of ups.
	
	- On un*x boxes ups uses mail to inform the user about
	  new files. To keep it simple I include a fake sendmail
	  (ups-sendmail) which just opens a Console-Window
	  containing the mail normally send :-)
	  You may replace ups-sendmail with your own program.
	  It should accept sendmail-like parameters and will get it's
	  Input via stdin.

Notes:
	- When sending files between amigas only un*x-like protection bits
	  will be preserved. Sending format is un*x-format to be
	  compatible with the un*x version.

	  It should be easy to enhance the protocol to identify
	  an amiga on the other side and behave according to that.

	- I'm using my s_socket layer instead of changing the read/write
	  calls because of pure lazyness.:-) (I used it extensively in my
	  port of ncftp)

As I said before I didn't put much effort in changing the ups source
so you're welcome to proceed.

I hope you enjoy it,
	
	Carsten Heyl

You may try to reach me via email at ch@irb.informatik.uni-dortmund.de.




Contents of comm/tcp/AmiTCP_ups10.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                   69      94  73.4% -lh5- 10a2 Oct  3  1993 amiga/grp.h
[generic]                    0       0 ****** -lh0- 0000 Oct  3  1993 amiga/ndbm.h
[generic]                 3474    8987  38.7% -lh5- bd80 Oct 10  1993 amiga/popen.c
[generic]                   71      82  86.6% -lh5- c8cd Oct 10  1993 amiga/popen.h
[generic]                  104     192  54.2% -lh5- db6e Oct  3  1993 amiga/pwd.h
[generic]                   28      28 100.0% -lh0- 8960 Oct  2  1993 amiga/RCS_LINK
[generic]                 2975   10663  27.9% -lh5- 4fec Oct  3  1993 amiga/s_socket.c
[generic]                 1870    6384  29.3% -lh5- 0a65 Oct  3  1993 amiga/s_socket.h
[generic]                    0       0 ****** -lh0- 0000 Oct  3  1993 amiga/sys/file.h
[generic]                    0       0 ****** -lh0- 0000 Oct  3  1993 amiga/sys/wait.h
[generic]                  412     786  52.4% -lh5- 4c19 Oct  3  1993 amiga/syslog.h
[generic]                  359     679  52.9% -lh5- 73b3 Oct  3  1993 orig/Makefile
[generic]                  743    1436  51.7% -lh5- e683 Oct  3  1993 orig/README
[generic]                  745    1579  47.2% -lh5- ac20 Oct  3  1993 orig/ups.1
[generic]                 3696   10250  36.1% -lh5- c2d2 Oct  3  1993 orig/ups.c
[generic]                 3040    8129  37.4% -lh5- a6f6 Oct  3  1993 orig/upsd.c
[generic]                 1558    3140  49.6% -lh5- 64a8 Oct 10  1993 README.amiga
[generic]                  548    1005  54.5% -lh5- 6962 Oct 10  1993 SMakefile
[generic]                  149     250  59.6% -lh5- 353b Oct 10  1993 sys.h
[generic]                16722   28552  58.6% -lh5- 1ace Oct 10  1993 ups
[generic]                 8041   12696  63.3% -lh5- 5fb3 Oct 10  1993 ups-sendmail
[generic]                  445     735  60.5% -lh5- c854 Oct 10  1993 ups-sendmail.c
[generic]                 4349   12697  34.3% -lh5- 1a42 Oct 10  1993 ups.c
[generic]                  875    1948  44.9% -lh5- ddd0 Oct 10  1993 ups.man
[generic]                  166     344  48.3% -lh5- ec95 Oct  3  1993 ups_protos.h
[generic]                15192   26360  57.6% -lh5- 72da Oct 10  1993 upsd
[generic]                 3916   10829  36.2% -lh5- 1e84 Oct 10  1993 upsd.c
[generic]                  156     322  48.4% -lh5- d610 Oct  3  1993 upsd_protos.h
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        28 files   69703  148167  47.0%            Oct 12  1993
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>