Sync from SUSE:SLFO:Main schily revision 847f2411fca840f2ad281f890391a97c

This commit is contained in:
Adrian Schröter 2024-05-04 00:30:37 +02:00
commit 98525f1c5c
7 changed files with 2663 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

15
README-FIRST Normal file
View File

@ -0,0 +1,15 @@
If you want to use rmt from this package, you have to edit /etc/default/rmt
to configure it. By default, nobody is allowed to run mt (entry USER) and
the only visible target (entry ACCESS) is the null device.
If you would like to have an account to directly access rmt, you will have
to create one yourself, setting the default shell to /usr/sbin/rmt. Please
don't forget to add entries to .rhosts in the home directory of said account
for all remote users that are allowed to use this account.
The creation of this account may be done either via YaST2 or via useradd.
An example for using useradd would be:
useradd -c "Remote TAPE" -G bin -s /usr/sbin/rmt rtape
After creating this account, you have to add this user to /etc/default/rmt.

81
iconv-name.diff Normal file
View File

@ -0,0 +1,81 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2018-04-11 20:00:58.584068848 +0200
References: https://sourceware.org/bugzilla/show_bug.cgi?id=23048
libsiconv can/will use libc iconv if it knows about a particular
character set (or pair thereof), and will fall back to its own
implementation and tables otherwise. glibc fails to offer the
"cp10000" identifier, but it does have the desired table under a
different name.
Change the name in .c so we do not need to install the cp10000 siconv
table.
---
mkisofs/mkisofs.8 | 13 ++++++-------
mkisofs/mkisofs.c | 4 ++--
2 files changed, 8 insertions(+), 9 deletions(-)
Index: schily-2022-10-16/mkisofs/mkisofs.8
===================================================================
--- schily-2022-10-16.orig/mkisofs/mkisofs.8
+++ schily-2022-10-16/mkisofs/mkisofs.8
@@ -2500,8 +2500,8 @@ Input charset that defines the character
used with the
.I \-mac\-name
option.
-The default charset is cp10000 (Mac Roman)
-.I cp10000
+The default charset is
+.I macintosh
(Mac Roman)
See
.B "CHARACTER SETS"
@@ -2711,7 +2711,7 @@ any of the various Apple/Unix file forma
option. See the
.B HFS MACINTOSH FILE NAMES
for more information. Defaults to
-.I cp10000
+.I macintosh
(Mac Roman).
.TP
.B \-output\-hfs\-charset
@@ -3227,13 +3227,12 @@ name will be used in the TRANS.TBL file,
.PP
The character set used to convert any HFS file name to a Joliet/Rock Ridge
file name defaults to
-.I cp10000
+.I macintosh
(Mac Roman).
The character set used can be specified using the
.I \-input\-hfs\-charset
-option. Other built in HFS character sets are: cp10006 (MacGreek),
-cp10007 (MacCyrillic), cp10029 (MacLatin2), cp10079 (MacIcelandic) and
-cp10081 (MacTurkish).
+option. Other built in HFS character sets are:
+MAC-CYRILLIC (MacCyrillic), MAC-CENTRALEUROPE (MacLatin2), MAC-IS (MacIcelandic).
.PP
Note: the character codes used by HFS file names taken from the various
Apple/Unix formats will not be converted as they are assumed to be in the
Index: schily-2022-10-16/mkisofs/mkisofs.c
===================================================================
--- schily-2022-10-16.orig/mkisofs/mkisofs.c
+++ schily-2022-10-16/mkisofs/mkisofs.c
@@ -2888,7 +2888,7 @@ setcharset:
#ifdef APPLE_HYB
if (hfs_icharset == NULL || strcmp(hfs_icharset, "mac-roman") == 0) {
- hfs_icharset = "cp10000";
+ hfs_icharset = "macintosh";
}
hfs_inls = sic_open(hfs_icharset);
@@ -2896,7 +2896,7 @@ setcharset:
hfs_ocharset = hfs_inls ? hfs_inls->sic_name : NULL;
}
if (hfs_ocharset == NULL || strcmp(hfs_ocharset, "mac-roman") == 0) {
- hfs_ocharset = "cp10000";
+ hfs_ocharset = "macintosh";
}
hfs_onls = sic_open(hfs_ocharset);

View File

