From: tholo Date: Sun, 8 Dec 1996 22:39:31 +0000 (+0000) Subject: Install sample configuration files if none are present X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=40a061f604d197ab45f8e5da4714b0699d01b155;p=openbsd Install sample configuration files if none are present --- diff --git a/gnu/libexec/uucp/Makefile b/gnu/libexec/uucp/Makefile index 81c7fa5a2b1..ad25c3f180e 100644 --- a/gnu/libexec/uucp/Makefile +++ b/gnu/libexec/uucp/Makefile @@ -1,8 +1,9 @@ # This is the Makefile for Taylor UUCP -# $Id: Makefile,v 1.1.1.1 1995/10/18 08:38:22 deraadt Exp $ +# $Id: Makefile,v 1.2 1996/12/08 22:39:31 tholo Exp $ SUBDIR= libunix libuucp libuuconf \ cu uuchk uucico uuconv uucp uulog uuname uupick uusched \ - uustat uuto uux uuxqt + uustat uuto uux uuxqt \ + sample .include diff --git a/gnu/libexec/uucp/sample/Makefile b/gnu/libexec/uucp/sample/Makefile new file mode 100644 index 00000000000..9070559501b --- /dev/null +++ b/gnu/libexec/uucp/sample/Makefile @@ -0,0 +1,15 @@ +# $OpenBSD: Makefile,v 1.1 1996/12/08 22:39:32 tholo Exp $ + +FILES= call config dial dialcode passwd port sys +NOOBJ= noobj + +install: + @echo installing ${FILES} + @-for i in ${FILES}; do \ + if [ ! -f ${DESTDIR}/etc/uucp/$$i ]; then \ + ${INSTALL} ${COPY} -o root -g wheel -m 644 $$i \ + ${DESTDIR}/etc/uucp; \ + fi; \ + done + +.include diff --git a/gnu/libexec/uucp/sample/call b/gnu/libexec/uucp/sample/call index de4190ce612..d9385647217 100644 --- a/gnu/libexec/uucp/sample/call +++ b/gnu/libexec/uucp/sample/call @@ -17,4 +17,4 @@ # to connect to the remote system. # The format is just system-name login-name password. -uunet Uairs foobar +#uunet Uairs foobar diff --git a/gnu/libexec/uucp/sample/passwd b/gnu/libexec/uucp/sample/passwd index 2b04e13a343..6f4d75068f8 100644 --- a/gnu/libexec/uucp/sample/passwd +++ b/gnu/libexec/uucp/sample/passwd @@ -15,4 +15,4 @@ # but not permitting remote users to actually log in to the system. # The format is just login-name password. -Uairs foobar +#Uairs foobar diff --git a/gnu/libexec/uucp/sample/port b/gnu/libexec/uucp/sample/port index 8e481869b56..83332bcd320 100644 --- a/gnu/libexec/uucp/sample/port +++ b/gnu/libexec/uucp/sample/port @@ -14,28 +14,28 @@ # 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 +#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 +#port port1 # This is the device name to open to dial out. -device /dev/ttyd0 +#device /dev/ttyd0 # This is the dialer to use, as described in the dialer file. -dialer hayes +#dialer hayes # This is the baud rate to dial out at. -speed 2400 +#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 +#port port2 +#device /dev/ttyd1 +#dialer hayes +#speed-range 2400 9600 diff --git a/gnu/libexec/uucp/sample/sys b/gnu/libexec/uucp/sample/sys new file mode 100644 index 00000000000..ea86cab7796 --- /dev/null +++ b/gnu/libexec/uucp/sample/sys @@ -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 diff --git a/gnu/libexec/uucp/sample/sys1 b/gnu/libexec/uucp/sample/sys1 deleted file mode 100644 index fa9e7709e1c..00000000000 --- a/gnu/libexec/uucp/sample/sys1 +++ /dev/null @@ -1,44 +0,0 @@ -# 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