Skip to content

Commit

Permalink
Initial CVS checkin of sample files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlancetaylor committed Jan 16, 2002
1 parent 85ac3d1 commit be36bda
Show file tree
Hide file tree
Showing 8 changed files with 316 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sample/call
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This is an example of call, the call out password file for Taylor
# UUCP. To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# This file is used when the ``call-login'' or ``call-password''
# commands are used in the sys file with a "*" argument (e.g.,
# ``call-login *''). The system name is looked up in this file, and
# the login name and password are used.

# The point of this is that the sys file may then be publically
# readable, while still concealing the login names and passwords used
# to connect to the remote system.

# The format is just system-name login-name password.
uunet Uairs foobar
88 changes: 88 additions & 0 deletions sample/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# This is an example of config, the main configuration file for Taylor
# UUCP. To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# You need not use this file at all; all the important commands have
# defaults which will be used if this file can not be found.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# You must choose a UUCP name. If your system is going to be
# communicating with other systems outside your organization, the name
# must be unique in the entire world. The usual method is to pick a
# name, and then search the UUCP maps (in the newsgroup
# comp.mail.maps) to see whether it has already been taken. See the
# README posting in comp.mail.maps for more information. If the name
# of your system as returned by "uuname -n" or "hostname" is the name
# you want to use, you do not need to set the name in this file.
# Otherwise uncomment and edit the following line.
# nodename uucp # The UUCP name of this system

# The default spool directory is set in policy.h (the default is
# /usr/spool/uucp). All UUCP jobs and status information are kept in
# the spool directory. If you wish to change it, use the spool
# command.
# spool /usr/spool/uucp # The UUCP spool directory

# The default public directory is set in policy.h (the default is
# /usr/spool/uucppublic). Remote systems may refer to a file in this
# directory using "~/FILE". By default, the public directory is the
# only directory which remote systems may transfer files in and out
# of. If you wish to change the public directory, use the pubdir
# command.
# pubdir /usr/spool/uucppublic # The UUCP public directory

# The names of the UUCP log files are set in policy.h. The default
# names depend on the logging option you have chosen. If
# HAVE_TAYLOR_LOGGING is set in policy.h, the default log file name is
# /usr/spool/uucp/Log, the default statistics file name is
# /usr/spool/uucp/Stats, and the default debugging file name is
# /usr/spool/uucp/Debug. These file names may be set by the following
# commands.
# logfile /usr/spool/uucp/Log # The UUCP log file
# statfile /usr/spool/uucp/Stats # The UUCP statistics file
# debugfile /usr/spool/uucp/Debug # The UUCP debugging file

# uuxqt is the program which executes UUCP requests from other
# systems. Normally one is started after each run of uucico, the
# communications daemon. You may control the maximum number of uuxqt
# programs run at the same time with the following command. The
# default is to have no maximum.
# max-uuxqts 1 # The maximum number of uuxqts

# There are several files that uucico uses. By default it looks for
# them in newconfigdir, as set in Makefile.in. You may name one or
# more of each type of file using the following commands.
# sysfile FILES # Default "sys"
# portfile FILES # Default "port"
# dialfile FILES # Default "dial"
# dialcodefile FILES # Default "dialcode"
# callfile FILES # Default "call"
# passwdfile FILES # Default "passwd"

# The ``timetable'' command may be used to declare timetables. These
# may then be referred to in time strings in the other files.
# timetable Day Wk0905-1655

# The ``unknown'' command is followed by any command which may appear
# in a sys file. These commands are taken together to describe what
# is permitted to a system which is not listed in any sys file. If
# the ``unknown'' command, then unknown systems are not permitted to
# connect.

# Here is an example which permits unknown systems to download files
# from /usr/spool/anonymous, and to upload them to
# /usr/spool/anonymous/upload.
#
# No commands may be executed (the list of permitted commands is empty)
# unknown commands
# The public directory is /usr/spool/anonymous
# unknown pubdir /usr/spool/anonymous
# Only files in the public directory may be sent; users may not download
# files from the upload directory
# unknown remote-send ~ !~/upload
# May only upload files into /usr/spool/anonymous/upload
# unknown remote-receive ~/upload
35 changes: 35 additions & 0 deletions sample/dial
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is an example of dial, the dialer configuration file for Taylor
# UUCP. To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# All dialers named in the port (or sys) file must be described in the
# dial file. It is also possible to describe a dialer directly in the
# port (or sys) file.

# This is a typical Hayes modem definition.
dialer hayes

# The chat script used to dial the phone.
# This means:
# 1) expect nothing (i.e., continue with step 2)
# 2) send "ATZ", then a carriage return, then sleep for 1 to 2
# seconds. The \c means to not send a final carriage return.
# 3) wait until the modem echoes "OK"
# 4) send "ATDT", then the telephone number (after translating any
# dialcodes).
# 5) wait until the modem echoes "CONNECT"
chat "" ATZ\r\d\c OK ATDT\T CONNECT

