Accepting request 402727 from home:scarabeus_iv

- Switch from uucp xinetd to systemd activated service
- Switch from suucp stunnel service to systemd service properly
  initing the stunnel

- Split out from sendmail package
- Cleanup to use proper deps and only depend on what's needed in which
  scriptlet
- Use %configure macro and friends
- Use just make_install and describe what is going in the install phase

OBS-URL: https://build.opensuse.org/request/show/402727
OBS-URL: https://build.opensuse.org/package/show/server:mail/uucp?expand=0&rev=4
This commit is contained in:
Dr. Werner Fink 2016-07-07 08:19:15 +00:00 committed by Git OBS Bridge
commit def3280df7
17 changed files with 2483 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

172
drop_ftime.patch Normal file
View File

@ -0,0 +1,172 @@
Index: uucp-1.07/configure
===================================================================
--- uucp-1.07.orig/configure
+++ uucp-1.07/configure
@@ -3837,114 +3837,6 @@ else
LIBOBJS="$LIBOBJS getlin.o"
fi
-echo $ac_n "checking for ftime""... $ac_c" 1>&6
-echo "configure:3842: checking for ftime" >&5
-if eval "test \"`echo '$''{'ac_cv_func_ftime'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 3847 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char ftime(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char ftime();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_ftime) || defined (__stub___ftime)
-choke me
-#else
-ftime();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_ftime=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_ftime=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'ftime`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking that ftime works correctly""... $ac_c" 1>&6
-echo "configure:3885: checking that ftime works correctly" >&5
-if eval "test \"`echo '$''{'uucp_cv_sys_ftime_ok'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- uucp_cv_sys_ftime_ok=runtime
-else
- cat > conftest.$ac_ext <<EOF
-#line 3893 "configure"
-#include "confdefs.h"
-
-#include <sys/types.h>
-#include <sys/timeb.h>
-main ()
-{
- struct timeb s, slast;
- int c = 0;
- ftime (&slast);
- while (c < 10)
- {
- ftime (&s);
- if (s.time < slast.time
- || (s.time == slast.time && s.millitm < slast.millitm))
- exit (1);
- if (s.time != slast.time)
- ++c;
- slast.time = s.time;
- slast.millitm = s.millitm;
- }
- exit (0);
-}
-
-EOF
-if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
- uucp_cv_sys_ftime_ok=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- uucp_cv_sys_ftime_ok=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-case $uucp_cv_sys_ftime_ok in
-yes) echo "$ac_t""yes" 1>&6 ;;
-no) echo "$ac_t""no" 1>&6
- echo "configure: warning: ftime seems to be buggy" 1>&2 ;;
-runtime) echo "$ac_t""will check at run time" 1>&6 ;;
-esac
-
-else
- echo "$ac_t""no" 1>&6
-fi
-
-if test $uucp_cv_sys_ftime_ok = yes || test $uucp_cv_sys_ftime_ok = runtime; then
- cat >> confdefs.h <<\EOF
-#define HAVE_FTIME 1
-EOF
-
-fi
for ac_func in times
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Index: uucp-1.07/configure.in
===================================================================
--- uucp-1.07.orig/configure.in
+++ uucp-1.07/configure.in
@@ -371,48 +371,6 @@ AC_CHECK_FUNC(getdelim,
[AC_LIBOBJ(getlin)])],
[AC_LIBOBJ(getlin)])
dnl
-dnl Check for the SCO buggy ftime; the code can cope with the bug,
-dnl though it would prefer not to, so if we're cross-configuring we
-dnl accept that ftime exists.
-AC_CHECK_FUNC(ftime,
-[AC_MSG_CHECKING(that ftime works correctly)
-AC_CACHE_VAL(uucp_cv_sys_ftime_ok,
-[AC_TRY_RUN([
-#include <sys/types.h>
-#include <sys/timeb.h>
-main ()
-{
- struct timeb s, slast;
- int c = 0;
- ftime (&slast);
- while (c < 10)
- {
- ftime (&s);
- if (s.time < slast.time
- || (s.time == slast.time && s.millitm < slast.millitm))
- exit (1);
- if (s.time != slast.time)
- ++c;
- slast.time = s.time;
- slast.millitm = s.millitm;
- }
- exit (0);
-}
-],
-uucp_cv_sys_ftime_ok=yes,
-uucp_cv_sys_ftime_ok=no,
-uucp_cv_sys_ftime_ok=runtime)])
-case $uucp_cv_sys_ftime_ok in
-yes) AC_MSG_RESULT(yes) ;;
-no) AC_MSG_RESULT(no)
- AC_MSG_WARN(ftime seems to be buggy) ;;
-runtime) AC_MSG_RESULT(will check at run time) ;;
-esac
-])
-if test $uucp_cv_sys_ftime_ok = yes || test $uucp_cv_sys_ftime_ok = runtime; then
- AC_DEFINE(HAVE_FTIME, 1, [Whether you have ftime])
-fi
-dnl
AC_CHECK_FUNCS(times)
AC_CHECK_FUNCS(napms nap usleep poll select)
if test $ac_cv_func_napms != yes \

12
suucp.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=SSL tunnel for uucp
After=syslog.target network.target
[Service]
User=uucp
ExecStart=/usr/sbin/stunnel /etc/uucp/suucp-server.conf
Type=forking
PrivateTmp=true
[Install]
WantedBy=multi-user.target

315
uucp-1.07-contrib.dif Normal file
View File