@ -0,0 +1,222 @@
From: Kristyna Streitova <kstreitova@suse.com>
Date: Wed, 06 Jun 2018 14:51:57 +0000
X-Upstream: PATCH-FIX-SUSE
Some default values for configuration/compilation
---
DEFAULTS/Defaults.linux | 11 +++++------
include/schily/schily.h | 2 +-
mt/Makefile | 4 ++--
rmt/Makefile | 4 ++--
rmt/Makefile.man | 2 +-
rmt/rmt.1 | 3 +--
rmt/rmt.dfl | 16 +++++++---------
star/all.mk | 2 +-
star/pax.mk | 2 +-
star/star.mk | 4 ++--
10 files changed, 23 insertions(+), 27 deletions(-)
Index: schily-2022-10-16/DEFAULTS/Defaults.linux
===================================================================
--- schily-2022-10-16.orig/DEFAULTS/Defaults.linux
+++ schily-2022-10-16/DEFAULTS/Defaults.linux
@@ -26,7 +26,7 @@ DEFLINKMODE= static
# If the next line is uncommented, compilation is done with minimal warnings
#
###########################################################################
-CWARNOPTS=
+#CWARNOPTS=
###########################################################################
#
@@ -41,9 +41,8 @@ LINUX_SRC_INCLUDE= $(__LINUX_SRC_IN
DEFINCDIRS= $(SRCROOT)/include
DEFOSINCDIRS=
-LDPATH= -L/opt/schily/lib
-#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR)
-RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib
+LDPATH= -L/usr/lib
+RUNPATH=
###########################################################################
#
@@ -57,13 +56,13 @@ OSDEFS += -D_GNU_SOURCE
# Installation config stuff
#
###########################################################################
-INS_BASE= /opt/schily
+INS_BASE= /usr
INS_KBASE= /
INS_RBASE= /
#
DEFUMASK= 002
#
-DEFINSMODEF= 444
+DEFINSMODEF= 644
DEFINSMODEX= 755
DEFINSUSR= root
DEFINSGRP= bin
Index: schily-2022-10-16/include/schily/schily.h
===================================================================
--- schily-2022-10-16.orig/include/schily/schily.h
+++ schily-2022-10-16/include/schily/schily.h
@@ -431,7 +431,7 @@ extern int _comerr __PR((FILE *, int, i
#endif /* EOF */
/*PRINTFLIKE1*/
-extern int error __PR((const char *, ...)) __printflike__(1, 2);
+extern int error __PR((const char *, ...));
/*PRINTFLIKE1*/
extern int gterror __PR((const char *, ...)) __printflike__(1, 2);
Index: schily-2022-10-16/mt/Makefile
===================================================================
--- schily-2022-10-16.orig/mt/Makefile
+++ schily-2022-10-16/mt/Makefile
@@ -7,7 +7,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.to
INSDIR= bin
TARGET= smt
-SYMLINKS= mt
+#SYMLINKS= mt
CPPOPTS += -DUSE_REMOTE
CPPOPTS += -DSCHILY_PRINT
CPPOPTS += -DUSE_NLS # Include locale support
@@ -21,7 +21,7 @@ CFILES= mt.c
# LIB_CAP is needed for Linux capability support in librmt.
#
LIBS= -lrmt -lschily $(LIB_SOCKET) $(LIB_CAP) $(LIB_INTL)
-XMK_FILE= Makefile.man mt.mk1
+XMK_FILE= Makefile.man
###########################################################################
include $(SRCROOT)/$(RULESDIR)/rules.cmd
Index: schily-2022-10-16/rmt/Makefile
===================================================================
--- schily-2022-10-16.orig/rmt/Makefile
+++ schily-2022-10-16/rmt/Makefile
@@ -5,8 +5,8 @@ RULESDIR= RULES
include $(SRCROOT)/$(RULESDIR)/rules.top
###########################################################################
-INSDIR= sbin
-TARGET= rmt
+INSDIR= bin
+TARGET= srmt
CPPOPTS += -DUSE_REMOTE
CPPOPTS += -DUSE_LARGEFILES
CFILES= rmt.c
Index: schily-2022-10-16/rmt/Makefile.man
===================================================================
--- schily-2022-10-16.orig/rmt/Makefile.man
+++ schily-2022-10-16/rmt/Makefile.man
@@ -8,7 +8,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.to
###########################################################################
MANDIR= man
-TARGETMAN= rmt
+TARGETMAN= srmt
MANSECT= $(MANSECT_CMD)
MANSUFFIX= $(MANSUFF_CMD)
MANFILE= rmt.1
Index: schily-2022-10-16/rmt/rmt.1
===================================================================
--- schily-2022-10-16.orig/rmt/rmt.1
+++ schily-2022-10-16/rmt/rmt.1
@@ -17,9 +17,8 @@
.SH NAME
rmt \- remote magnetic tape protocol server
.SH SYNOPSIS
-.B /opt/schily/sbin/rmt
.br
-.B /etc/rmt
+.B /usr/bin/rmt
.SH DESCRIPTION
.IX "rmt command" "" "\fLrmt\fP \(em remote magnetic tape protocol server"
Index: schily-2022-10-16/rmt/rmt.dfl
===================================================================
--- schily-2022-10-16.orig/rmt/rmt.dfl
+++ schily-2022-10-16/rmt/rmt.dfl
@@ -18,15 +18,13 @@
# Each USER= entry adds the listed user to the users who may run rmt
#
# A typical passwd entry looks like this:
-# rtape:x:1999:1000:Remote TAPE:/export/home/rtape:/opt/schily/sbin/rmt
+# rtape:x:1999:1000:Remote TAPE:/home/tape:/usr/sbin/rmt
#
-# Add entries for all valid remote users to /export/home/rtape/.rhosts
+# Add entries for all valid remote users to:
+# /home/tape/.rhosts
#
#USER=rtape
-#USER=joerg
-# Default to old SunOS behavior. If you like to be more restrictive, comment
-# out the entry below and enable the explicit USER= entries above.
-USER=*
+#USER=*
#
# Each ACCESS= entry adds a target or group of targets to the list of visible
@@ -43,8 +41,8 @@ USER=*
# user host file
# name name
#
-#ACCESS=rtape sparky /dev/rmt/*
-ACCESS=* * /dev/rmt/*
+#ACCESS=rtape sparky /dev/st0
+#ACCESS=* * /dev/nst*
ACCESS=* * /dev/null
-ACCESS=* * /dev/zero
+#ACCESS=* * /dev/zero
#ACCESS=* * *
Index: schily-2022-10-16/star/all.mk
===================================================================
--- schily-2022-10-16.orig/star/all.mk
+++ schily-2022-10-16/star/all.mk
@@ -12,7 +12,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.to
# and copy star_fat.mk to Makefile.
#
-MK_FILES= star.mk pax.mk suntar.mk gnutar.mk cpio.mk
+MK_FILES=star.mk pax.mk Makefile.dfl
###########################################################################
include $(SRCROOT)/$(RULESDIR)/rules.mks
Index: schily-2022-10-16/star/pax.mk
===================================================================
--- schily-2022-10-16.orig/star/pax.mk
+++ schily-2022-10-16/star/pax.mk
@@ -8,7 +8,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.to
INSDIR= bin
TARGET= spax
-#SYMLINKS= ustar tar
+SYMLINKS= pax
CPPOPTS += -D__STAR__
CPPOPTS += -DSET_CTIME -DFIFO -DUSE_MMAP -DUSE_REMOTE -DUSE_RCMD_RSH
#CPPOPTS += -DSET_CTIME -DFIFO -DUSE_MMAP
Index: schily-2022-10-16/star/star.mk
===================================================================
--- schily-2022-10-16.orig/star/star.mk
+++ schily-2022-10-16/star/star.mk
@@ -8,7 +8,7 @@ include $(SRCROOT)/$(RULESDIR)/rules.to
INSDIR= bin
TARGET= star
-SYMLINKS= ustar tar
+SYMLINKS= ustar
CPPOPTS += -D__STAR__
CPPOPTS += -DSET_CTIME -DFIFO -DUSE_MMAP -DUSE_REMOTE -DUSE_RCMD_RSH
#CPPOPTS += -DSET_CTIME -DFIFO -DUSE_MMAP
@@ -39,7 +39,7 @@ HFILES= star.h starsubs.h dirtime.h xta
movearch.h table.h props.h fifo.h diff.h restore.h \
checkerr.h dumpdate.h bitstring.h
LIBS= -ldeflt -lrmt -lfind -lschily $(LIB_ACL) $(LIB_ATTR) $(LIB_SOCKET) $(LIB_INTL)
-XMK_FILE= Makefile.man starformatman.mk
+XMK_FILE= Makefile.man
###########################################################################
include $(SRCROOT)/$(RULESDIR)/rules.cmd

BIN
schily-2022-10-16.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

1238
schily.changes Normal file

File diff suppressed because it is too large Load Diff

1081
schily.spec Normal file

File diff suppressed because it is too large Load Diff