New package: uucp-1.07
This package contains the standard UUCP package from the Free Software Foundation, with uucico, uusched, uuxqt, uux, uucp, uustat, uulog, uuname, uuto, uupick and cu. Added files Added install files, man manuals and patches. Fixed whitespace and using vman Removed -R Added suggested changes Added underlining New suggested changes
This commit is contained in:
parent
b5093dcf5f
commit
dfbe7fa063
16 changed files with 9828 additions and 0 deletions
7
srcpkgs/uucp/INSTALL
Normal file
7
srcpkgs/uucp/INSTALL
Normal file
|
@ -0,0 +1,7 @@
|
|||
case ${ACTION} in
|
||||
post)
|
||||
# fix permissions and owners
|
||||
chown _uucp:_uucp usr/bin/uucico usr/bin/uuxqt usr/bin/uux usr/bin/uucp usr/bin/uustat usr/bin/uuname usr/bin/cu
|
||||
chmod 4555 usr/bin/uucico usr/bin/uuxqt usr/bin/uux usr/bin/uucp usr/bin/uustat usr/bin/uuname usr/bin/cu
|
||||
;;
|
||||
esac
|
53
srcpkgs/uucp/files/uulog.1
Normal file
53
srcpkgs/uucp/files/uulog.1
Normal file
|
@ -0,0 +1,53 @@
|
|||
.\" This is under the same license as uulog itself
|
||||
.TH UULOG 1
|
||||
.SH NAME
|
||||
uulog \- Display the UUCP log file.
|
||||
.SH SYNOPSIS
|
||||
.B uulog
|
||||
[\fI\-n number\fR] [\fI\-sf system\fR] [\fI\-u user\fR] [\fI\-DSF\fR]
|
||||
[\fI\-I file\fR] [\fI\-X debug\fR]
|
||||
.SH DESCRIPTION
|
||||
.I Uulog
|
||||
is a program that displays the log file for the Taylor UUCP service.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB-n\fR, \fB--lines\fR \fInumber\fR
|
||||
Show the given number of lines from the end of the log.
|
||||
.TP
|
||||
\fB-s\fR, \fB--system\fR \fIsystem\fR
|
||||
Print entries for the named system.
|
||||
.TP
|
||||
\fB-f\fR \fIsystem\fR, \fB--follow\fR=\fIsystem\fR
|
||||
Follow entries for the named system.
|
||||
.TP
|
||||
\fB-u\fR, \fB--user\fR \fIuser\fR
|
||||
Print entries for the named user.
|
||||
.TP
|
||||
\fB-F\fR, \fB--follow\fR
|
||||
Follow entries for any system.
|
||||
.TP
|
||||
\fB-S\fR, \fB--statslog\fR
|
||||
Show the statistics file.
|
||||
.TP
|
||||
\fB-D\fR, \fB--debuglog\fR
|
||||
Show the debugging file.
|
||||
.TP
|
||||
\fB-X\fR, \fB--debug\fR \fIdebug\fR
|
||||
Set the debugging level.
|
||||
.TP
|
||||
\fB-I\fR, \fB--config\fR \fIfile\fR
|
||||
Set the configuration file to use.
|
||||
.TP
|
||||
\fB-v\fR, \fB--version\fR
|
||||
Print the software version and exit.
|
||||
.TP
|
||||
\fB--help\fR
|
||||
Print a help screen and exit.
|
||||
.SH BUGS
|
||||
According to comments in the source, this is a pretty bad implementation
|
||||
of uulog. It only takes a single \-s and/or \-u switch.
|
||||
.SH "SEE ALSO"
|
||||
.BR uucp(1)
|
||||
.SH AUTHOR
|
||||
This manual page is a quick write-up for Debian done by Kevin Kreamer
|
||||
<kkreamer@etherhogz.org>, by making a manpage out of \fBuulog\fR \fI--help\fR.
|
33
srcpkgs/uucp/files/uuname.1
Normal file
33
srcpkgs/uucp/files/uuname.1
Normal file
|
@ -0,0 +1,33 @@
|
|||
.\" This is under the same license as uuname itself
|
||||
.TH UUNAME 1
|
||||
.SH NAME
|
||||
uuname \- List the names of the known remote UUCP sites.
|
||||
.SH SYNOPSIS
|
||||
.B uuname
|
||||
[\fI\-a\fR] [\fI\-l\fR] [\fI\-I file\fR]
|
||||
.SH DESCRIPTION
|
||||
.I Uuname
|
||||
is a program that lists the names of the known remote UUCP sites.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB-a\fR, \fB--aliases\fR
|
||||
Display aliases.
|
||||
.TP
|
||||
\fB-l\fR, \fB--local\fR
|
||||
Print the local name.
|
||||
.TP
|
||||
\fB-I\fR, \fB--config\fR \fIfile\fR
|
||||
Set the configuration file to use.
|
||||
.TP
|
||||
\fB-v\fR, \fB--version\fR
|
||||
Print the software version and exit.
|
||||
.TP
|
||||
\fB--help\fR
|
||||
Print a help screen and exit.
|
||||
.SH BUGS
|
||||
None apparent.
|
||||
.SH "SEE ALSO"
|
||||
.BR uucp(1)
|
||||
.SH AUTHOR
|
||||
This manual page is a quick write-up for Debian done by Kevin Kreamer
|
||||
<kkreamer@etherhogz.org>, by making a manpage out of \fBuuname\fR \fI--help\fR.
|
34
srcpkgs/uucp/files/uupick.1
Normal file
34
srcpkgs/uucp/files/uupick.1
Normal file
|
@ -0,0 +1,34 @@
|
|||
.\" This is under the same license as uupick itself
|
||||
.TH UUPICK 1
|
||||
.SH NAME
|
||||
uupick \- Get files stored in the public directory by uucp \-t.
|
||||
.SH SYNOPSIS
|
||||
.B uupick
|
||||
[\fI\-s system\fR] [\fI\-x debug\fR] [\fI\-I file\fR]
|
||||
.SH DESCRIPTION
|
||||
.I Uupick
|
||||
is a program that gets the files stored in the public directory
|
||||
by uucp \-t.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB-s\fR, \fB--system\fR \fIsystem\fR
|
||||
Only consider files from named system.
|
||||
.TP
|
||||
\fB-x\fR, \fB--debug\fR \fIdebug\fR
|
||||
Set the debugging level.
|
||||
.TP
|
||||
\fB-I\fR, \fB--config\fR \fIfile\fR
|
||||
Set the configuration file to use.
|
||||
.TP
|
||||
\fB-v\fR, \fB--version\fR
|
||||
Print the software version and exit.
|
||||
.TP
|
||||
\fB--help\fR
|
||||
Print a help screen and exit.
|
||||
.SH BUGS
|
||||
None apparent.
|
||||
.SH "SEE ALSO"
|
||||
.BR uucp(1)
|
||||
.SH AUTHOR
|
||||
This manual page is a quick write-up for Debian done by Kevin Kreamer
|
||||
<kkreamer@etherhogz.org>, by making a manpage out of \fBuupick\fR \fI--help\fR.
|
20
srcpkgs/uucp/files/uusched.8
Normal file
20
srcpkgs/uucp/files/uusched.8
Normal file
|
@ -0,0 +1,20 @@
|
|||
.\" This is under the same license as uusched itself
|
||||
.TH UUSCHED 8
|
||||
.SH NAME
|
||||
uusched \- Call all systems which have work in a random order.
|
||||
.SH SYNOPSIS
|
||||
.B uusched
|
||||
.SH DESCRIPTION
|
||||
.I Uusched
|
||||
is a program that calls all systems which have work in a random order.
|
||||
.SH OPTIONS
|
||||
Since this a simply a shell script which execs uucico(8), see that manpage
|
||||
for further options.
|
||||
.SH BUGS
|
||||
None apparent.
|
||||
.SH "SEE ALSO"
|
||||
.BR uucico(8),
|
||||
.BR sh(1)
|
||||
.SH AUTHOR
|
||||
This manual page is a quick write-up for Debian done by Kevin Kreamer
|
||||
<kkreamer@etherhogz.org>.
|
21
srcpkgs/uucp/files/uuto.1
Normal file
21
srcpkgs/uucp/files/uuto.1
Normal file
|
@ -0,0 +1,21 @@
|
|||
.\" This is under the same license as uuto itself
|
||||
.TH UUTO 1
|
||||
.SH NAME
|
||||
uuto \- Send files to a user on another system.
|
||||
.SH SYNOPSIS
|
||||
.B uuto
|
||||
\fIsystem!user\fR
|
||||
.SH DESCRIPTION
|
||||
.I Uuto
|
||||
is a program that sends files to a user on another system.
|
||||
.SH OPTIONS
|
||||
Since this a simply a shell script that execs uucp(1), see that manpage
|
||||
for further options.
|
||||
.SH BUGS
|
||||
None apparent.
|
||||
.SH "SEE ALSO"
|
||||
.BR uucp(1),
|
||||
.BR sh(1)
|
||||
.SH AUTHOR
|
||||
This manual page is a quick write-up for Debian done by Kevin Kreamer
|
||||
<kkreamer@etherhogz.org>.
|
15
srcpkgs/uucp/patches/compiler-warnings.patch
Normal file
15
srcpkgs/uucp/patches/compiler-warnings.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
Description: remove compiler warnings that nowadays result in errors
|
||||
Author: Thorsten Alteholz <debian@alteholz.de>
|
||||
Index: uucp/uuconv.c
|
||||
===================================================================
|
||||
--- uucp.orig/uuconv.c 2013-04-26 16:06:16.000000000 +0200
|
||||
+++ uucp/uuconv.c 2013-05-08 10:49:06.000000000 +0200
|
||||
@@ -676,7 +676,7 @@
|
||||
{
|
||||
if ((*pz)[0] != '-' && pz != pzarg)
|
||||
fprintf (e, " ");
|
||||
- fprintf (e, *pz);
|
||||
+ fprintf (e, "%s", *pz);
|
||||
}
|
||||
}
|
||||
|
189
srcpkgs/uucp/patches/manpage.patch
Normal file
189
srcpkgs/uucp/patches/manpage.patch
Normal file
|
@ -0,0 +1,189 @@
|
|||
Description: lintian detects some issues with these manpages
|
||||
Author: Thorsten Alteholz <debian@alteholz.de>
|
||||
Index: uucp-1.07/contrib/uurate.man
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/contrib/uurate.man 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/contrib/uurate.man 2019-01-12 19:51:27.927352540 +0100
|
||||
@@ -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
|
||||
Index: uucp-1.07/uucp.1
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uucp.1 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/uucp.1 2019-01-12 19:52:26.547350782 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-''' $Id: uucp.1,v 1.12 2002/03/05 22:13:33 ian Rel $
|
||||
+.\"''' $Id: uucp.1,v 1.12 2002/03/05 22:13:33 ian Rel $
|
||||
.TH uucp 1 "Taylor UUCP 1.07"
|
||||
.SH NAME
|
||||
uucp \- Unix to Unix copy
|
||||
@@ -67,10 +67,10 @@
|
||||
.I uucico
|
||||
(8) daemon, the copy will fail. The files must be readable by the
|
||||
.I uucico
|
||||
-(8) daemon, and by the invoking user.
|
||||
+(8) daemon, and by the invoking user. This is the default.
|
||||
.TP 5
|
||||
.B \-C, \-\-copy
|
||||
-Copy local source files to the spool directory. This is the default.
|
||||
+Copy local source files to the spool directory.
|
||||
.TP 5
|
||||
.B \-d, \-\-directories
|
||||
Create all necessary directories when doing the copy. This is the
|
||||
Index: uucp-1.07/uustat.1
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uustat.1 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/uustat.1 2019-01-12 19:51:27.927352540 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-''' $Id: uustat.1,v 1.14 2002/03/05 22:15:10 ian Rel $
|
||||
+.\" ''' $Id: uustat.1,v 1.14 2002/03/05 22:15:10 ian Rel $
|
||||
.TH uustat 1 "Taylor UUCP 1.07"
|
||||
.SH NAME
|
||||
uustat \- UUCP status inquiry and control
|
||||
@@ -404,7 +404,7 @@
|
||||
.SH EXAMPLES
|
||||
.br
|
||||
.nf
|
||||
-uustat --all
|
||||
+uustat \-\-all
|
||||
.fi
|
||||
Display status of all jobs. A sample output line is as follows:
|
||||
.br
|
||||
@@ -441,7 +441,7 @@
|
||||
|
||||
.br
|
||||
.nf
|
||||
-uustat --executions
|
||||
+uustat \-\-executions
|
||||
.fi
|
||||
Display status of queued up execution requests. A sample output line
|
||||
is as follows:
|
||||
@@ -472,7 +472,7 @@
|
||||
|
||||
.br
|
||||
.nf
|
||||
-uustat --list
|
||||
+uustat \-\-list
|
||||
.fi
|
||||
Display status for all systems with queued up commands. A sample
|
||||
output line is as follows:
|
||||
@@ -489,7 +489,7 @@
|
||||
|
||||
.br
|
||||
.nf
|
||||
-uustat --status
|
||||
+uustat \-\-status
|
||||
.fi
|
||||
Display conversation status for all remote systems. A sample output
|
||||
line is as follows:
|
||||
@@ -509,7 +509,7 @@
|
||||
|
||||
.br
|
||||
.nf
|
||||
-uustat --ps
|
||||
+uustat \-\-ps
|
||||
.fi
|
||||
Display the status of all processes holding UUCP locks. The output
|
||||
format is system dependent, as
|
||||
@@ -521,7 +521,7 @@
|
||||
.br
|
||||
.in +0.5i
|
||||
.nf
|
||||
-uustat --command rmail --older-than 168 --kill-all --no-list --mail --notify --comment "Queued for over 1 week"
|
||||
+uustat \-\-command rmail \-\-older\-than 168 \-\-kill\-all \-\-no\-list \-\-mail \-\-notify \-\-comment "Queued for over 1 week"
|
||||
.fi
|
||||
.in -0.5i
|
||||
This will kill all
|
||||
Index: uucp-1.07/cu.1
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/cu.1 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/cu.1 2019-01-12 19:58:34.000000000 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-''' $Id: cu.1,v 1.10 2002/03/05 22:13:33 ian Rel $
|
||||
+.\" ''' $Id: cu.1,v 1.10 2002/03/05 22:13:33 ian Rel $
|
||||
.TH cu 1 "Taylor UUCP 1.07"
|
||||
.SH NAME
|
||||
cu \- Call up another system
|
||||
Index: uucp-1.07/uucico.8
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uucico.8 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/uucico.8 2019-01-12 19:51:27.927352540 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-''' $Id: uucico.8,v 1.20 2002/03/05 22:20:48 ian Rel $
|
||||
+.\" ''' $Id: uucico.8,v 1.20 2002/03/05 22:20:48 ian Rel $
|
||||
.TH uucico 8 "Taylor UUCP 1.07"
|
||||
.SH NAME
|
||||
uucico \- UUCP file transfer daemon
|
||||
@@ -56,7 +56,7 @@
|
||||
.I uucico
|
||||
will normally refuse to retry the
|
||||
call until a certain (configurable) amount of time
|
||||
-has passed. This may be overriden by the
|
||||
+has passed. This may be overridden by the
|
||||
.B -f,
|
||||
.B --force,
|
||||
or
|
||||
@@ -175,11 +175,11 @@
|
||||
.B \-\-system,
|
||||
or
|
||||
.B \-S
|
||||
-is specifed, or to all systems which have work when just
|
||||
+is specified, or to all systems which have work when just
|
||||
.B \-r1
|
||||
or
|
||||
.B \-\-master
|
||||
-is specifed), begin an endless loop as with
|
||||
+is specified), begin an endless loop as with
|
||||
.B \-\-loop.
|
||||
.TP 5
|
||||
.B \-q, \-\-nouuxqt
|
||||
Index: uucp-1.07/uux.1
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uux.1 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/uux.1 2019-01-12 19:51:27.931352540 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-''' $Id: uux.1,v 1.15 2002/03/05 22:20:48 ian Rel $
|
||||
+.\" ''' $Id: uux.1,v 1.15 2002/03/05 22:20:48 ian Rel $
|
||||
.TH uux 1 "Taylor UUCP 1.07"
|
||||
.SH NAME
|
||||
uux \- Remote command execution over UUCP
|
||||
@@ -202,7 +202,7 @@
|
||||
.SH EXAMPLES
|
||||
.br
|
||||
.nf
|
||||
-uux -z - sys1!rmail user1
|
||||
+uux \-z \- sys1!rmail user1
|
||||
.fi
|
||||
Execute the command ``rmail user1'' on the system sys1, giving it as
|
||||
standard input whatever is given to
|
||||
@@ -213,7 +213,7 @@
|
||||
|
||||
.br
|
||||
.nf
|
||||
-uux 'diff -c sys1!~user1/file1 sys2!~user2/file2 >!file.diff'
|
||||
+uux 'diff \-c sys1!~user1/file1 sys2!~user2/file2 >!file.diff'
|
||||
.fi
|
||||
Fetch the two named files from system sys1 and system sys2 and execute
|
||||
.I diff
|
||||
Index: uucp-1.07/uuxqt.8
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uuxqt.8 2019-01-12 19:51:27.939352539 +0100
|
||||
+++ uucp-1.07/uuxqt.8 2019-01-12 19:51:27.931352540 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-''' $Id: uuxqt.8,v 1.10 2002/03/05 22:20:48 ian Rel $
|
||||
+.\" ''' $Id: uuxqt.8,v 1.10 2002/03/05 22:20:48 ian Rel $
|
||||
.TH uuxqt 8 "Taylor UUCP 1.07"
|
||||
.SH NAME
|
||||
uuxqt \- UUCP execution daemon
|
||||
@@ -41,7 +41,7 @@
|
||||
.br
|
||||
.in +0.5i
|
||||
.nf
|
||||
-uuxqt --command rmail
|
||||
+uuxqt \-\-command rmail
|
||||
.fi
|
||||
.in -0.5i
|
||||
.TP 5
|
65
srcpkgs/uucp/patches/no-sleep.patch
Normal file
65
srcpkgs/uucp/patches/no-sleep.patch
Normal file
|
@ -0,0 +1,65 @@
|
|||
Description: avoid sleeps
|
||||
Author: Frank Heckenbach
|
||||
Index: uucp-1.07/prott.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/prott.c 2017-09-27 12:24:15.963165757 +0200
|
||||
+++ uucp-1.07/prott.c 2017-09-27 12:24:15.959165687 +0200
|
||||
@@ -88,7 +88,7 @@
|
||||
zTbuf[0] = 0;
|
||||
zTbuf[1] = 0;
|
||||
fTfile = FALSE;
|
||||
- usysdep_sleep (2);
|
||||
+ // usysdep_sleep (2); -- why? protocol t is meant to be used over an error-free connection
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Index: uucp-1.07/unix/pipe.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/pipe.c 2017-09-27 12:24:15.963165757 +0200
|
||||
+++ uucp-1.07/unix/pipe.c 2017-09-27 12:24:15.959165687 +0200
|
||||
@@ -165,10 +165,43 @@
|
||||
if (qsysdep->ipid >= 0)
|
||||
{
|
||||
if (kill (qsysdep->ipid, SIGHUP) == 0)
|
||||
- usysdep_sleep (2);
|
||||
+ {
|
||||
+ #if defined (HAVE_USLEEP) && defined (HAVE_WAITPID)
|
||||
+ /* Avoid wasting 4 seconds (including the SIGPIPE case below).
|
||||
+ Quick and dirty work-around to avoid depending on SIGCHLD:
|
||||
+ Just sleep up to 20 times 0.1s as long as the child exists. */
|
||||
+ int i, status;
|
||||
+ for (i = 20; i > 0; i--)
|
||||
+ {
|
||||
+ if (waitpid (qsysdep->ipid, &status, WNOHANG) == qsysdep->ipid)
|
||||
+ {
|
||||
+ qsysdep->ipid = -1;
|
||||
+ return fret;
|
||||
+ }
|
||||
+ usleep (100000);
|
||||
+ }
|
||||
+ #else
|
||||
+ usysdep_sleep (2);
|
||||
+ #endif
|
||||
+ }
|
||||
#ifdef SIGPIPE
|
||||
if (kill (qsysdep->ipid, SIGPIPE) == 0)
|
||||
- usysdep_sleep (2);
|
||||
+ {
|
||||
+ #if HAVE_USLEEP
|
||||
+ int i, status;
|
||||
+ for (i = 20; i > 0; i--)
|
||||
+ {
|
||||
+ if (waitpid (qsysdep->ipid, &status, WNOHANG) == qsysdep->ipid)
|
||||
+ {
|
||||
+ qsysdep->ipid = -1;
|
||||
+ return fret;
|
||||
+ }
|
||||
+ usleep (100000);
|
||||
+ }
|
||||
+ #else
|
||||
+ usysdep_sleep (2);
|
||||
+ #endif
|
||||
+ }
|
||||
#endif
|
||||
if (kill (qsysdep->ipid, SIGKILL) < 0 && errno == EPERM)
|
||||
{
|
321
srcpkgs/uucp/patches/option-to-not-force-hw-control.patch
Normal file
321
srcpkgs/uucp/patches/option-to-not-force-hw-control.patch
Normal file
|
@ -0,0 +1,321 @@
|
|||
Description: avoid forcing hw control
|
||||
Author: Michal Suchanek
|
||||
Index: uucp-1.07/conn.h
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/conn.h 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/conn.h 2013-12-04 11:20:26.022181350 +0100
|
||||
@@ -117,7 +117,7 @@
|
||||
boolean (*pfunlock) P((struct sconnection *qconn));
|
||||
/* Open the connection. */
|
||||
boolean (*pfopen) P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
/* Close the connection. */
|
||||
boolean (*pfclose) P((struct sconnection *qconn,
|
||||
pointer puuconf,
|
||||
@@ -198,7 +198,7 @@
|
||||
than the effective permissions. */
|
||||
extern boolean fconn_open P((struct sconnection *qconn, long ibaud,
|
||||
long ihighbaud, boolean fwait,
|
||||
- boolean fuser));
|
||||
+ boolean fuser, boolean nortscts));
|
||||
|
||||
/* Close a connection. The fsuccess argument is TRUE if the
|
||||
conversation completed normally, FALSE if it is being aborted. */
|
||||
Index: uucp-1.07/cu.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/cu.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/cu.c 2013-12-04 11:27:03.353425764 +0100
|
||||
@@ -223,6 +223,7 @@
|
||||
{ "baud", required_argument, NULL, 's' },
|
||||
{ "mapcr", no_argument, NULL, 't' },
|
||||
{ "nostop", no_argument, NULL, 3 },
|
||||
+ { "nortscts", no_argument, NULL, 'f' },
|
||||
{ "system", required_argument, NULL, 'z' },
|
||||
{ "config", required_argument, NULL, 'I' },
|
||||
{ "debug", required_argument, NULL, 'x' },
|
||||
@@ -258,6 +259,8 @@
|
||||
enum txonxoffsetting txonxoff = XONXOFF_ON;
|
||||
/* -I: configuration file name. */
|
||||
const char *zconfig = NULL;
|
||||
+ /* -f: no hardware flow control */
|
||||
+ boolean nortscts = FALSE;
|
||||
int iopt;
|
||||
pointer puuconf;
|
||||
int iuuconf;
|
||||
@@ -295,7 +298,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- while ((iopt = getopt_long (argc, argv, "a:c:deE:hnI:l:op:s:tvx:z:",
|
||||
+ while ((iopt = getopt_long (argc, argv, "a:c:deE:fhnI:l:op:s:tvx:z:",
|
||||
asCulongopts, (int *) NULL)) != EOF)
|
||||
{
|
||||
switch (iopt)
|
||||
@@ -322,6 +325,11 @@
|
||||
zCuvar_escape = optarg;
|
||||
break;
|
||||
|
||||
+ case 'f':
|
||||
+ /* No hardware flow control. */
|
||||
+ nortscts = TRUE;
|
||||
+ break;
|
||||
+
|
||||
case 'h':
|
||||
/* Local echo. */
|
||||
fCulocalecho = TRUE;
|
||||
@@ -682,7 +690,7 @@
|
||||
}
|
||||
|
||||
/* Here we have locked a connection to use. */
|
||||
- if (! fconn_open (&sconn, iusebaud, ihighbaud, FALSE, sinfo.fdirect))
|
||||
+ if (! fconn_open (&sconn, iusebaud, ihighbaud, FALSE, sinfo.fdirect, nortscts))
|
||||
ucuabort ();
|
||||
|
||||
fCuclose_conn = TRUE;
|
||||
Index: uucp-1.07/conn.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/conn.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/conn.c 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -114,12 +114,13 @@
|
||||
/* Open a connection. */
|
||||
|
||||
boolean
|
||||
-fconn_open (qconn, ibaud, ihighbaud, fwait, fuser)
|
||||
+fconn_open (qconn, ibaud, ihighbaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn;
|
||||
long ibaud;
|
||||
long ihighbaud;
|
||||
boolean fwait;
|
||||
boolean fuser;
|
||||
+ boolean nortscts;
|
||||
{
|
||||
boolean fret;
|
||||
|
||||
@@ -177,7 +178,7 @@
|
||||
else
|
||||
ulog_device (qconn->qport->uuconf_zname);
|
||||
|
||||
- fret = (*qconn->qcmds->pfopen) (qconn, ibaud, fwait, fuser);
|
||||
+ fret = (*qconn->qcmds->pfopen) (qconn, ibaud, fwait, fuser, nortscts);
|
||||
|
||||
if (! fret)
|
||||
ulog_device ((const char *) NULL);
|
||||
Index: uucp-1.07/uucico.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uucico.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/uucico.c 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -695,7 +695,7 @@
|
||||
|
||||
if (fret)
|
||||
{
|
||||
- if (! fconn_open (&sconn, (long) 0, (long) 0, TRUE, FALSE))
|
||||
+ if (! fconn_open (&sconn, (long) 0, (long) 0, TRUE, FALSE, FALSE))
|
||||
fret = FALSE;
|
||||
qConn = &sconn;
|
||||
}
|
||||
@@ -714,7 +714,7 @@
|
||||
(struct uuconf_dialer *) NULL,
|
||||
TRUE)
|
||||
|| ! fconn_open (&sconn, (long) 0, (long) 0, TRUE,
|
||||
- FALSE))
|
||||
+ FALSE, FALSE))
|
||||
break;
|
||||
}
|
||||
fret = FALSE;
|
||||
@@ -1176,7 +1176,7 @@
|
||||
}
|
||||
|
||||
if (! fconn_open (&sconn, qsys->uuconf_ibaud, qsys->uuconf_ihighbaud,
|
||||
- FALSE, FALSE))
|
||||
+ FALSE, FALSE, FALSE))
|
||||
{
|
||||
terr = STATUS_PORT_FAILED;
|
||||
fret = FALSE;
|
||||
Index: uucp-1.07/unix/pipe.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/pipe.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/unix/pipe.c 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
static void uspipe_free P((struct sconnection *qconn));
|
||||
static boolean fspipe_open P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
static boolean fspipe_close P((struct sconnection *qconn,
|
||||
pointer puuconf,
|
||||
struct uuconf_dialer *qdialer,
|
||||
@@ -115,11 +115,12 @@
|
||||
|
||||
/*ARGSUSED*/
|
||||
static boolean
|
||||
-fspipe_open (qconn, ibaud, fwait, fuser)
|
||||
+fspipe_open (qconn, ibaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn ATTRIBUTE_UNUSED;
|
||||
long ibaud ATTRIBUTE_UNUSED;
|
||||
boolean fwait;
|
||||
boolean fuser ATTRIBUTE_UNUSED;
|
||||
+ boolean nortscts ATTRIBUTE_UNUSED;
|
||||
{
|
||||
/* We don't do incoming waits on pipes. */
|
||||
if (fwait)
|
||||
Index: uucp-1.07/unix/serial.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/serial.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/unix/serial.c 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -246,11 +246,11 @@
|
||||
boolean fwait, boolean fuser,
|
||||
enum tclocal_setting tlocal));
|
||||
static boolean fsstdin_open P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
static boolean fsmodem_open P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
static boolean fsdirect_open P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
static boolean fsblock P((struct ssysdep_conn *q, boolean fblock));
|
||||
static boolean fsserial_close P((struct ssysdep_conn *q));
|
||||
static boolean fsstdin_close P((struct sconnection *qconn,
|
||||
@@ -1308,11 +1308,12 @@
|
||||
call to fsblock. */
|
||||
|
||||
static boolean
|
||||
-fsstdin_open (qconn, ibaud, fwait, fuser)
|
||||
+fsstdin_open (qconn, ibaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn;
|
||||
long ibaud;
|
||||
boolean fwait;
|
||||
boolean fuser;
|
||||
+ boolean nortscts;
|
||||
{
|
||||
struct ssysdep_conn *q;
|
||||
|
||||
@@ -1323,6 +1324,9 @@
|
||||
q->o = q->ord;
|
||||
if (! fsserial_open (qconn, ibaud, fwait, fuser, IGNORE_CLOCAL))
|
||||
return FALSE;
|
||||
+ if (nortscts
|
||||
+ && ! fsserial_hardflow (qconn, FALSE))
|
||||
+ return FALSE;
|
||||
q->iwr_flags = fcntl (q->owr, F_GETFL, 0);
|
||||
if (q->iwr_flags < 0)
|
||||
{
|
||||
@@ -1335,11 +1339,12 @@
|
||||
/* Open a modem port. */
|
||||
|
||||
static boolean
|
||||
-fsmodem_open (qconn, ibaud, fwait, fuser)
|
||||
+fsmodem_open (qconn, ibaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn;
|
||||
long ibaud;
|
||||
boolean fwait;
|
||||
boolean fuser;
|
||||
+ boolean nortscts;
|
||||
{
|
||||
struct uuconf_modem_port *qm;
|
||||
|
||||
@@ -1356,7 +1361,10 @@
|
||||
out, because some modems don't assert the necessary signals until
|
||||
they see carrier. Instead, we turn on hardware flow control in
|
||||
fsmodem_carrier. */
|
||||
- if (fwait
|
||||
+ if (nortscts
|
||||
+ && ! fsserial_hardflow (qconn, FALSE))
|
||||
+ return FALSE;
|
||||
+ else if (fwait
|
||||
&& ! fsserial_hardflow (qconn, qm->uuconf_fhardflow))
|
||||
return FALSE;
|
||||
|
||||
@@ -1366,11 +1374,12 @@
|
||||
/* Open a direct port. */
|
||||
|
||||
static boolean
|
||||
-fsdirect_open (qconn, ibaud, fwait, fuser)
|
||||
+fsdirect_open (qconn, ibaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn;
|
||||
long ibaud;
|
||||
boolean fwait;
|
||||
boolean fuser;
|
||||
+ boolean nortscts;
|
||||
{
|
||||
struct uuconf_direct_port *qd;
|
||||
|
||||
@@ -1383,7 +1392,7 @@
|
||||
|
||||
/* Always turn on hardware flow control for a direct port when it is
|
||||
opened. There is no other sensible time to turn it on. */
|
||||
- return fsserial_hardflow (qconn, qd->uuconf_fhardflow);
|
||||
+ return fsserial_hardflow (qconn, qd->uuconf_fhardflow && ! nortscts);
|
||||
}
|
||||
|
||||
/* Change the blocking status of the port. We keep track of the
|
||||
Index: uucp-1.07/unix/tcp.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/tcp.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/unix/tcp.c 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -78,7 +78,7 @@
|
||||
#endif
|
||||
static boolean ftcp_set_flags P((struct ssysdep_conn *qsysdep));
|
||||
static boolean ftcp_open P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
static boolean ftcp_close P((struct sconnection *qconn,
|
||||
pointer puuconf,
|
||||
struct uuconf_dialer *qdialer,
|
||||
@@ -208,11 +208,12 @@
|
||||
system. */
|
||||
|
||||
static boolean
|
||||
-ftcp_open (qconn, ibaud, fwait, fuser)
|
||||
+ftcp_open (qconn, ibaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn;
|
||||
long ibaud ATTRIBUTE_UNUSED;
|
||||
boolean fwait;
|
||||
boolean fuser ATTRIBUTE_UNUSED;
|
||||
+ boolean nortscts ATTRIBUTE_UNUSED;
|
||||
{
|
||||
struct ssysdep_conn *qsysdep;
|
||||
const char *zport;
|
||||
Index: uucp-1.07/unix/tli.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/tli.c 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/unix/tli.c 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -106,7 +106,7 @@
|
||||
static void utli_free P((struct sconnection *qconn));
|
||||
static boolean ftli_push P((struct sconnection *qconn));
|
||||
static boolean ftli_open P((struct sconnection *qconn, long ibaud,
|
||||
- boolean fwait, boolean fuser));
|
||||
+ boolean fwait, boolean fuser, boolean nortscts));
|
||||
static boolean ftli_close P((struct sconnection *qconn,
|
||||
pointer puuconf,
|
||||
struct uuconf_dialer *qdialer,
|
||||
@@ -238,11 +238,12 @@
|
||||
system. */
|
||||
|
||||
static boolean
|
||||
-ftli_open (qconn, ibaud, fwait, fuser)
|
||||
+ftli_open (qconn, ibaud, fwait, fuser, nortscts)
|
||||
struct sconnection *qconn;
|
||||
long ibaud;
|
||||
boolean fwait;
|
||||
boolean fuser ATTRIBUTE_UNUSED;
|
||||
+ boolean nortscts ATTRIBUTE_UNUSED;
|
||||
{
|
||||
struct ssysdep_conn *qsysdep;
|
||||
const char *zdevice;
|
||||
Index: uucp-1.07/cu.1
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/cu.1 2013-12-04 11:20:23.722208868 +0100
|
||||
+++ uucp-1.07/cu.1 2013-12-04 11:20:26.026181299 +0100
|
||||
@@ -231,6 +231,9 @@
|
||||
.B \-\-nostop
|
||||
Turn off XON/XOFF handling (it is on by default).
|
||||
.TP 5
|
||||
+.B \-f, \-\-nortscts
|
||||
+Do not use hardware flow control.
|
||||
+.TP 5
|
||||
.B \-E char, \-\-escape char
|
||||
Set the escape character. Initially
|
||||
.B ~
|
28
srcpkgs/uucp/patches/spelling.patch
Normal file
28
srcpkgs/uucp/patches/spelling.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
Author: Thorsten Alteholz <debian@alteholz.de>
|
||||
Description: correct spelling error in binary
|
||||
Index: uucp-1.07/cu.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/cu.c 2019-01-12 19:50:00.447355162 +0100
|
||||
+++ uucp-1.07/cu.c 2019-01-12 19:50:00.435355162 +0100
|
||||
@@ -1756,7 +1756,7 @@
|
||||
zfrom = zbufcpy (argv[1]);
|
||||
else
|
||||
{
|
||||
- zfrom = zsysdep_terminal_line ("Remote file to retreive: ");
|
||||
+ zfrom = zsysdep_terminal_line ("Remote file to retrieve: ");
|
||||
if (zfrom == NULL)
|
||||
ucuabort ();
|
||||
zfrom[strcspn (zfrom, " \t\n")] = '\0';
|
||||
Index: uucp-1.07/uuxqt.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/uuxqt.c 2003-05-29 08:08:48.000000000 +0200
|
||||
+++ uucp-1.07/uuxqt.c 2019-01-12 19:50:32.907354189 +0100
|
||||
@@ -1517,7 +1517,7 @@
|
||||
az[i++] = zQcmd;
|
||||
az[i++] = "\n";
|
||||
|
||||
- (void) fsysdep_mail (zmail, "Execution succeded", i, az);
|
||||
+ (void) fsysdep_mail (zmail, "Execution succeeded", i, az);
|
||||
}
|
||||
|
||||
/* Now we may have to uucp the output to some other machine. */
|
111
srcpkgs/uucp/patches/uucp-alt-misc.patch
Normal file
111
srcpkgs/uucp/patches/uucp-alt-misc.patch
Normal file
|
@ -0,0 +1,111 @@
|
|||
--- uucp-1.07.orig/policy.h 2003-05-29 03:08:45.000000000 -0300
|
||||
+++ uucp-1.07.orig/policy.h 2020-03-09 03:48:58.317291375 -0300
|
||||
@@ -240,8 +240,8 @@
|
||||
the sendmail choice below. Otherwise, select one of the other
|
||||
choices as appropriate. */
|
||||
#if 1
|
||||
-#define MAIL_PROGRAM "/usr/lib/sendmail -t"
|
||||
-/* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */
|
||||
+/* #define MAIL_PROGRAM "/usr/lib/sendmail -t" */
|
||||
+#define MAIL_PROGRAM "/usr/sbin/sendmail -t"
|
||||
#define MAIL_PROGRAM_TO_BODY 1
|
||||
#define MAIL_PROGRAM_SUBJECT_BODY 1
|
||||
#endif
|
||||
@@ -302,7 +302,7 @@
|
||||
/* #define LOCKDIR "/usr/spool/locks" */
|
||||
/* #define LOCKDIR "/usr/spool/uucp/LCK" */
|
||||
/* #define LOCKDIR "/var/spool/lock" */
|
||||
-/* #define LOCKDIR "/var/lock" */
|
||||
+#define LOCKDIR "/var/lock/serial"
|
||||
|
||||
/* You must also specify the format of the lock files by setting
|
||||
exactly one of the following macros to 1. Check an existing lock
|
||||
@@ -466,8 +466,8 @@
|
||||
When looking something up (a system, a port, etc.) the new style
|
||||
configuration files will be read first, followed by the V2
|
||||
configuration files, followed by the HDB configuration files. */
|
||||
-#define HAVE_V2_CONFIG 0
|
||||
-#define HAVE_HDB_CONFIG 0
|
||||
+#define HAVE_V2_CONFIG 1
|
||||
+#define HAVE_HDB_CONFIG 1
|
||||
|
||||
/* Exactly one of the following macros must be set to 1. The exact
|
||||
format of the spool directories is explained in unix/spool.c.
|
||||
@@ -572,16 +572,16 @@
|
||||
/* 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"
|
||||
-/* #define SPOOLDIR "/var/spool/uucp" */
|
||||
+/* #define SPOOLDIR "/usr/spool/uucp" */
|
||||
+#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
|
||||
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"
|
||||
-/* #define PUBDIR "/var/spool/uucppublic" */
|
||||
+/* #define PUBDIR "/usr/spool/uucppublic" */
|
||||
+#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
|
||||
@@ -644,24 +644,23 @@
|
||||
/* 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"
|
||||
+/* #define LOGFILE "/usr/spool/uucp/Log" */
|
||||
/* #define LOGFILE "/var/spool/uucp/Log" */
|
||||
-/* #define LOGFILE "/var/log/uucp/Log" */
|
||||
+#define LOGFILE "/var/log/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"
|
||||
+/* #define STATFILE "/usr/spool/uucp/Stats" */
|
||||
/* #define STATFILE "/var/spool/uucp/Stats" */
|
||||
-/* #define STATFILE "/var/log/uucp/Stats" */
|
||||
+#define STATFILE "/var/log/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"
|
||||
+/* #define DEBUGFILE "/usr/spool/uucp/Debug" */
|
||||
/* #define DEBUGFILE "/var/spool/uucp/Debug" */
|
||||
-/* #define DEBUGFILE "/var/log/uucp/Debug" */
|
||||
-
|
||||
+#define DEBUGFILE "/var/log/uucp/Debug"
|
||||
#endif /* HAVE_TAYLOR_LOGGING */
|
||||
|
||||
#if HAVE_V2_LOGGING
|
||||
@@ -669,17 +668,23 @@
|
||||
/* 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"
|
||||
+ /* #define LOGFILE "/usr/spool/uucp/Log" */
|
||||
+ /* #define LOGFILE "/var/spool/uucp/Log" */
|
||||
+#define LOGFILE "/var/log/uucp/Log"
|
||||
|
||||
/* 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"
|
||||
+ /* #define STATFILE "/usr/spool/uucp/Stats" */
|
||||
+ /* #define STATFILE "/var/spool/uucp/Stats" */
|
||||
+#define STATFILE "/var/log/uucp/Stats"
|
||||
|
||||
/* 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"
|
||||
+ /* #define DEBUGFILE "/usr/spool/uucp/Debug" */
|
||||
+ /* #define DEBUGFILE "/var/spool/uucp/Debug" */
|
||||
+#define DEBUGFILE "/var/log/uucp/Debug"
|
||||
|
||||
#endif /* HAVE_V2_LOGGING */
|
8833
srcpkgs/uucp/patches/uucp-org.patch
Normal file
8833
srcpkgs/uucp/patches/uucp-org.patch
Normal file
File diff suppressed because it is too large
Load diff
19
srcpkgs/uucp/patches/wait-for-correct-parent.patch
Normal file
19
srcpkgs/uucp/patches/wait-for-correct-parent.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
Description: wait for correct parent to die
|
||||
Author: Jörg Sommer <joerg@jo-so.de>
|
||||
Index: uucp-1.07/unix/detach.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/detach.c 2019-03-02 16:36:11.238947732 +0100
|
||||
+++ uucp-1.07/unix/detach.c 2019-03-02 16:37:21.850946777 +0100
|
||||
@@ -98,10 +98,8 @@
|
||||
if (ipid != 0)
|
||||
_exit (EXIT_SUCCESS);
|
||||
|
||||
- /* We'll always wind up as a child of process number 1, right?
|
||||
- Right? We have to wait for our parent to die before
|
||||
- reenabling SIGHUP. */
|
||||
- while (getppid () != 1)
|
||||
+ /* We have to wait for our parent to die before reenabling SIGHUP. */
|
||||
+ while (getppid () == igrp)
|
||||
sleep (1);
|
||||
|
||||
ipid = getpid ();
|
40
srcpkgs/uucp/patches/zpipe-improved-pipe.patch
Normal file
40
srcpkgs/uucp/patches/zpipe-improved-pipe.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
Author: Rafael Diniz <rafael@rhizomatica.org>
|
||||
Description:
|
||||
remove ATTRIBUTE_UNUSED of the parameter uucp-org.patch uses
|
||||
add the possibility to send the system name to be called in pipe command
|
||||
(use \Z as place holder for the system name)
|
||||
Index: uucp-1.07/unix/pipe.c
|
||||
===================================================================
|
||||
--- uucp-1.07.orig/unix/pipe.c 2019-08-17 23:06:47.774519770 +0200
|
||||
+++ uucp-1.07/unix/pipe.c 2019-08-17 23:06:47.742519770 +0200
|
||||
@@ -225,8 +225,8 @@
|
||||
fspipe_dial (qconn, puuconf, qsys, zphone, qdialer, ptdialer)
|
||||
struct sconnection *qconn;
|
||||
pointer puuconf;
|
||||
- const struct uuconf_system *qsys ATTRIBUTE_UNUSED;
|
||||
- const char *zphone ATTRIBUTE_UNUSED;
|
||||
+ const struct uuconf_system *qsys;
|
||||
+ const char *zphone;
|
||||
struct uuconf_dialer *qdialer;
|
||||
enum tdialerfound *ptdialer;
|
||||
{
|
||||
@@ -246,12 +246,17 @@
|
||||
ulog (LOG_ERROR, "No command for pipe connection");
|
||||
return FALSE;
|
||||
}
|
||||
-
|
||||
- /* Look for a string \H and replaced it by the address given for this system */
|
||||
+
|
||||
+ /* Look for a string \H and replace it by the address given for this system */
|
||||
for (p=pzprog; *p; p++)
|
||||
if (!strcmp(*p, "\\H"))
|
||||
*p = zphone;
|
||||
|
||||
+ /* Look for a string \Z and replace by the system name to be called */
|
||||
+ for (p=pzprog; *p; p++)
|
||||
+ if (!strcmp(*p, "\\Z"))
|
||||
+ *p = qsys->uuconf_zname;
|
||||
+
|
||||
aidescs[0] = SPAWN_WRITE_PIPE;
|
||||
aidescs[1] = SPAWN_READ_PIPE;
|
||||
aidescs[2] = SPAWN_NULL;
|
39
srcpkgs/uucp/template
Normal file
39
srcpkgs/uucp/template
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Template file for 'uucp'
|
||||
pkgname=uucp
|
||||
version=1.07
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
conf_files="/etc/uucp/config /etc/uucp/sys1 /etc/uucp/port"
|
||||
makedepends="wget"
|
||||
short_desc="Taylor UUCP is a free implementation of UUCP"
|
||||
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://www.gnu.org/software/uucp/uucp.html"
|
||||
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
||||
checksum=060c15bfba6cfd1171ad81f782789032113e199a5aded8f8e0c1c5bd1385b62c
|
||||
patch_args="-Np1"
|
||||
|
||||
system_accounts="_uucp"
|
||||
_uucp_homedir="/var/spool/uucp"
|
||||
|
||||
make_dirs="
|
||||
/var/spool/uucp 0750 uucp uucp
|
||||
/var/spool/uucppublic 0750 uucp uucp"
|
||||
|
||||
pre_configure() {
|
||||
sed -i 's|${CC-cc} -E|${CC-cc} -E|g' configure
|
||||
}
|
||||
do_install() {
|
||||
make DESTDIR=${DESTDIR} install
|
||||
vmkdir etc/uucp/
|
||||
vinstall sample/config 0644 etc/uucp/
|
||||
vinstall sample/sys1 0644 etc/uucp/
|
||||
vinstall sample/port 0644 etc/uucp/
|
||||
sed -i 's|\$\*|"$@"|' ${DESTDIR}/usr/bin/{uuto,uusched}
|
||||
chmod u+w ${DESTDIR}/usr/bin/*
|
||||
vman ${FILESDIR}/uulog.1
|
||||
vman ${FILESDIR}/uuname.1
|
||||
vman ${FILESDIR}/uupick.1
|
||||
vman ${FILESDIR}/uuto.1
|
||||
vman ${FILESDIR}/uusched.8
|
||||
}
|
Loading…
Reference in a new issue