From 40a061f604d197ab45f8e5da4714b0699d01b155 Mon Sep 17 00:00:00 2001 From: tholo Date: Sun, 8 Dec 1996 22:39:31 +0000 Subject: [PATCH] Install sample configuration files if none are present --- gnu/libexec/uucp/Makefile | 5 +++-- gnu/libexec/uucp/sample/Makefile | 15 +++++++++++++++ gnu/libexec/uucp/sample/call | 2 +- gnu/libexec/uucp/sample/passwd | 2 +- gnu/libexec/uucp/sample/port | 18 +++++++++--------- gnu/libexec/uucp/sample/{sys1 => sys} | 20 ++++++++++---------- 6 files changed, 39 insertions(+), 23 deletions(-) create mode 100644 gnu/libexec/uucp/sample/Makefile rename gnu/libexec/uucp/sample/{sys1 => sys} (86%) 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/sys1 b/gnu/libexec/uucp/sample/sys similarity index 86% rename from gnu/libexec/uucp/sample/sys1 rename to gnu/libexec/uucp/sample/sys index fa9e7709e1c..ea86cab7796 100644 --- a/gnu/libexec/uucp/sample/sys1 +++ b/gnu/libexec/uucp/sample/sys @@ -15,30 +15,30 @@ # provides another example. # The name of the remote system that we call. -system uunet +#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 * +#call-login * +#call-password * # We can send anything at any time. -time any +#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 +#call-timegrade Z Wk0755-2305,Su1655-2305 # The phone number to call. -phone 7389449 +#phone 7389449 # uunet tends to be slow, so we increase the timeout -chat-timeout 120 +#chat-timeout 120 # The port we use to dial out. -port serial +#port serial # Increase the timeout and the number of retries. -protocol-parameter g timeout 20 -protocol-parameter g retries 10 +#protocol-parameter g timeout 20 +#protocol-parameter g retries 10 -- 2.20.1