*BSD News Article 16630


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!math.fu-berlin.de!easix!knobel!andreas
From: andreas@knobel.GUN.de (Andreas Klemm)
Subject: Re: [NetBSD] Questions on setting up UUCP ... PATCHES for tuucp-1.04
Organization: Andreas Klemm, D-4040 Neuss 21
References: <1993May24.100534.7102@siemens.co.at>
Message-ID: <1993May30.104820.2110@knobel.GUN.de>
Date: Sun, 30 May 93 10:48:20 GMT
Lines: 560

In <1993May24.100534.7102@siemens.co.at> pse5327@siemens.co.at (Abolghassem Salahi) writes:

|Hi,

|I'm trying to set up UUCP, printing facilities and SLIP on NetBSD,
|and I could do with some advice. 

|Second UUCP. This is probably very simple. After hunting around for
|the 'uu*' programs and the configuration files and not finding them,

It should be found in /etc/uucp ?! That's in 386bsd 0.1.

|I copied them off the src08 disks. But they wouldn't compile. First
|autoconf was missing and when I commented out that line from the 

Autoconf ?! Did you run the configure utility that automatically 
creates the real Makefile from Makefile.in ?

|Makefile I then got other compile errors in about the 10th file.
|If somebody is knows more about BSD style UUCP then could we talk 
|about it in mail. I'm familiar with SysV UUCP so I'm anticipating
|problems when I start looking for 'uugetty' ... :-(

Hmm, it's not bsd style uucp directly, it's Taylor UUCP. 
A product with a new uucp configuration scheme (very enhanced)
which offers compatibility with bsd/uucp/HDB uucp.  
But from what I heard and my own experiences: 
	the tuucp's own configuration style work best !!!

But anyway ... I advice you to get the tayler UUCP V 1.04 sources,
to run configure and then apply my patches to the source tree.

Those diffs provide compatibility with the 386BSD file locations.
After running configure and applying my patches, tuucp
should compile and run out of the box !

*** Makefile.old	Sun Feb 28 14:56:14 1993
--- Makefile	Sun Feb 28 14:59:00 1993
***************
*** 10,16 ****
  # of this file to make sure that they are reasonable for your system.
  
  # Prefix directory for installation directories.
! prefix = /usr/local
  
  # The user name that should own the resulting executables, several of
  # which are suid.
--- 10,16 ----
  # of this file to make sure that they are reasonable for your system.
  
  # Prefix directory for installation directories.
! prefix = /usr
  
  # The user name that should own the resulting executables, several of
  # which are suid.
***************
*** 18,24 ****
  
  # Where to install uucico, uuxqt, uuchk and uuconv.  If you use this
  # definition, $(prefix)/lib must exist.
! sbindir = $(prefix)/lib/uucp
  
  # Where to install uucp, uux, uustat, uuname, uulog, uuto, uupick and
  # cu.
--- 18,24 ----
  
  # Where to install uucico, uuxqt, uuchk and uuconv.  If you use this
  # definition, $(prefix)/lib must exist.
! sbindir = $(prefix)/libexec/uucp
  
  # Where to install uucp, uux, uustat, uuname, uulog, uuto, uupick and
  # cu.
***************
*** 25,42 ****
  bindir = $(prefix)/bin
  
  # Where to install man pages.  Section 1 for user programs, 8 for daemons.
! man1dir = $(prefix)/man/man1
  man1ext = .1
! man8dir = $(prefix)/man/man8
  man8ext = .8
  
  # Where to install the info files.
! infodir = $(prefix)/info
  
  # The directory to look in for new style configuration files (when
  # using HAVE_TAYLOR_CONFIG).  Note that by default this is different
  # from sbindir, unlike traditional UUCP packages.
! newconfigdir = $(prefix)/conf/uucp
  
  # The directory to look in for BNU (when using HAVE_BNU_CONFIG) or
  # V2 (when using HAVE_V2_CONFIG) style configuration files.
--- 25,42 ----
  bindir = $(prefix)/bin
  
  # Where to install man pages.  Section 1 for user programs, 8 for daemons.
! man1dir = /home/pkg/tuucp/man1
  man1ext = .1
! man8dir = /home/pkg/tuucp/man8
  man8ext = .8
  
  # Where to install the info files.
! infodir = /home/pkg/tuucp/info
  
  # The directory to look in for new style configuration files (when
  # using HAVE_TAYLOR_CONFIG).  Note that by default this is different
  # from sbindir, unlike traditional UUCP packages.
! newconfigdir = /etc/uucp
  
  # The directory to look in for BNU (when using HAVE_BNU_CONFIG) or
  # V2 (when using HAVE_V2_CONFIG) style configuration files.
***************
*** 67,74 ****
  
  # Define programs and flags
  CC = gcc
! CFLAGS = -g
! LDFLAGS = 
  LIBS = 
  
  INSTALL = /usr/bin/install -c
--- 67,74 ----
  
  # Define programs and flags
  CC = gcc
! CFLAGS = -O
! LDFLAGS = -s
  LIBS = 
  
  INSTALL = /usr/bin/install -c
*** conf.h.old	Sun Feb 28 14:56:00 1993
--- conf.h	Sun Feb 28 14:56:36 1993
***************
*** 4,10 ****
  /* Set MAIL_PROGRAM to a program which takes a mail address as an
     argument and accepts a mail message to send to that address on
     stdin (e.g. "/bin/mail").  */
! #define MAIL_PROGRAM 
  
  /* Set ECHO_PROGRAM to a program which echoes its arguments; if echo
     is a shell builtin you can just use "echo".  */
--- 4,10 ----
  /* Set MAIL_PROGRAM to a program which takes a mail address as an
     argument and accepts a mail message to send to that address on
     stdin (e.g. "/bin/mail").  */
! #define MAIL_PROGRAM "/bin/mail"
  
  /* Set ECHO_PROGRAM to a program which echoes its arguments; if echo
     is a shell builtin you can just use "echo".  */
***************
*** 24,36 ****
  #define HAVE_SYS_IOCTL_H 1 /* <sys/ioctl.h> */
  #define HAVE_DIRENT_H 1 /* <dirent.h> */
  #define HAVE_MEMORY_H 1 /* <memory.h> */
! #define HAVE_SYS_PARAM_H 0 /* <sys/param.h> */
  #define HAVE_UTIME_H 1 /* <utime.h> */
  #define HAVE_FCNTL_H 1 /* <fcntl.h> */
  #define HAVE_SYS_FILE_H 1 /* <sys/file.h> */
  #define HAVE_SYS_TIMES_H 1 /* <sys/times.h> */
  #define HAVE_LIBC_H 0 /* <libc.h> */
! #define HAVE_SYSEXITS_H 0 /* <sysexits.h> */
  #define HAVE_POLL_H 0 /* <poll.h> */
  #define HAVE_TIUSER_H 0 /* <tiuser.h> */
  #define HAVE_XTI_H 0 /* <xti.h> */
--- 24,36 ----
  #define HAVE_SYS_IOCTL_H 1 /* <sys/ioctl.h> */
  #define HAVE_DIRENT_H 1 /* <dirent.h> */
  #define HAVE_MEMORY_H 1 /* <memory.h> */
! #define HAVE_SYS_PARAM_H 1 /* <sys/param.h> */
  #define HAVE_UTIME_H 1 /* <utime.h> */
  #define HAVE_FCNTL_H 1 /* <fcntl.h> */
  #define HAVE_SYS_FILE_H 1 /* <sys/file.h> */
  #define HAVE_SYS_TIMES_H 1 /* <sys/times.h> */
  #define HAVE_LIBC_H 0 /* <libc.h> */
! #define HAVE_SYSEXITS_H 1 /* <sysexits.h> */
  #define HAVE_POLL_H 0 /* <poll.h> */
  #define HAVE_TIUSER_H 0 /* <tiuser.h> */
  #define HAVE_XTI_H 0 /* <xti.h> */
***************
*** 37,43 ****
  #define HAVE_SYS_TLI_H 0 /* <sys/tli.h> */
  #define HAVE_STROPTS_H 0 /* <stropts.h> */
  #define HAVE_FTW_H 0 /* <ftw.h> */
! #define HAVE_GLOB_H 0 /* <glob.h> */
  #define HAVE_SYS_SELECT_H 0 /* <sys/select.h> */
  #define HAVE_SYS_TYPES_TCP_H 0 /* <sys/types.tcp.h> */
  
--- 37,43 ----
  #define HAVE_SYS_TLI_H 0 /* <sys/tli.h> */
  #define HAVE_STROPTS_H 0 /* <stropts.h> */
  #define HAVE_FTW_H 0 /* <ftw.h> */
! #define HAVE_GLOB_H 1 /* <glob.h> */
  #define HAVE_SYS_SELECT_H 0 /* <sys/select.h> */
  #define HAVE_SYS_TYPES_TCP_H 0 /* <sys/types.tcp.h> */
  
***************
*** 169,177 ****
     STAT_STATFS4          four argument statfs function
     STAT_USTAT            the ustat function with 512 byte blocks.  */
  #define STAT_STATVFS 0
! #define STAT_STATFS2_BSIZE 0
  #define STAT_STATFS2_FSIZE 0
! #define STAT_STATFS2_FS_DATA 1
  #define STAT_STATFS4 0
  #define STAT_USTAT 0
  
--- 169,177 ----
     STAT_STATFS4          four argument statfs function
     STAT_USTAT            the ustat function with 512 byte blocks.  */
  #define STAT_STATVFS 0
! #define STAT_STATFS2_BSIZE 1
  #define STAT_STATFS2_FSIZE 0
! #define STAT_STATFS2_FS_DATA 0
  #define STAT_STATFS4 0
  #define STAT_USTAT 0
  
***************
*** 216,222 ****
  #define HAVE_BSEARCH 1 /* bsrch.o */
  #define HAVE_GETLINE 0 /* getlin.o */
  #define HAVE_MEMCHR 1 /* memchr.o */
! #define HAVE_STRDUP 0 /* strdup.o */
  #define HAVE_STRSTR 1 /* strstr.o */
  #define HAVE_STRTOL 1 /* strtol.o */
  
--- 216,222 ----
  #define HAVE_BSEARCH 1 /* bsrch.o */
  #define HAVE_GETLINE 0 /* getlin.o */
  #define HAVE_MEMCHR 1 /* memchr.o */
! #define HAVE_STRDUP 1 /* strdup.o */
  #define HAVE_STRSTR 1 /* strstr.o */
  #define HAVE_STRTOL 1 /* strtol.o */
  
***************
*** 369,375 ****
  #define HAVE_NAP 0
  #define HAVE_USLEEP 1
  #define HAVE_POLL 0
! #define HAVE_SELECT 0
  
  /* If the getgrent function is available, it will be used to determine
     all the groups a user belongs to when checking file access
--- 369,375 ----
  #define HAVE_NAP 0
  #define HAVE_USLEEP 1
  #define HAVE_POLL 0
! #define HAVE_SELECT 1
  
  /* If the getgrent function is available, it will be used to determine
     all the groups a user belongs to when checking file access
*** policy.h.old	Sun Feb 28 14:56:27 1993
--- policy.h	Sun Feb 28 15:04:58 1993
***************
*** 40,46 ****
     features but defines __STDC__ (no compiler should do this, in my
     opinion), you should set ANSI_C to 0.  In most cases (or if you're
     not sure) just leave the line below commented out.  */
! /* #define ANSI_C 1 */
  
  /* Set USE_STDIO to 1 if data files should be read using the stdio
     routines (fopen, fread, etc.) rather than the UNIX unbuffered I/O
--- 40,46 ----
     features but defines __STDC__ (no compiler should do this, in my
     opinion), you should set ANSI_C to 0.  In most cases (or if you're
     not sure) just leave the line below commented out.  */
! #define ANSI_C 1
  
  /* Set USE_STDIO to 1 if data files should be read using the stdio
     routines (fopen, fread, etc.) rather than the UNIX unbuffered I/O
***************
*** 63,69 ****
     HAVE_SYSV_TERMIO -- Use the System V termio routines
     HAVE_POSIX_TERMIOS -- Use the POSIX termios routines
     */
! #define HAVE_BSD_TTY 0
  #define HAVE_SYSV_TERMIO 0
  #define HAVE_POSIX_TERMIOS 0
  
--- 63,69 ----
     HAVE_SYSV_TERMIO -- Use the System V termio routines
     HAVE_POSIX_TERMIOS -- Use the POSIX termios routines
     */
! #define HAVE_BSD_TTY 1
  #define HAVE_SYSV_TERMIO 0
  #define HAVE_POSIX_TERMIOS 0
  
***************
*** 100,106 ****
     set to 0 when it should be 1, file transfer will use more CPU time
     than necessary.  If you are unsure, setting HAVE_UNBLOCKED_WRITES
     to 0 should always be safe.  */
! #define HAVE_UNBLOCKED_WRITES 0
  
  /* When the code does do a blocking write, it wants to write the
     largest amount of data which the kernel will accept as a single
--- 100,106 ----
     set to 0 when it should be 1, file transfer will use more CPU time
     than necessary.  If you are unsure, setting HAVE_UNBLOCKED_WRITES
     to 0 should always be safe.  */
! #define HAVE_UNBLOCKED_WRITES 1
  
  /* When the code does do a blocking write, it wants to write the
     largest amount of data which the kernel will accept as a single
***************
*** 113,119 ****
     SINGLE_WRITE is too small, file transfer will use more CPU time
     than necessary.  If you have no idea, 64 should work on most modern
     systems.  */
! #define SINGLE_WRITE 64
  
  /* Some tty drivers, such as those from SCO and AT&T's Unix PC, have a
     bug in the implementation of ioctl() that causes CLOCAL to be
--- 113,119 ----
     SINGLE_WRITE is too small, file transfer will use more CPU time
     than necessary.  If you have no idea, 64 should work on most modern
     systems.  */
! #define SINGLE_WRITE 100
  
  /* Some tty drivers, such as those from SCO and AT&T's Unix PC, have a
     bug in the implementation of ioctl() that causes CLOCAL to be
***************
*** 173,179 ****
     incorrect file transfer times in the statistics file, but on many
     systems times(2) will actually not be used and this value will not
     matter at all.  */
! #define TIMES_TICK 0
  
  /* If your system does not support saved set user ID, set
     HAVE_SAVED_SETUID to 0.  However, this is ignored if your system
--- 173,179 ----
     incorrect file transfer times in the statistics file, but on many
     systems times(2) will actually not be used and this value will not
     matter at all.  */
! #define TIMES_TICK 60
  
  /* If your system does not support saved set user ID, set
     HAVE_SAVED_SETUID to 0.  However, this is ignored if your system
***************
*** 240,249 ****
     systems the lock files are placed in /etc/locks.  On some they are
     placed in /usr/spool/locks.  On the NeXT they are placed in
     /usr/spool/uucp/LCK.  */
! /* #define LOCKDIR "/usr/spool/uucp" */
! /* #define LOCKDIR "/etc/locks" */
! /* #define LOCKDIR "/usr/spool/locks" */
! /* #define LOCKDIR "/usr/spool/uucp/LCK" */
  
  /* You must also specify the format of the lock files by setting
     exactly one of the following macros to 1.  Check an existing lock
--- 240,246 ----
     systems the lock files are placed in /etc/locks.  On some they are
     placed in /usr/spool/locks.  On the NeXT they are placed in
     /usr/spool/uucp/LCK.  */
! #define LOCKDIR "/var/spool/lock"
  
  /* You must also specify the format of the lock files by setting
     exactly one of the following macros to 1.  Check an existing lock
***************
*** 290,296 ****
     the executable.  Leaving them out will decrease the executable
     size.  Leaving them in will make it easier to determine which
     version you are running.  */
! #define USE_RCS_ID 1
  
  /* DEBUG controls how much debugging information is compiled into the
     code.  If DEBUG is defined as 0, no sanity checks will be done and
--- 287,293 ----
     the executable.  Leaving them out will decrease the executable
     size.  Leaving them in will make it easier to determine which
     version you are running.  */
! #define USE_RCS_ID 0
  
  /* DEBUG controls how much debugging information is compiled into the
     code.  If DEBUG is defined as 0, no sanity checks will be done and
***************
*** 402,408 ****
  /* The name of the default spool directory.  If HAVE_TAYLOR_CONFIG is
     set to 1, this may be overridden by the ``spool'' command in the
     configuration file.  */
! #define SPOOLDIR "/usr/spool/uucp"
  
  /* The name of the default public directory.  If HAVE_TAYLOR_CONFIG is
     set to 1, this may be overridden by the ``pubdir'' command in the
--- 399,405 ----
  /* The name of the default spool directory.  If HAVE_TAYLOR_CONFIG is
     set to 1, this may be overridden by the ``spool'' command in the
     configuration file.  */
! #define SPOOLDIR "/var/spool/uucp"
  
  /* The name of the default public directory.  If HAVE_TAYLOR_CONFIG is
     set to 1, this may be overridden by the ``pubdir'' command in the
***************
*** 409,415 ****
     configuration file.  Also, a particular system may be given a
     specific public directory by using the ``pubdir'' command in the
     system file.  */
! #define PUBDIR "/usr/spool/uucppublic"
  
  /* The default command path.  This is a space separated list of
     directories.  Remote command executions requested by uux are looked
--- 406,412 ----
     configuration file.  Also, a particular system may be given a
     specific public directory by using the ``pubdir'' command in the
     system file.  */
! #define PUBDIR "/var/spool/uucppublic"
  
  /* The default command path.  This is a space separated list of
     directories.  Remote command executions requested by uux are looked
***************
*** 417,423 ****
     command path may be overridden for a particular system.  For most
     systems, you should just make sure that the programs rmail and
     rnews can be found using this path.  */
! #define CMDPATH "/bin /usr/bin /usr/local/bin"
  
  /* The default amount of free space to require for systems that do not
     specify an amount with the ``free-space'' command.  This is only
--- 414,420 ----
     command path may be overridden for a particular system.  For most
     systems, you should just make sure that the programs rmail and
     rnews can be found using this path.  */
! #define CMDPATH "/bin /usr/bin /home/bin /usr/local/bin /sbin /usr/sbin"
  
  /* The default amount of free space to require for systems that do not
     specify an amount with the ``free-space'' command.  This is only
***************
*** 463,479 ****
  /* The default log file when using HAVE_TAYLOR_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``logfile''
     command in the configuration file.  */
! #define LOGFILE "/usr/spool/uucp/Log"
  
  /* The default statistics file when using HAVE_TAYLOR_LOGGING.  When
     using HAVE_TAYLOR_CONFIG, this may be overridden by the
     ``statfile'' command in the configuration file.  */
! #define STATFILE "/usr/spool/uucp/Stats"
  
  /* The default debugging file when using HAVE_TAYLOR_LOGGING.  When
     using HAVE_TAYLOR_CONFIG, this may be overridden by the
     ``debugfile'' command in the configuration file.  */
! #define DEBUGFILE "/usr/spool/uucp/Debug"
  
  #endif /* HAVE_TAYLOR_LOGGING */
  
--- 460,476 ----
  /* The default log file when using HAVE_TAYLOR_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``logfile''
     command in the configuration file.  */
! #define LOGFILE "/var/spool/uucp/Log"
  
  /* The default statistics file when using HAVE_TAYLOR_LOGGING.  When
     using HAVE_TAYLOR_CONFIG, this may be overridden by the
     ``statfile'' command in the configuration file.  */
! #define STATFILE "/var/spool/uucp/Stats"
  
  /* The default debugging file when using HAVE_TAYLOR_LOGGING.  When
     using HAVE_TAYLOR_CONFIG, this may be overridden by the
     ``debugfile'' command in the configuration file.  */
! #define DEBUGFILE "/var/spool/uucp/Debug"
  
  #endif /* HAVE_TAYLOR_LOGGING */
  
***************
*** 482,498 ****
  /* The default log file when using HAVE_V2_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``logfile''
     command in the configuration file.  */
! #define LOGFILE "/usr/spool/uucp/LOGFILE"
  
  /* The default statistics file when using HAVE_V2_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``statfile''
     command in the configuration file.  */
! #define STATFILE "/usr/spool/uucp/SYSLOG"
  
  /* The default debugging file when using HAVE_V2_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``debugfile''
     command in the configuration file.  */
! #define DEBUGFILE "/usr/spool/uucp/DEBUG"
  
  #endif /* HAVE_V2_LOGGING */
  
--- 479,495 ----
  /* The default log file when using HAVE_V2_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``logfile''
     command in the configuration file.  */
! #define LOGFILE "/var/spool/uucp/LOGFILE"
  
  /* The default statistics file when using HAVE_V2_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``statfile''
     command in the configuration file.  */
! #define STATFILE "/var/spool/uucp/SYSLOG"
  
  /* The default debugging file when using HAVE_V2_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``debugfile''
     command in the configuration file.  */
! #define DEBUGFILE "/var/spool/uucp/DEBUG"
  
  #endif /* HAVE_V2_LOGGING */
  
***************
*** 505,520 ****
     be replaced by the system name (if there is no appropriate system,
     "ANY" will be used).  No other '%' character may appear in the
     string.  */
! #define LOGFILE "/usr/spool/uucp/.Log/%s/%s"
  
  /* The default statistics file when using HAVE_HDB_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``statfile''
     command in the configuration file.  */
! #define STATFILE "/usr/spool/uucp/.Admin/xferstats"
  
  /* The default debugging file when using HAVE_HDB_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``debugfile''
     command in the configuration file.  */
! #define DEBUGFILE "/usr/spool/uucp/.Admin/audit.local"
  
  #endif /* HAVE_HDB_LOGGING */
--- 502,517 ----
     be replaced by the system name (if there is no appropriate system,
     "ANY" will be used).  No other '%' character may appear in the
     string.  */
! #define LOGFILE "/var/spool/uucp/.Log/%s/%s"
  
  /* The default statistics file when using HAVE_HDB_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``statfile''
     command in the configuration file.  */
! #define STATFILE "/var/spool/uucp/.Admin/xferstats"
  
  /* The default debugging file when using HAVE_HDB_LOGGING.  When using
     HAVE_TAYLOR_CONFIG, this may be overridden by the ``debugfile''
     command in the configuration file.  */
! #define DEBUGFILE "/var/spool/uucp/.Admin/audit.local"
  
  #endif /* HAVE_HDB_LOGGING */
*** unix/fsusg.c.old	Sun Feb 28 15:44:24 1993
--- unix/fsusg.c	Sun Feb 28 15:45:30 1993
***************
*** 26,32 ****
  
  #if STAT_STATFS2_BSIZE
  #ifndef _IBMR2			/* 4.3BSD, SunOS 4, HP-UX, AIX PS/2.  */
! #include <sys/vfs.h>
  #endif
  #endif
  
--- 26,33 ----
  
  #if STAT_STATFS2_BSIZE
  #ifndef _IBMR2			/* 4.3BSD, SunOS 4, HP-UX, AIX PS/2.  */
! /* #include <sys/vfs.h> */
! #include <sys/mount.h>		/* 386bsd 0.1 */
  #endif
  #endif
  
============== EOF PATCHES ===========================================
-- 
----  Andreas Klemm  -------    /////// andreas@knobel.GUN.de \\\\\\\
private : +49 2137 12609        D-4040 Neuss 21 (Norf), Germany
at work : +49 2173 3964 161     Wiechers & Partner   Datentechnik GmbH
Telefax : +49 2173 3964 222     Abteilung Unix Support, D-4019 Monheim