@ -0,0 +1,315 @@
--- contrib/Makefile.uurt
+++ contrib/Makefile.uurt Thu Jun 26 16:47:59 2003
@@ -3,7 +3,7 @@
#
# Prefix directory for installation directories.
-prefix = /usr/local
+prefix = /usr
# Directory where the needed .h files are installed (uucp.h ...).
uucpsrcs = ../
--- contrib/Makefile.xchat
+++ contrib/Makefile.xchat Thu Jun 26 16:47:59 2003
@@ -5,7 +5,7 @@
#
CC=cc
SHELL=/bin/sh
-BIN=/usr/local/lib/uucp
+BIN=/usr/lib/uucp
PROGS=xchat
#-----------
--- contrib/amiga.c
+++ contrib/amiga.c Thu Jun 26 16:51:06 2003
@@ -30,7 +30,7 @@
int main(int argc,char *argv[],char *envp)
{
struct passwd *pw;
- char *name = {"/usr/lib/uucp/uucico.real"};
+ char *name = {"/usr/lib/uucp/uucico"};
if (sysm68k(_m68k_LIMUSER,EUA_GET_LIC) == 0 ) { /* are we unlicensed? */
if (sysm68k(_m68k_LIMUSER,EUA_UUCP) == -1) { /* yes, get a "uucp"
--- contrib/stats.sh
+++ contrib/stats.sh Thu Jun 26 16:47:59 2003
@@ -8,7 +8,7 @@
# (since baud is not really the correct name for it and bits/s actually
# depends on the number of start and stop bits etc)
-grep bytes /usr/spool/uucp/Stats | grep -v 'bytes 0.00 secs' | grep -v 'failed after' | tail -80 | \
+grep bytes /var/log/uucp/Stats | grep -v 'bytes 0.00 secs' | grep -v 'failed after' | tail -80 | \
gawk '
BEGIN {
printf(" UUCP transmission history:\n");
--- contrib/uuclean
+++ contrib/uuclean Thu Jun 26 16:47:59 2003
@@ -3,8 +3,8 @@
# Do whatever you like with this script.
#
# Set some variables
-bindir=/usr/local/bin
-spooldir=/usr/spool/uucp
+bindir=/usr/bin
+spooldir=/var/spool/uucp
#
# Warn about all mail over two days old
$(bindir)/uustat -c rmail -o 48 -N -Q -W"Unable to deliver; will try up to one week"
--- contrib/uudemon.shar
+++ contrib/uudemon.shar Thu Jun 26 16:47:59 2003
@@ -43,7 +43,7 @@
X# change LIBDIR to where UUCP library/conf. files are
X# change SPOOLDIR to the UUCP spool directory. It must be HDB-ish.
XLIBDIR=/usr/lib/uucp; export LIBDIR
-XSPOOLDIR=/usr/spool/uucp; export SPOOLDIR
+XSPOOLDIR=/var/spool/uucp; export SPOOLDIR
X
X### no changes needed past here ###
X
--- contrib/uupoll.shar
+++ contrib/uupoll.shar Thu Jun 26 16:47:59 2003
@@ -33,7 +33,7 @@
# borrowed and hacked from Taylor UUCP 1.04
X
# Prefix directory for installation directories.
-prefix = /usr/local
+prefix = /usr
X
# The user name/group that should own the resulting executables.
# Both should run suid.
@@ -174,7 +174,7 @@
started by an entry in the crontab tables in just the same way uucico is
started (it will start uucico):
X
-05 5 * * * uucp /usr/local/lib/uucp/autopoll -r1 >>/tmp/poll.log 2>&1
+05 5 * * * uucp /usr/lib/uucp/autopoll -r1 >>/tmp/poll.log 2>&1
X
Any messages go to stderr or a file (if compiled with that option); in case
the file could not be opened it will use stdout to tell you just that and quit.
@@ -384,12 +384,10 @@
a failing call.
.SH FILES
.nf
-/usr/local/lib/uucp UUCP internal utilities
-/usr/lib/uucp
-/usr/local/bin UUCP internal utilities
-/usr/bin
-/usr/spool/uucp/.Status/ Status files for each site
-/usr/spool/uucp/ UUCP spool area. one of its sub-
+/usr/lib/uucp UUCP internal utilities
+/usr/bin UUCP internal utilities
+/var/log/uucp/Stats Status file for each site
+/var/spool/uucp/ UUCP spool area. one of its sub-
X directories will hold the null jobs.
/tmp/poll.log This file is present only if autopoll
X has been compiled to place the messages
@@ -1672,15 +1670,15 @@
/* Define the complete path to the uuname program.
X * If undefined we'll use just the name 'uuname' to call it
X * */
-#define UNAME_DIR "/usr/local/bin/uuname"
+#define UNAME_DIR "/usr/bin/uuname"
X
/* define the path to the directory which does contain uucico */
-#define CICO_DIR "/usr/local/lib/uucp/uucico"
+#define CICO_DIR "/usr/lib/uucp/uucico"
X
/* define the path to the directory which holds all the uucp files.
X * We'll place the poll file in one of it's subdirectories
X * */
-#define SPOOL_DIR "/usr/spool/uucp"
+#define SPOOL_DIR "/var/spool/uucp"
X
/* at least one of the follwing must be defined To use the second or
X * third set of definitions, change the ``#if 1'' to ``#if 0''
@@ -1724,7 +1722,7 @@
X * This will assure that we get the one we want
X * The path must be the same as given in Makefile (lbindir)
X * */
-#define AUTO_DIR "/usr/local/lib/uucp/autopoll"
+#define AUTO_DIR "/usr/lib/uucp/autopoll"
X
/* define the path to the directory which is to contain the
X * message log created by autopoll and the file name itself.
@@ -1737,11 +1735,11 @@
/* define the full path to the directory which holds the status files
X * The name should be given *except* the sitename. A trailing `/' if any
X * must be given.
-X * Example: /usr/spool/uucp/.Status/sys.sitename
+X * Example: /var/spool/uucp/.Status/sys.sitename
X * then specify STATUS_DIR as
-X * "/usr/spool/uucp/.Status/sys."
+X * "/var/spool/uucp/.Status/sys."
X * */
-#define STATUS_DIR "/usr/spool/uucp/.Status/"
+#define STATUS_DIR "/var/spool/uucp/.Status/"
#endif
SHAR_EOF
chmod 0444 uupoll/conf.h ||
@@ -1906,10 +1904,10 @@
.IR all
sites given. That may lead to a `No port available' condition.
.SH FILES
-.ta \w'/usr/spool/uucp/ 'u
+.ta \w'/var/spool/uucp/ 'u
.nf
/etc/uucp/ UUCP internal files/utilities
-/usr/spool/uucp/ Spool directory
+/var/spool/uucp/ Spool directory
/tmp/poll.log This file is present only if uupoll has been
X compiled to place the messages into a file.
X Otherwise all messages will go to stderr.
--- contrib/uuq.sh
+++ contrib/uuq.sh Thu Jun 26 16:47:59 2003
@@ -4,7 +4,7 @@
# note - uses the uuname script or similar functionality.
# Zacharias Beckman
-SPOOLDIR="/usr/spool/uucp"
+SPOOLDIR="/var/spool/uucp"
SYSTEMS=`uuname`
TMPFILE="/tmp/uuq.tmp"
FORSYSTEM=""
--- contrib/uurate.c
+++ contrib/uurate.c Thu Jun 26 16:47:59 2003
@@ -307,6 +307,7 @@
int sent, called = IN;
int report = 0; /* if <= 0 give msg that no report was avail. */
int junk;
+ extern int getopt();
/* --------------------------------------------------------------------
* P r o l o g
--- contrib/uurate.man
+++ contrib/uurate.man Thu Jun 26 16:47:59 2003
@@ -1,4 +1,4 @@
-''' $Id: uurate.man,v 1.4 1993/09/28 17:38:31 kdburg Rel $
+'\" $Id: uurate.man,v 1.4 1993/09/28 17:38:31 kdburg Rel $
.TH uurate 1
.SH NAME
uurate \- Report Taylor UUCP statistics
@@ -252,8 +252,8 @@
.nf
.in +.3in
.ta 2.2i
-.IR "/usr/spool/uucp/Log " "V2/Taylor format call/execution log,"
-.IR "/usr/spool/uucp/Stats " "V2/Taylor format file transfer log."
+.IR "/var/log/uucp/Log " "V2/Taylor format call/execution log,"
+.IR "/var/log/uucp/Stats " "V2/Taylor format file transfer log."
.SS "SEE ALSO"
.IR uucico "(8)"
.SS BUGS
--- contrib/uureroute.perl
+++ contrib/uureroute.perl Thu Jun 26 16:54:33 2003
@@ -34,7 +34,7 @@
#
";
-$UUSTAT = "uustat";
+$UUSTAT = "/usr/bin/uustat";
$SHELL = "/bin/sh";
$SMAIL = "/bin/smail";
@@ -61,7 +61,7 @@
while ($system = shift)
{
$sysprefix = substr ($system, 0, 7);
- $directory = "/usr/spool/uucp/$sysprefix";
+ $directory = "/var/spool/uucp/$sysprefix";
open (UUSTAT, "$UUSTAT -s $system -c rmail |");
print "set -ex\n";
while (<UUSTAT>)
--- contrib/uusnap.c
+++ contrib/uusnap.c Thu Jun 26 16:48:01 2003
@@ -11,7 +11,7 @@
At the moment it only works with taylor config and taylor dirs
compile it form the Makefile or:
- cc -c -g -pipe -O -I. -I. -DNEWCONFIGLIB=\"/usr/local/lib/uucp\" uusnap.c
+ cc -c -g -pipe -O -I. -I. -DNEWCONFIGLIB=\"/usr/lib/uucp\" uusnap.c
cc -o uusnap uusnap.o
For this, uusnap.[ch] must be in the same directory as uucp.h and so.
--- contrib/uutraf
+++ contrib/uutraf Thu Jun 26 16:48:01 2003
@@ -52,21 +52,21 @@
}
if ( $uucp_type eq "taylor" || $uucp_type eq "gnu" ) {
- @ARGV = ("/usr/local/spool/uucp/Stats") unless $#ARGV >= 0;
+ @ARGV = ("/var/log/uucp/Stats") unless $#ARGV >= 0;
$pat = "^[^ ]+ ([^ ]+) \\(([-0-9:\\/ .]+)\\) " .
"(sent|received) (\\d+) bytes in (\\d+)\\.(\\d+) seconds";
$uucp_type = 0;
$recv = "received";
}
elsif ( $uucp_type eq "hdb" || $uucp_type eq "bnu" ) {
- @ARGV = ("/usr/spool/uucp/.Admin/xferstats") unless $#ARGV >= 0;
+ @ARGV = ("/var/spool/uucp/.Admin/xferstats") unless $#ARGV >= 0;
$pat = "^([^!]+)![^(]+\\(([-0-9:\\/]+)\\).+([<>])-? " .
"(\\d+) \\/ (\\d+)\\.(\\d+) secs";
$uucp_type = 1;
$recv = "<";
}
elsif ( $uucp_type eq "bsd" || $uucp_type eq "v7" ) {
- @ARGV = ("/usr/spool/uucp/SYSLOG") unless $#ARGV >= 0;
+ @ARGV = ("/var/spool/uucp/SYSLOG") unless $#ARGV >= 0;
$pat = "^[^ ]+ ([^ ]+) \\(([-0-9:\\/]+)\\) \\([^)]+\\) " .
"(sent|received) (\\d+) b (\\d+) secs";
$uucp_type = 2;
--- contrib/uutry
+++ contrib/uutry Thu Jun 26 16:48:01 2003
@@ -14,10 +14,11 @@
# The following variables should be gropped from the configuration
# files rather then being hard coded here.
#
-Spool=/usr/spool/uucp
-Lib=/usr/local/lib/uucp
-Status=$Spool/.Status
-Debug=$Spool/Debug
+Spool=/var/spool/uucp
+Lib=/usr/lib/uucp
+Log=/var/log
+Status=$Log/Stats
+Debug=$Log/Debug
Uucico=$Lib/uucico
#
# Default option values
--- contrib/xc-conf.h-dist
+++ contrib/xc-conf.h-dist Thu Jun 26 16:48:01 2003
@@ -26,7 +26,7 @@
* executed. Normally, this is the same place you put your config
* and system files for UUCP.
*/
-#define SCRIPT_DIR "/usr/local/conf/uucp/" /* MUST HAVE TRAILING "/" */
+#define SCRIPT_DIR "/etc/uucp/" /* MUST HAVE TRAILING "/" */
/*
* The following definition establishes the default path to the
@@ -34,5 +34,5 @@
* this is the same location you configured Taylor UUCP to put its
* log files.
*/
-#define LOG_DIR "/usr/spool/uucp/" /* MUST HAVE TRAILING "/" */
+#define LOG_DIR "/var/log/uucp/" /* MUST HAVE TRAILING "/" */
--- contrib/xchat.man
+++ contrib/xchat.man Thu Jun 26 16:48:01 2003
@@ -14,7 +14,7 @@
begins with ``/'', then it is assumed to be a full path name for the
script file. If not, a configuration-dependent default directory path
(usually
-.B "/usr/local/conf/uucp/"
+.B "/etc/uucp/"
) is prepended to the script file name. Normally, the default path
is the same as that for the Taylor UUCP configuration files.
.SH DESCRIPTION
@@ -163,7 +163,7 @@
begins with ``/'', it is assumed to be an absolute path name for the
debugging file. If not, then a configuration-dependent default directory
path (usually
-.B "/usr/spool/uucp"
+.B "/var/spool/uucp"
) is prepended to
.I xstr.
Normally the default path is that of the directory where Taylor UUCP

14
uucp-1.07-cu.patch Normal file
View File

@ -0,0 +1,14 @@
--- cu.c
+++ cu.c Thu Jun 26 18:39:05 2003
@@ -565,6 +565,11 @@
sinfo.zline = zline;
if (zport != NULL || zline != NULL || ibaud != 0L)
{
+ /* Make sure _everything_ is initialized to zero.
+ * Otherwise some fields (such as uuconf_fcarrier)
+ * will be random. */
+ memset(&sport, 0, sizeof(sport));
+
iuuconf = uuconf_find_port (puuconf, zport, ibaud, 0L,
icuport_lock, (pointer) &sinfo,
&sport);

91
uucp-1.07-grade.patch Normal file
View File

@ -0,0 +1,91 @@
--- uucico.8
+++ uucico.8 Thu Jun 26 18:29:36 2003
@@ -145,6 +145,9 @@
.B \-f, \-\-force
Ignore any required wait for any systems to be called.
.TP 5
+.B \-g, \-\-grade
+Limit outgoing call to a given grade.
+.TP 5
.B \-l, \-\-prompt
Prompt for login name and password using "login: " and "Password:".
This allows
--- uucico.c
+++ uucico.c Thu Jun 26 18:29:58 2003
@@ -125,6 +125,9 @@
struct sconnection *qconn;
};
+/* min. grade set on commandline */
+static char cmdlgrade = '\0';
+
/* Local functions. */
static void uusage P((void));
@@ -175,6 +178,7 @@
{ "nodetach", no_argument, NULL, 'D' },
{ "loop", no_argument, NULL, 'e' },
{ "force", no_argument, NULL, 'f'},
+ { "grade", required_argument, NULL, 'g'},
{ "stdin", required_argument, NULL, 'i' },
{ "prompt", no_argument, NULL, 'l' },
{ "port", required_argument, NULL, 'p' },
@@ -249,9 +253,9 @@
++zProgram;
#if COHERENT_C_OPTION
- zopts = "c:CDefi:I:lp:qr:s:S:u:x:X:vwz";
+ zopts = "c:CDefg:i:I:lp:qr:s:S:u:x:X:vwz";
#else
- zopts = "cCDefi:I:lp:qr:s:S:u:x:X:vwz";
+ zopts = "cCDefg:i:I:lp:qr:s:S:u:x:X:vwz";
#endif
while ((iopt = getopt_long (argc, argv, zopts,
@@ -292,6 +296,14 @@
failed call. */
fforce = TRUE;
break;
+
+ case 'g':
+ /* Force a grade */
+ if (isalpha(optarg[0]))
+ cmdlgrade = optarg[0];
+ else
+ fprintf (stderr, "%s: invalid grade \n", zProgram);
+ break;
case 'i':
/* Type of port to use for standard input. Only TLI is
@@ -796,6 +808,7 @@
printf ("Usage: %s [options]\n", zProgram);
printf (" -s,-S,--system system: Call system (-S implies -f)\n");
printf (" -f,--force: Force call despite system status\n");
+ printf (" -g,--grade: Limit outgoing call to a given grade\n");
printf (" -r state: 1 for master, 0 for slave (default)\n");
printf (" --master: Act as master\n");
printf (" --slave: Act as slave (default)\n");
@@ -1369,12 +1382,18 @@
boolean fret;
/* Determine the grade we should request of the other system. A
- '\0' means that no restrictions have been made. */
- if (! ftimespan_match (qsys->uuconf_qcalltimegrade, &ival,
- (int *) NULL))
- bgrade = '\0';
+ '\0' means that no restrictions have been made.
+ If a grade is set on the command line, the calltimegrade-value
+ is overwritten. */
+
+ if (cmdlgrade != '\0')
+ bgrade = cmdlgrade;
else
- bgrade = (char) ival;
+ if (! ftimespan_match (qsys->uuconf_qcalltimegrade, &ival,
+ (int *) NULL))
+ bgrade = '\0';
+ else
+ bgrade = (char) ival;
/* Determine the name we will call ourselves. */
if (qsys->uuconf_zlocalname != NULL)

68
uucp-1.07-lockdev.patch Normal file
View File

@ -0,0 +1,68 @@
Index: unix/serial.c
===================================================================
--- unix/serial.c.orig
+++ unix/serial.c
@@ -126,6 +126,10 @@ const char serial_rcsid[] = "$Id: serial
#include <sys/termiox.h>
#endif
+#if HAVE_LOCKDEV
+#include <ttylock.h>
+#endif
+
/* Get definitions for both O_NONBLOCK and O_NDELAY. */
#ifndef O_NDELAY
#ifdef FNDELAY
@@ -623,6 +627,20 @@ fsserial_lockfile (flok, qconn)
z = zalc;
}
#else /* ! HAVE_QNX_LOCKFILES */
+#if HAVE_LOCKDEV
+ {
+ int rc;
+
+ if (flok)
+ rc = ttylock(qsysdep->zdevice);
+ else
+ rc = ttyunlock(qsysdep->zdevice);
+ if (rc)
+ ulog (LOG_ERROR, "tty%slock (%s): %s", flok?"":"un", qsysdep->zdevice, strerror (-rc));
+ fret = (rc == 0 ? TRUE : FALSE);
+ return fret;
+ }
+#else /* ! HAVE_LOCKDEV */
#if ! HAVE_SVR4_LOCKFILES
{
const char *zbase;
@@ -660,6 +678,7 @@ fsserial_lockfile (flok, qconn)
z = zalc;
}
#endif /* HAVE_SVR4_LOCKFILES */
+#endif /* ! HAVE_LOCKDEV */
#endif /* ! HAVE_QNX_LOCKFILES */
}
Index: Makefile.am
===================================================================
--- Makefile.am.orig
+++ Makefile.am
@@ -25,7 +25,7 @@ endif
AM_CFLAGS = $(WARN_CFLAGS) $(UUDIRFLAGS)
-LDADD = unix/libunix.a uuconf/libuuconf.a lib/libuucp.a
+LDADD = unix/libunix.a uuconf/libuuconf.a lib/libuucp.a $(LOCKDEV_LIBS)
UUHEADERS = uucp.h uudefs.h uuconf.h policy.h system.h sysdep.h getopt.h
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -787,4 +787,6 @@ else
AC_SYS_LONG_FILE_NAMES
fi
dnl
+PKG_CHECK_MODULES([LOCKDEV], [lockdev], AC_DEFINE([HAVE_LOCKDEV],[1],[Define if you have lockdev]))
+dnl
AC_OUTPUT(Makefile uuconf/Makefile lib/Makefile unix/Makefile)

1193
uucp-1.07.dif Normal file

File diff suppressed because it is too large Load Diff

3
uucp-1.07.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:060c15bfba6cfd1171ad81f782789032113e199a5aded8f8e0c1c5bd1385b62c
size 1013234

31
uucp-texinfo-5.0.patch Normal file
View File

@ -0,0 +1,31 @@
Index: uucp-1.07/uucp.texi
===================================================================
--- uucp-1.07.orig/uucp.texi
+++ uucp-1.07/uucp.texi
@@ -4230,7 +4230,7 @@ may be sent to the remote system upon re
@table @code
-@itemx speed @var{number}
+@item speed @var{number}
@findex speed in sys file
@item baud @var{number}
@findex baud in sys file
@@ -5119,7 +5119,7 @@ the port name is taken as the device. D
dependent. On Unix, a modem or direct connection might be something
like @file{/dev/ttyd0}; a TLI port might be @file{/dev/inet/tcp}.
-@itemx speed @var{number} [modem and direct only ]
+@item speed @var{number} [modem and direct only ]
@findex speed in port file
@item baud @var{number} [ modem and direct only ]
@findex baud in port file
@@ -5129,7 +5129,7 @@ name, then all ports which match the spe
the speed is not specified here and is not specified by the system, the
natural speed of the port will be used by default.
-@itemx speed-range @var{number} @var{number} [ modem only ]
+@item speed-range @var{number} @var{number} [ modem only ]
@findex speed-range
@item baud-range @var{number} @var{number} [ modem only ]
@findex baud-range

322
uucp.changes Normal file
View File

@ -0,0 +1,322 @@
-------------------------------------------------------------------
Thu Jun 16 12:29:55 UTC 2016 - tchvatal@suse.com
- Switch from uucp xinetd to systemd activated service
- Switch from suucp stunnel service to systemd service properly
initing the stunnel
-------------------------------------------------------------------
Thu Jun 16 12:12:00 UTC 2016 - tchvatal@suse.com
- Split out from sendmail package
- Cleanup to use proper deps and only depend on what's needed in which
scriptlet
- Use %configure macro and friends
- Use just make_install and describe what is going in the install phase
-------------------------------------------------------------------
Mon Mar 2 08:28:11 UTC 2015 - werner@suse.de
- Make makeinfo less restrict
-------------------------------------------------------------------
Tue Feb 24 19:25:15 UTC 2015 - dimstar@opensuse.org
- Add uucp-texinfo-5.0.patch: Fix build with texinfo 5.0.
-------------------------------------------------------------------
Wed Sep 10 12:22:47 UTC 2014 - lnussel@suse.de
- don't set LOCKDIR. uucp will properly use it's spool dir for system lock
files then. Serial lock files are handled by lockdev anyways (bnc#760079)
- add a line of debug output in case serial locking failed
-------------------------------------------------------------------
Thu Nov 14 20:39:51 UTC 2013 - dvaleev@suse.com
- Drop obsolted ftime (drop_ftime.patch)
Broken under PowerKVM
-------------------------------------------------------------------
Fri May 31 06:17:50 UTC 2013 - coolo@suse.com
- buildrequire makeinfo (automake 1.13 no longer requires it)
-------------------------------------------------------------------
Fri May 25 15:00:21 UTC 2012 - werner@suse.de
- Job creation scheme (bnc#764107)
-------------------------------------------------------------------
Tue Mar 13 11:31:21 UTC 2012 - mweckbecker@suse.com
- Add missing linkerflags to make it build w/ -fPIE properly
-------------------------------------------------------------------
Tue Jan 24 17:17:07 UTC 2012 - werner@suse.de
- Use -fPIE due bnc#743147
-------------------------------------------------------------------
Tue Jan 17 10:40:22 UTC 2012 - aj@suse.de
- Remove suse_update_config usage.
- Add autoconf and automake as build requirements.
-------------------------------------------------------------------
Thu Mar 10 13:32:16 CET 2011 - werner@suse.de
- Change owner ship of /var/log/uucp to root and touch the log
files if not exists for user uucp (bnc#678432)
-------------------------------------------------------------------
Tue Mar 9 16:03:15 UTC 2010 - lnussel@suse.de
- use lockdev (FATE#308360)
-------------------------------------------------------------------
Fri Dec 18 00:42:37 CET 2009 - jengelh@medozas.de
- Enable parallel building
-------------------------------------------------------------------
Wed Jun 13 15:06:56 CEST 2007 - werner@suse.de
- Recommend stunnel package (bug #254613)
-------------------------------------------------------------------
Fri Feb 16 16:10:27 CET 2007 - werner@suse.de
- Split off uucp spec file from sendmail spec file
- Require new rmail sub packages of sendmail
-------------------------------------------------------------------
Mon Feb 12 17:22:04 CET 2007 - werner@suse.de
- Make it build nonroot
-------------------------------------------------------------------
Fri Jan 19 17:04:16 CET 2007 - werner@suse.de
- Add uucp over ssh protocol and example to be able to use uucp
even with dynamic IP addresses on the client side.
-------------------------------------------------------------------
Thu Jun 22 16:13:51 CEST 2006 - werner@suse.de
- Add a few manual pages missed (bug #187356)
-------------------------------------------------------------------
Tue Mar 14 16:47:09 CET 2006 - werner@suse.de
- Remove contrib/uucomp.shar due broken license (bug #157791)
-------------------------------------------------------------------
Thu Oct 13 14:51:17 CEST 2005 - lmuelle@suse.de
- Install example config files call and passwd with read write permissions for
user root, read only for group uucp, and non access at all for others.
- Add pipe-stunnel port and stunnel example config files to
cfg_example/taylor_config/port.
-------------------------------------------------------------------
Mon Jun 20 14:07:19 CEST 2005 - werner@suse.de
- In passwd example to not mix-up uucp host and uucp user
-------------------------------------------------------------------
Mon Jun 20 13:24:07 CEST 2005 - werner@suse.de
- Make the comments in the taylor configurationb files more clear
and add a comment on the passwd file and add also an example for
the passwd file used for incomming calls.
-------------------------------------------------------------------
Tue Aug 31 18:14:39 CEST 2004 - werner@suse.de
- Remove update message
-------------------------------------------------------------------
Tue Aug 31 14:18:49 CEST 2004 - werner@suse.de
- Move forward to new update messages scheme
-------------------------------------------------------------------
Thu Jul 29 18:17:40 CEST 2004 - werner@suse.de
- Fix autoconfig function definition
-------------------------------------------------------------------
Wed Sep 17 12:11:43 CEST 2003 - werner@suse.de
- Change owner and permission of /var/spool/uucppublic (bug #31119)
-------------------------------------------------------------------
Mon Jun 30 16:28:38 CEST 2003 - werner@suse.de
- Update to uucp 1.07
-------------------------------------------------------------------
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
-------------------------------------------------------------------
Mon Apr 14 17:52:49 CEST 2003 - werner@suse.de
- Add /etc/uucp with user uucp and group uucp to file list of uucp
(bug #26301)
-------------------------------------------------------------------
Wed Mar 5 19:07:29 CET 2003 - werner@suse.de
- Fix bug #24685: provide an xinetd config file for uucico
-------------------------------------------------------------------
Wed Feb 26 14:09:11 CET 2003 - werner@suse.de
- Fix initial port struct settings by zero the mem area.
-------------------------------------------------------------------
Tue Feb 11 17:33:03 CET 2003 - werner@suse.de
- Fix bug #23466: use install_info macro in spec
-------------------------------------------------------------------
Tue Jan 14 18:41:49 CET 2003 - werner@suse.de
- Use BuildRoot
-------------------------------------------------------------------
Fri Aug 16 14:03:11 CEST 2002 - werner@suse.de
- Add PreReq (bug #18012)
-------------------------------------------------------------------
Mon Aug 12 17:06:26 CEST 2002 - werner@suse.de
- Move logrotate configure for uucp logs to new format
-------------------------------------------------------------------
Wed May 8 19:10:07 CEST 2002 - werner@suse.de
- Add logrotate entry for uucp to /etc/logrotate.d/ (bug #15944)
-------------------------------------------------------------------
Fri Apr 5 01:52:54 CEST 2002 - ro@suse.de
- autoconf: LIBOBJS vs AC_LIBOBJ
-------------------------------------------------------------------
Thu Oct 25 17:17:14 CEST 2001 - werner@suse.de
- UUCP: Fix exploit in uuxqt
-------------------------------------------------------------------
Wed Jun 6 17:07:58 CEST 2001 - werner@suse.de
- Make it work with new autoconf
-------------------------------------------------------------------
Wed Mar 21 19:19:31 CET 2001 - werner@suse.de
- It's GNU source
-------------------------------------------------------------------
Thu Mar 15 01:08:35 CET 2001 - ro@suse.de
- fixed neededforbuild for openldap
------------------------------------------------------------------
Tue Mar 13 15:11:08 CET 2001 - werner@suse.de
- Fix manual page: do not handle CVS a pre processor
------------------------------------------------------------------
Tue Nov 28 16:31:39 CET 2000 - werner@suse.de
- Set permissions and owner ship of /var/log/uucp/ to
0755 and uucp.uucp.
------------------------------------------------------------------
Tue May 9 13:47:59 CEST 2000 - werner@suse.de
- Revisited uucpcfg
* Add english comments
* Add UUCP over TCP/IP example
* Comment out the examples (security: no backdoor)
* Add some speed ranges for port serial1
------------------------------------------------------------------
Fri Apr 7 17:46:26 CEST 2000 - werner@suse.de
- Changes for uucp
* Avoid FPE error if baud rate is zero (uucico.c)
* Add some higher baud rates (i386, mostly ppc) (uucico.c)
* Avoid stall connection due ignored "CYM" command (trans.c)
* Avoid root owned stale locks
* Add grade patch for uucico from Debian
* Some minor and unchecked changes of the contrib's
* Use /var/log/uucp for logging (Tayler configuration)
* Change paths in manual pages and info files
------------------------------------------------------------------
Thu Mar 16 19:54:43 CET 2000 - werner@suse.de
- Make UUCP docs readable for all
-------------------------------------------------------------------
Tue Feb 29 19:54:19 CET 2000 - schwab@suse.de
- Fix size_t vs. socklen_t.
-------------------------------------------------------------------
Mon Feb 14 08:47:00 CET 2000 - ro@suse.de
- removed Makefile.Linux
- updated configure
- move man,info to /usr/share using macro
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
-------------------------------------------------------------------
Wed Feb 17 16:43:34 MET 1999 - ro@suse.de
- added rmail and rmail.8 built from sendmail-sources
- build from sendmail.spec
-------------------------------------------------------------------
Fri Jan 8 16:34:49 MET 1999 - bs@suse.de
- incorporated uucpcfg
-------------------------------------------------------------------
Mon Dec 14 02:43:37 MET 1998 - bs@suse.de
- created notify mail
----------------------------------------------------------------------
Sun Dec 13 13:51:55 MET 1998 - florian@suse.de
do not use "-" to start options for "ps"
move config dir to /etc/uucp
cu is not suid uucp
compiler falgs are set to sane values
----------------------------------------------------------------------
Fri Oct 25 16:47:30 MET DST 1996 - bs@suse.de
var/spool/uucppublic/README changed
----------------------------------------------------------------------
Mon Sep 2 03:06:07 MET DST 1996
don't use public writable directories
----------------------------------------------------------------------
Sun Aug 25 19:28:50 MET DST 1996 - bs@suse.de
change from binary to ascii lockfiles

9
uucp.socket Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=UUCP Tcp Server Activation Socket
[Socket]
ListenStream=540
Accept=true
[Install]
WantedBy=sockets.target

203
uucp.spec Normal file
View File

@ -0,0 +1,203 @@
#
# spec file for package uucp
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: uucp
Version: 1.07
Release: 0
Summary: Taylor UUCP
License: GPL-2.0+
Group: Productivity/Networking/Other
Url: https://www.gnu.org/software/uucp/
Source0: http://ftp.gnu.org/gnu/uucp/%{name}-%{version}.tar.gz
Source1: uucpcfg.tar.bz2
Source3: suucp.service
Source4: uucpman.sh
Source5: uucp@.service
Source6: uucp.socket
Patch0: uucp-1.07.dif
Patch1: uucp-1.07-contrib.dif
Patch2: uucp-1.07-grade.patch
Patch3: uucp-1.07-cu.patch
Patch4: uucp-1.07-lockdev.patch
Patch5: drop_ftime.patch
Patch6: uucp-texinfo-5.0.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: lockdev-devel
BuildRequires: makeinfo
BuildRequires: pkgconfig
Requires: filesystem
Requires: logrotate
Requires: netcfg
Requires: rmail
Requires: stunnel
Requires(post): %{install_info_prereq}
Requires(post): fileutils
Requires(post): permissions
Requires(preun): %{install_info_prereq}
Requires(verify): permissions
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
%description
Ian Taylor's Unix to Unix copy: mail and news over modem lines. This is
the standard UUCP package from the Free Software Foundation. It is
configured to use HoneyDanBer or Taylor configuration files. With
version 6.0 of SuSE Linux, the configuration directory has been moved
to %{_sysconfdir}/uucp. Exactly: Taylor config: %{_sysconfdir}/uucp HoneyDanBer
config: %{_sysconfdir}/uucp/hdb_config If you have your own setup under
%{_localstatedir}/lib/uucp, please move it to %{_sysconfdir}/uucp. Example
configurations can be found in %{_docdir}/uucp.
We did not include a uucp guest account. If you want to create a guest
account, make sure the directory %{_localstatedir}/spool/uucppublic exists.
%prep
%setup -q
%patch1 -b .cont
%patch2 -b .grad
%patch3 -b .cu
%patch4 -b .lockdev
%patch0
%patch5 -p1
%patch6 -p1
%build
autoreconf -fvi
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
%configure \
--with-newconfigdir=%{_sysconfdir}/uucp \
--with-oldconfigdir=%{_sysconfdir}/uucp/hdb_config
make %{?_smp_mflags} LDFLAGS="-pie" MAKEINFO="makeinfo --force"
%install
%make_install install-info
# oldconfig
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/uucp/hdb_config
# logrotate
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 logrotate %{buildroot}%{_sysconfdir}/logrotate.d/uucp
# systemd services
mkdir -p %{buildroot}%{_unitdir}
install -m644 %{SOURCE3} %{buildroot}%{_unitdir}
install -m644 %{SOURCE5} %{buildroot}%{_unitdir}
install -m644 %{SOURCE6} %{buildroot}%{_unitdir}
# move to libexec
mkdir -p -m 755 %{buildroot}%{_libexecdir}/uucp/
mv %{buildroot}%{_sbindir}/uu* %{buildroot}%{_libexecdir}/uucp/
for x in %{buildroot}%{_libexecdir}/uucp/* ; do
echo ${x##*/}
ln -fs %{_libexecdir}/uucp/${x##*/} %{buildroot}%{_sbindir}/
done
# readme
mkdir -p -m 755 %{buildroot}%{_localstatedir}/spool/uucp %{buildroot}%{_localstatedir}/spool/uucppublic
install -m 644 README.suse %{buildroot}%{_localstatedir}/spool/uucppublic/README
# docs
rm -rf %{buildroot}%{_defaultdocdir}/uucp
mkdir -p %{buildroot}%{_defaultdocdir}/uucp
mkdir -p %{buildroot}%{_localstatedir}/log/uucp
chmod 1755 %{buildroot}%{_localstatedir}/log/uucp
tar jxvfpC %{SOURCE1} %{buildroot}%{_defaultdocdir}/uucp
chmod -R u+r,o+r,g+r %{buildroot}%{_defaultdocdir}/uucp/
# rcbla compat symlink
ln -fs service %{buildroot}/%{_sbindir}/rcs%{name}
%verifyscript
%verify_permissions -e %{_localstatedir}/spool/uucp/
%verify_permissions -e %{_localstatedir}/spool/uucppublic/
%verify_permissions -e %{_bindir}/uucp
%verify_permissions -e %{_bindir}/uuname
%verify_permissions -e %{_bindir}/uustat
%verify_permissions -e %{_bindir}/uux
%verify_permissions -e %{_libexecdir}/uucp/uucico
%verify_permissions -e %{_libexecdir}/uucp/uuxqt
%pre
%service_add_pre s%{name}.service
%post
%install_info --info-dir=%{_infodir} %{_infodir}/uucp.info%{ext_info}
%service_add_post s%{name}.service
for log in Log Stats Debug ; do
if test -e %{_localstatedir}/log/uucp/$log ; then
continue
fi
touch %{_localstatedir}/log/uucp/$log
chown uucp:uucp %{_localstatedir}/log/uucp/$log
chmod 0640 %{_localstatedir}/log/uucp/$log
done
chown root:root %{_localstatedir}/log/uucp
chmod 1755 %{_localstatedir}/log/uucp
%set_permissions %{_localstatedir}/spool/uucp/
%set_permissions %{_localstatedir}/spool/uucppublic/
%set_permissions %{_bindir}/uucp
%set_permissions %{_bindir}/uuname
%set_permissions %{_bindir}/uustat
%set_permissions %{_bindir}/uux
%set_permissions %{_libexecdir}/uucp/uucico
%set_permissions %{_libexecdir}/uucp/uuxqt
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/uucp.info%{ext_info}
%service_del_preun s%{name}.service
%postun
%service_del_postun s%{name}.service
%files
%defattr(-,root,root)
%{_unitdir}/%{name}@.service
%{_unitdir}/%{name}.socket
%{_unitdir}/s%{name}.service
%{_sbindir}/rcs%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/uucp
%dir %attr(0750,uucp,uucp) %{_sysconfdir}/uucp/hdb_config
%dir %{_libexecdir}/uucp
%dir %attr(1755,root,root) %{_localstatedir}/log/uucp
%verify(not mode group) %dir %attr(1770,root,uucp) %{_localstatedir}/spool/uucppublic
%attr(755,root,root) %{_bindir}/cu
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uucp
%{_bindir}/uulog
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uuname
%{_bindir}/uupick
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uustat
%{_bindir}/uuto
%verify(not mode) %attr(6555,uucp,uucp) %{_bindir}/uux
%{_infodir}/uucp.info*%{ext_info}
%{_libexecdir}/uucp/uuchk
%verify(not mode) %attr(6555,uucp,uucp) %{_libexecdir}/uucp/uucico
%{_libexecdir}/uucp/uuconv
%{_libexecdir}/uucp/uusched
%verify(not mode) %attr(6555,uucp,uucp) %{_libexecdir}/uucp/uuxqt
%{_sbindir}/uuchk
%{_sbindir}/uucico
%{_sbindir}/uuconv
%{_sbindir}/uusched
%{_sbindir}/uuxqt
%{_mandir}/man1/cu.1%{ext_man}
%{_mandir}/man1/uucp.1%{ext_man}
%{_mandir}/man1/uustat.1%{ext_man}
%{_mandir}/man1/uux.1%{ext_man}
%{_mandir}/man8/uucico.8%{ext_man}
%{_mandir}/man8/uuxqt.8%{ext_man}
%{_localstatedir}/spool/uucppublic/README
%doc %{_defaultdocdir}/uucp
%attr(0640,root,uucp) %{_defaultdocdir}/uucp/cfg_example/taylor_config/call
%attr(0640,root,uucp) %{_defaultdocdir}/uucp/cfg_example/taylor_config/passwd
%changelog

8
uucp@.service Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=UUCP Tcp Server
After=local-fs.target
[Service]
User=uucp
ExecStart=/usr/sbin/uucico -l
StandardInput=socket

3
uucpcfg.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b7a67003d69fe163d9bb6834ad5f78954a13ad7732d37d1b5cc1304ab640d68b
size 7249

15
uucpman.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
for man in uucp.1 uux.1 uustat.1 uuname.1 uulog.1 uuto.1 uupick.1 \
cu.1 uucico.8 uuxqt.8 uuchk.1 uuconv.1 uusched.8
do
test -e $man && continue
touch .#$man
( echo NAME
echo "${man%.[0-9]} - "
echo SYNOPSIS
info -f ./uucp.info "Invoking ${man%.[0-9]}" | tail -n +5 ) | \
rman -n ${man%.[0-9]} -s ${man#*.} -K -f roff > $man
echo $man
done