# If we get "BUSY" or "NO CARRIER" during the dial chat script we
# abort the dial immediately.
chat-fail BUSY
chat-fail NO\sCARRIER

# When the call is over, we make sure we hangup the modem.
complete \d\d+++\d\dATH\r\c
abort \d\d+++\d\dATH\r\c
19 changes: 19 additions & 0 deletions sample/dialcode
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This is an example of dialcode, the dialcode configuration file for
# Taylor UUCP. To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# The dialcode file is used if \T is used in the dialer chat script
# and the telephone number begins with alphabetic characters. The
# alphabetic characters are looked up and translated in dialcode.

# Here are a couple of sample dialcodes.
MA 617
CA 415

# For example, if the phone number (from the sys file) is MA7389449,
# then the string sent to the modem will be 6177389449.
18 changes: 18 additions & 0 deletions sample/passwd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is an example of passwd, the call in password file for Taylor
# UUCP. To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# This file is used when uucico is invoked with the -l or -e argument.
# uucico will then prompt for a login name and password. The login
# name is looked up in this file to check the password (the system
# password file, /etc/passwd, is not checked). This permits uucico to
# completely take over a port, allowing UUCP access to remote systems
# but not permitting remote users to actually log in to the system.

# The format is just login-name password.
Uairs foobar
41 changes: 41 additions & 0 deletions sample/port
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This is an example of port, the port configuration file for Taylor
# UUCP. To use it, you must compile the package with
# HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default), copy
# this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# All ports named in the sys file must be described in a port file.
# It is also possible to describe the port directly in the sys file.

# Commands that appears before the first ``port'' command are defaults
# for all ports that appear later in the file. In this case all ports
# will default to being modems (other possible types are direct, tcp
# and tli).
type modem

# Now we describe two ports.

# This is the name of the port. This name may be used in the sys file
# to select the port, or the sys file may just specify a baud rate in
# which case the first matching unlocked port will be used.
port port1

# This is the device name to open to dial out.
device /dev/ttyd0

# This is the dialer to use, as described in the dialer file.
dialer hayes

# This is the baud rate to dial out at.
speed 2400

# Here is a second port. This is like the first, except that it uses
# a different device. It also permits a range of speeds, which is
# mainly useful if the system specifies a particular baud rate.
port port2
device /dev/ttyd1
dialer hayes
speed-range 2400 9600
44 changes: 44 additions & 0 deletions sample/sys1
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This is an example of a sys file, the file(s) which describe remote
# systems for Taylor UUCP. To use it, you must compile the package
# with HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default),
# copy this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# If you do not use the ``unknown'' command in the config file, then
# each system that you communicate with must be listed in a sys file.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# This is a sample sys file that might be used in a leaf system. A
# leaf system is one that only contacts one other system. sys2
# provides another example.

# The name of the remote system that we call.
system uunet

# The login name and password are kept in the callout password file
# (by default this is the file "call" in newconfigdir).
call-login *
call-password *

# We can send anything at any time.
time any

# During the day we only accept grade 'Z' or above; at other times
# (not mentioned here) we accept all grades. uunet queues up news
# at grade 'd', which is lower than 'Z'.
call-timegrade Z Wk0755-2305,Su1655-2305

# The phone number to call.
phone 7389449

# uunet tends to be slow, so we increase the timeout
chat-timeout 120

# The port we use to dial out.
port serial

# Increase the timeout and the number of retries.
protocol-parameter g timeout 20
protocol-parameter g retries 10
51 changes: 51 additions & 0 deletions sample/sys2
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This is an example of a sys file, the file(s) which describe remote
# systems for Taylor UUCP. To use it, you must compile the package
# with HAVE_TAYLOR_CONFIG set to 1 in policy.h (that is the default),
# copy this file to newconfigdir as set in Makefile.in (the default is
# /usr/local/conf/uucp), and edit it as appropriate for your system.

# If you do not use the ``unknown'' command in the config file, then
# each system that you communicate with must be listed in a sys file.

# Everything after a '#' character is a comment. To uncomment any of
# the sample lines below, just delete the '#'.

# This is a sample sys file that might be used by a system that
# contacts a couple of other systems, both of which are treated the
# same. sys1 provides another example.

# Commands that appear before the first ``system'' commands are
# defaults for all systems listed in the file.

# Get the login name and password to use from the call-out file. By
# default this is the file "call" in newconfigdir.
call-login *
call-password *

# The systems must use a particular login
called-login Ulocal

# Permit local users to send any world readable file
local-send /

# Permit local uses to request into any world writable directory
local-receive /

# Call at any time
time any

# Use port1, then port2
port port1

alternate

port port2

# Now define the systems themselves. Because of all the defaults we
# used, there is very little to specify for the systems themselves.

system comton
phone 5551212

system bugs
phone 5552424

0 comments on commit be36bda

Please sign in to comment.