forked from pool/s390-tools
7e8b34210d
- Upgraded to version 2.15.1. (bsc#1178250, jsc#SLE-13663) - Added s390-tools-sles15sp3-dasdfmt-Fix-segfault-when-an-incorrect-option-is-spe.patch (bsc#1178313). When specifying an incorrect program option, dasdfmt segfaults as the format string for the corresponding error message has no parameter. - Added s390-tools-sles15sp3-libutil-Compare-proc-entries-to-vfstype.patch (bsc#1178315). The fdasd command was failing if sysfs was mounted this way: mount -t sysfs none /sys To make sure that the mount point of the sysfs is still found when mounted with a device keyword specified other than 'sysfs', check for the filesystem type instead, which is more specific. - Added the following patches for bsc#1178427, and jsc#SLE-13768, Log DASD info for endpoint security * s390-tools-sles15sp3-01-zdev-Add-FC-Endpoint-Security-information-for-DASD-d.patch * s390-tools-sles15sp3-02-lsdasd-Add-FC-Endpoint-Security-information.patch - Added the following patch for bsc#1178628 and jsc#SLE-13765, Converged HiperSockets/Ethernet Interface * s390-tools-sles15sp3-hsci-Add-new-tool-to-control-HiperSockets-Converged-.patch - Added the following patches for bsc#1178992 and jsc#SLE-13772, Add host-key document verification support to genprotimg. * s390-tools-sles15sp3-01-genprotimg-abort-if-one-of-the-recursive-targets-is-.patch * s390-tools-sles15sp3-02-genprotimg-fix-two-memory-leaks.patch * s390-tools-sles15sp3-03-genprotimg-require-argument-for-ramdisk-and-parmfile.patch * s390-tools-sles15sp3-04-genprotimg-add-host-key-document-verification-suppor.patch - Added the following patch for bsc#1178734. Running zcryptstats when many domains are available per cryto card does not produce any output, and is hanging in a loop. * s390-tools-sles15sp3-zcryptstats-Fix-handling-of-partial-results-with-man.patch - Reworked and renamed the following patches to accommodate changes made by IBM to the structure of the dasdfmt command. * s390-tools-sles15-Allow-multiple-device-arguments.patch renamed to s390-tools-sles15sp3-Allow-multiple-device-arguments.patch. * s390-tools-sles15-Format-devices-in-parallel.patch renamed to s390-tools-sles15sp3-Format-devices-in-parallel.patch * dasdfmt-retry-BIODASDINFO-if-device-is-busy.patch renamed to s390-tools-sles15sp3-dasdfmt-retry-BIODASDINFO-if-device-is-busy.patch * s390-tools-sles15-Implement-f-for-backwards-compability.patch renamed to s390-tools-sles15-Implement-Y-yast_mode.patch - Upgraded to version 2.15.0 (jsc#SLE-13662, jsc#SLE-13663, jsc#SLE-13667, jsc#SLE-13724, jsc#SLE-13728, jsc#SLE-13730, jsc#SLE-13739, jsc#SLE-13744, jsc#SLE-13751, jsc#SLE-13755, jsc#SLE-13765, jsc#SLE-13768, jsc#SLE-13777, jsc#SLE-13814, jsc#SLE-13819, jsc#SLE-13820) - Reworked s390-tools-sles12-sysconfig-compatible-dumpconf.patch to fit the current version and renamed it to s390-tools-sles15-sysconfig-compatible-dumpconf.patch - Removed the following obsolete patches: * s390-tools-sles15sp2-01-zkey-Separate-and-rework-CCA-host-library-loading.patch * s390-tools-sles15sp2-02-zkey-Move-utility-functions-into-separate-source-fil.patch * s390-tools-sles15sp2-03-zkey-Add-utility-function-to-get-the-serial-number-o.patch * s390-tools-sles15sp2-04-zkey-Add-utility-function-to-get-the-mkvp-of-a-crypt.patch * s390-tools-sles15sp2-05-zkey-add-function-to-iterate-over-all-available-CCA-.patch * s390-tools-sles15sp2-06-zkey-Add-function-to-print-the-MKVPs-of-APQNs.patch * s390-tools-sles15sp2-07-zkey-Add-function-to-cross-check-APQNs-for-valid-mas.patch * s390-tools-sles15sp2-08-zkey-Add-function-to-obtain-the-mkvp-of-a-secure-key.patch * s390-tools-sles15sp2-09-zkey-Display-MKVP-when-validating-a-secure-key.patch * s390-tools-sles15sp2-10-zkey-Cross-check-APQNs-when-generating-secure-keys.patch * s390-tools-sles15sp2-11-zkey-Cross-check-APQNs-when-validating-secure-keys.patch * s390-tools-sles15sp2-12-zkey-Cross-check-APQNs-when-importing-secure-keys.patch * s390-tools-sles15sp2-13-zkey-Cross-check-APQNs-when-changing-APQN-associatio.patch * s390-tools-sles15sp2-14-zkey-Add-function-to-select-a-specific-CCA-adapter.patch * s390-tools-sles15sp2-15-zkey-Add-function-to-select-a-CCA-adapter-by-mkvp.patch * s390-tools-sles15sp2-16-zkey-Select-CCA-adapter-when-re-enciphering.patch * s390-tools-sles15sp2-17-zkey-cryptsetup-Add-to-new-and-from-old-options.patch * s390-tools-sles15sp2-18-zkey-Display-key-type-with-list-and-validate-command.patch * s390-tools-sles15sp2-19-zkey-Allow-to-filter-list-output-by-key-type.patch * s390-tools-sles15sp2-20-zkey-Allow-to-specify-the-key-type-with-the-generate.patch * s390-tools-sles15sp2-21-zkey-Preparations-for-introducing-a-new-key-type.patch * s390-tools-sles15sp2-22-zkey-Introduce-the-CCA-AESCIPHER-key-type.patch * s390-tools-sles15sp2-23-zkey-Add-wrappers-for-the-new-IOCTLs-with-fallback-t.patch * s390-tools-sles15sp2-24-zkey-Add-helper-functions-to-build-lists-of-APQNs.patch * s390-tools-sles15sp2-25-zkey-Add-support-for-generating-AES-CIPHER-keys.patch * s390-tools-sles15sp2-26-zkey-Add-support-for-validating-AES-CIPHER-keys.patch * s390-tools-sles15sp2-27-zkey-Add-support-for-re-enciphering-AES-CIPHER-keys.patch * s390-tools-sles15sp2-28-zkey-Check-crypto-card-level-during-APQN-cross-check.patch * s390-tools-sles15sp2-29-zkey-Add-helper-function-to-query-the-CCA-firmware-v.patch * s390-tools-sles15sp2-30-zkey-Add-helper-function-to-convert-secure-keys-betw.patch * s390-tools-sles15sp2-31-zkey-Add-helper-function-to-restrict-export-of-secur.patch * s390-tools-sles15sp2-32-zkey-Add-helper-function-to-check-an-AES-CIPHER-key.patch * s390-tools-sles15sp2-33-zkey-Add-key-checks-when-importing-a-CCA-AESCIPHER-k.patch * s390-tools-sles15sp2-34-zkey-Add-convert-command-to-convert-keys-from-one-ty.patch * s390-tools-sles15sp2-35-zkey-Allow-zkey-cryptsetup-setkey-to-set-different-k.patch * s390-tools-sles15sp2-zcrypt-CEX7S-exploitation-support.patch * s390-tools-sles15sp2-zcryptstats-Add-support-for-CEX7.patch * s390-tools-sles15sp2-zkey-Fix-listing-of-keys-on-file-systems-reporting-D.patch * s390-tools-sles15sp2-zkey-Fix-display-of-clear-key-size-for-XTS-keys.patch * s390-tools-sles15sp2-zkey-Fix-display-of-XTS-attribute-for-validate-comma.patch * s390-tools-sles15sp2-zkey-Fix-display-of-clear-key-size-for-CCA-AESCIPHER.patch * s390-tools-sles15sp2-01-zipl-libc-Introduce-vsnprintf.patch * s390-tools-sles15sp2-02-zipl-libc-Fix-potential-buffer-overflow-in-printf.patch * s390-tools-sles15sp2-03-zipl-libc-Replace-sprintf-with-snprintf.patch * s390-tools-sles15sp2-04-zipl-libc-Indicate-truncated-lines-in-printf-with.patch * s390-tools-sles15sp2-01-zpcictl-Initiate-recover-after-reset.patch * s390-tools-sles15sp2-02-zpcictl-Rename-misleading-sysfs_write_data.patch * s390-tools-sles15sp2-03-zpcitctl-Exit-on-error-in-sysfs_report_error.patch * s390-tools-sles15sp2-01-zipl-fix-Wdiscarded-qualifiers.patch * s390-tools-sles15sp2-02-zipl-fix-Waddress-of-packed-member.patch * s390-tools-sles15sp2-03-zipl-remove-some-useless-__packed___-attributes.patch * s390-tools-sles15sp2-04-zipl-Fix-entry-point-for-stand-alone-kdump.patch * s390-tools-sles15sp2-05-zipl-Fix-dependency-generation-in-zipl-boot.patch * s390-tools-sles15sp2-06-zipl-Make-use-of-__packed-macro.patch * s390-tools-sles15sp2-07-zipl-define-__section-macro-and-make-use-of-it.patch * s390-tools-sles15sp2-08-zipl-Make-use-of-__noreturn-macro.patch * s390-tools-sles15sp2-09-zipl-Define-__noinline-macro-and-make-use-of-it.patch * s390-tools-sles15sp2-10-zipl-stage3-Mark-start_kernel-__noreturn.patch * s390-tools-sles15sp2-11-zipl-sclp-Remove-duplicate-macros.patch * s390-tools-sles15sp2-12-zipl-Make-address-size-mask-macros-UL.patch * s390-tools-sles15sp2-13-zipl-libc-Use-stdint.h-instead-of-self-defined-macro.patch * s390-tools-sles15sp2-14-zipl-Consolidate-IMAGE-macros.patch * s390-tools-sles15sp2-15-zipl-Consolidate-STAGE-2-3-macros.patch * s390-tools-sles15sp2-16-zipl-stfle-use-uint64_t-instead-of-u64.patch * s390-tools-sles15sp2-17-zipl-boot-fix-comment-in-stage3.lds.patch * s390-tools-sles15sp2-18-lib-zt_common-add-STATIC_ASSERT-macro.patch * s390-tools-sles15sp2-19-zipl-use-STATIC_ASSERT-macro-for-no-padding-verifica.patch * s390-tools-sles15sp2-20-Support-lib-zt_common.h-to-be-used-in-assembler-and-.patch * s390-tools-sles15sp2-21-zipl-move-IPL-related-definitions-into-separate-head.patch * s390-tools-sles15sp2-22-zipl-move-SIGP-related-functions-and-definitions-int.patch * s390-tools-sles15sp2-23-zipl-add-SIGP_SET_ARCHITECTURE-to-sigp.h-and-use-it.patch * s390-tools-sles15sp2-24-zipl-stage3-make-IPL_DEVICE-definition-consistent-wi.patch * s390-tools-sles15sp2-25-zipl-move-Linux-layout-definitions-into-separate-hea.patch * s390-tools-sles15sp2-26-zipl-tape0-use-constants-defined-in-linux_layout.h.patch * s390-tools-sles15sp2-27-zipl-use-STAGE3_ENTRY-for-STAGE3_LOAD_ADDRESS.patch * s390-tools-sles15sp2-28-zipl-move-loaders-layout-definitions-into-separate-h.patch * s390-tools-sles15sp2-29-zipl-s390.h-rename-inline-macro-into-__always_inline.patch * s390-tools-sles15sp2-30-zipl-move-__always_inline-barrier-__pa32-pa-to-zt_co.patch * s390-tools-sles15sp2-31-zipl-make-BLK_PWRT-unsigned-int.patch * s390-tools-sles15sp2-32-Consolidate-MIN-and-MAX-macros.patch * s390-tools-sles15sp2-33-zipl-remove-libc.h-include-in-s390.h.patch * s390-tools-sles15sp2-34-zipl-move-s390.h-to-include-boot-s390.h.patch * s390-tools-sles15sp2-35-zipl-libc-include-s390.h.patch * s390-tools-sles15sp2-36-include-boot-s390.h-move-panic-and-panic_notify-to-l.patch * s390-tools-sles15sp2-37-include-boot-s390.h-fixes-for-Werror-sign-conversion.patch * s390-tools-sles15sp2-38-zipl-refactor-all-EBCDIC-code-into-separate-files.patch * s390-tools-sles15sp2-39-zipl-sclp-add-macros-for-the-control-program-masks.patch * s390-tools-sles15sp2-40-zipl-sclp-add-sclp_print_ascii.patch * s390-tools-sles15sp2-41-zipl-libc-printf-print-on-linemode-and-ASCII-console.patch * s390-tools-sles15sp2-42-Consolidate-ALIGN-__ALIGN_MASK-ARRAY_SIZE-macros.patch * s390-tools-sles15sp2-43-genprotimg-boot-initial-bootloader-support.patch * s390-tools-sles15sp2-44-genprotimg-boot-use-C-pre-processor-for-linker-scrip.patch * s390-tools-sles15sp2-45-genprotimg-add-relocator-for-stage3b.patch * s390-tools-sles15sp2-46-README.md-remove-useless-empty-line.patch * s390-tools-sles15sp2-47-include-boot-s390.h-add-guard-for-struct-__vector128.patch * s390-tools-sles15sp2-48-genprotimg-introduce-new-tool-for-the-creation-of-PV.patch * s390-tools-sles15sp2-01-zipl-Add-missing-options-to-help-output.patch * s390-tools-sles15sp2-02-zipl-allow-stand-alone-secure-option-on-command-l.patch * s390-tools-sles15sp2-03-zipl-correct-secure-boot-config-handling.patch * s390-tools-sles15sp2-04-zipl-fix-zipl.conf-man-page-example-for-secure-boot.patch * s390-tools-sles15sp2-01-cpumf-add-new-deflate-counters-for-z15.patch * s390-tools-sles15sp2-vmcp-exit-code.patch * s390-tools-sles15sp2-zipl-prevent-endless-loop-during-IPL.patch * s390-tools-sles15sp2-zipl-check-for-valid-ipl-parmblock-lowcore-pointer.patch * s390-tools-sles15sp2-01-zipl-libc-libc_stop-move-noreturn-to-declaration.patch * s390-tools-sles15sp2-02-zipl-stage3-correctly-handle-diag308-response-code.patch * s390-tools-sles15sp2-lsluns-try-harder-to-find-udevadm.patch * s390-tools-sles15sp2-znetconf-introduce-better-ways-to-locate-udevadm.patch * s390-tools-sles15sp2-mon_tools-update-udevadm-location.patch * s390-tools-sles15sp2-lscpumf-change-dflt-ccerror-counter-name.patch * s390-tools-sles15sp2-01-zdev-Introduce-read-only-attributes.patch * s390-tools-sles15sp2-02-zdev-Handle-special-case-in-if-case.patch * s390-tools-sles15sp2-03-zdev-Report-FC-Endpoint-Security-of-zfcp-devices.patch * s390-tools-sles15sp2-04-zfcpdbf-print-HBA-FC-Endpoint-Security-trace-records.patch * s390-tools-sles15sp1-zdev-Also-include-the-ctc-driver-in-the-initrd.patch not in spec file * s390-tools-sles15sp2-Close-file-descriptor-when-checking-for-read-only.patch not in spec file - Added s390-tools-sles15sp2-lscpumf-change-dflt-ccerror-counter-name.patch (bsc#1176508) lscpumf displays counter number 265 as DFLT_CCERROR. This is wrong and differs from the counter name as defined in the Linux kernel version 5.8 and later. - Added the following patches to implement the post-GA feature jsc#ECO-2636 Log FCP link info for endpoint security (bsc#1175477) * s390-tools-sles15sp2-01-zdev-Introduce-read-only-attributes.patch * s390-tools-sles15sp2-02-zdev-Handle-special-case-in-if-case.patch * s390-tools-sles15sp2-03-zdev-Report-FC-Endpoint-Security-of-zfcp-devices.patch * s390-tools-sles15sp2-04-zfcpdbf-print-HBA-FC-Endpoint-Security-trace-records.patch OBS-URL: https://build.opensuse.org/request/show/854117 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=101
565 lines
20 KiB
RPMSpec
565 lines
20 KiB
RPMSpec
#
|
||
# spec file for package s390-tools
|
||
#
|
||
# Copyright (c) 2001-2020 SUSE LLC
|
||
#
|
||
# 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 https://bugs.opensuse.org/
|
||
#
|
||
# needssslcertforbuild
|
||
|
||
|
||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||
%if ! %{defined _fillupdir}
|
||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||
%endif
|
||
|
||
Name: s390-tools
|
||
Version: 2.15.1
|
||
Release: 0
|
||
Summary: S/390 tools like zipl and dasdfmt
|
||
License: MIT
|
||
Group: System/Kernel
|
||
URL: https://github.com/ibm-s390-tools/s390-tools
|
||
Source: https://github.com/ibm-s390-tools/s390-tools/archive/v%{version}.tar.gz#/s390-tools-%{version}.tar.gz
|
||
Source1: s390-tools-rpmlintrc
|
||
Source2: zipl.conf
|
||
Source3: hsnc
|
||
Source4: sysconfig.hsnc
|
||
Source5: xpram
|
||
Source6: sysconfig.xpram
|
||
Source7: appldata
|
||
Source8: sysconfig.appldata
|
||
Source10: dasdro
|
||
Source11: dasd_reload
|
||
Source12: mkdump.pl
|
||
Source13: sysconfig.osasnmpd
|
||
Source14: zfcp_san_disc
|
||
Source15: mkdump.8
|
||
Source18: zpxe.rexx
|
||
Source19: rules.xpram
|
||
Source20: rules.hw_random
|
||
Source21: 59-graf.rules
|
||
Source22: s390-tools-zdsfs.caution.txt
|
||
Source23: README.SUSE
|
||
Source24: cputype
|
||
Source25: cputype.1
|
||
Source26: cio_ignore.service
|
||
Source27: setup_cio_ignore.sh
|
||
Source28: 59-prng.rules
|
||
Source29: 59-zfcp-compat.rules
|
||
Source30: 90-s390-tools.conf
|
||
Source31: detach_disks.sh
|
||
Source32: killcdl
|
||
Source33: lgr_check
|
||
Source34: sysconfig.virtsetup
|
||
Source35: virtsetup.service
|
||
Source36: virtsetup.sh
|
||
Source37: appldata.service
|
||
Source38: hsnc.service
|
||
Source39: vmlogrdr.service
|
||
Source40: xpram.service
|
||
Source41: pkey.conf
|
||
|
||
### Obsolete scripts and man pages to be removed once changes in other tools are made
|
||
### That's been delayed to at least SLES12 SP1, but I'm leaving the comments here.
|
||
Source86: read_values.c
|
||
Source87: read_values.8
|
||
Source88: ctc_configure
|
||
Source89: dasd_configure
|
||
Source90: iucv_configure
|
||
Source91: qeth_configure
|
||
Source92: zfcp_disk_configure
|
||
Source93: zfcp_host_configure
|
||
Source94: ctc_configure.8
|
||
Source95: dasd_configure.8
|
||
Source96: iucv_configure.8
|
||
Source97: qeth_configure.8
|
||
Source98: zfcp_disk_configure.8
|
||
Source99: zfcp_host_configure.8
|
||
###
|
||
|
||
Patch1: s390-tools-sles15sp3-dasdfmt-Fix-segfault-when-an-incorrect-option-is-spe.patch
|
||
Patch2: s390-tools-sles15sp3-libutil-Compare-proc-entries-to-vfstype.patch
|
||
Patch3: s390-tools-sles15sp3-01-zdev-Add-FC-Endpoint-Security-information-for-DASD-d.patch
|
||
Patch4: s390-tools-sles15sp3-02-lsdasd-Add-FC-Endpoint-Security-information.patch
|
||
Patch5: s390-tools-sles15sp3-hsci-Add-new-tool-to-control-HiperSockets-Converged-.patch
|
||
Patch6: s390-tools-sles15sp3-zcryptstats-Fix-handling-of-partial-results-with-man.patch
|
||
Patch7: s390-tools-sles15sp3-01-genprotimg-abort-if-one-of-the-recursive-targets-is-.patch
|
||
Patch8: s390-tools-sles15sp3-02-genprotimg-fix-two-memory-leaks.patch
|
||
Patch9: s390-tools-sles15sp3-03-genprotimg-require-argument-for-ramdisk-and-parmfile.patch
|
||
Patch10: s390-tools-sles15sp3-04-genprotimg-add-host-key-document-verification-suppor.patch
|
||
|
||
# SUSE patches
|
||
Patch900: s390-tools-sles12-zipl_boot_msg.patch
|
||
Patch901: s390-tools-sles15-sysconfig-compatible-dumpconf.patch
|
||
Patch902: s390-tools-sles12-create-filesystem-links.patch
|
||
Patch903: s390-tools-sles12-update-by_id-links-on-change-and-add-action.patch
|
||
Patch904: s390-tools-sles15sp3-Allow-multiple-device-arguments.patch
|
||
Patch905: s390-tools-sles15sp3-Format-devices-in-parallel.patch
|
||
Patch906: s390-tools-sles15sp3-Implement-Y-yast_mode.patch
|
||
Patch907: s390-tools-sles15sp3-Implement-f-for-backwards-compability.patch
|
||
Patch908: s390-tools-sles15sp3-dasdfmt-retry-BIODASDINFO-if-device-is-busy.patch
|
||
Patch909: 59-dasd.rules-wait_for.patch
|
||
Patch910: s390-tools-sles12-fdasd-skip-partition-check-and-BLKRRPART-ioctl.patch
|
||
Patch911: s390-tools-sles15sp1-11-zdev-Do-not-call-zipl-on-initrd-update.patch
|
||
|
||
BuildRequires: curl-devel
|
||
BuildRequires: dracut
|
||
BuildRequires: fuse-devel
|
||
BuildRequires: gcc-c++
|
||
BuildRequires: gettext-tools
|
||
BuildRequires: glib2-devel
|
||
BuildRequires: glibc-devel-static
|
||
BuildRequires: kernel-zfcpdump
|
||
BuildRequires: libcryptsetup-devel > 2.0.3
|
||
BuildRequires: libjson-c-devel
|
||
BuildRequires: libpfm-devel
|
||
BuildRequires: ncurses-devel
|
||
BuildRequires: net-snmp-devel
|
||
BuildRequires: pesign-obs-integration
|
||
BuildRequires: qclib-devel-static
|
||
BuildRequires: tcpd-devel
|
||
BuildRequires: zlib-devel-static
|
||
# Don't build with pie to avoid problems with zipl
|
||
#!BuildIgnore: gcc-PIE
|
||
Requires(pre): shadow
|
||
Requires(post): %fillup_prereq permissions
|
||
Requires: coreutils
|
||
Requires: gawk
|
||
Requires: perl-base
|
||
Requires: procps
|
||
Requires: rsync
|
||
Requires: tar
|
||
Requires: util-linux
|
||
Recommends: blktrace
|
||
Provides: s390utils:/sbin/dasdfmt
|
||
ExclusiveArch: s390x
|
||
|
||
%description
|
||
This package contains the tools needed to use Linux on IBM z Systems
|
||
and exploit many of the various capabilities of the hardware or z/VM.
|
||
For example:
|
||
dasdfmt - low-level format tool for ECKD DASD
|
||
fdasd - partitions ECKD DASDs with z/OS compatible disk layout
|
||
zipl - boot loader and dump DASD initializer
|
||
zgetdump - tool to get linux system dumps from DASD
|
||
|
||
%package -n osasnmpd
|
||
Summary: OSA-Express SNMP subagent
|
||
License: GPL-2.0-or-later
|
||
Group: Productivity/Networking/Other
|
||
Requires: perl
|
||
|
||
%description -n osasnmpd
|
||
Supports management information bases (MIBs) provided by OSA-Express
|
||
Fast Ethernet, Gigabit Ethernet, High Speed Token Ring and ATM Ethernet
|
||
LAN Emulation features in QDIO mode.
|
||
|
||
It extends the capabilities of the net-snmp master agent (snmpd) and
|
||
communicates with him via the AgentX protocol.
|
||
|
||
|
||
%package zdsfs
|
||
Summary: QSAM access to z/OS data
|
||
License: GPL-2.0-or-later AND NonFree
|
||
Group: Productivity/Networking/Other
|
||
|
||
%description zdsfs
|
||
Use the zdsfs command for read access to z/OS data sets stored on one or more DASDs.
|
||
|
||
The zdsfs file system translates the record-based z/OS data sets to UNIX file system
|
||
semantics. After mounting the devices, you can use common Linux tools to access
|
||
the files on the disk. Physical sequential data sets are represented as files.
|
||
Partitioned data sets are represented as directories, with each member being
|
||
represented as a file in that directory.
|
||
|
||
%package hmcdrvfs
|
||
Summary: HMC drive file system based on FUSE
|
||
License: GPL-2.0-only
|
||
Group: System/Filesystems
|
||
Requires: fuse
|
||
|
||
%description hmcdrvfs
|
||
This package contains a HMC drive file system based on FUSE and a tool
|
||
to list files and directories.
|
||
|
||
%package -n libekmfweb1
|
||
Summary: IBM Enterprise Key Management Foundation - Web Edition client library
|
||
License: MIT
|
||
Group: System/Libraries
|
||
|
||
%description -n libekmfweb1
|
||
libekmfweb1 is a client library that provides access to IBM' Enterprise Key
|
||
Management Foundation – Web Edition.0 EKMF Web provides efficient and
|
||
security-rich centralized key management for IBM z/OS data set encryption
|
||
on IBM Z servers.
|
||
|
||
%package -n libekmfweb1-devel
|
||
Summary: IBM Enterprise Key Management Foundation - Web Edition client library
|
||
License: MIT
|
||
Group: Development/Libraries/C and C++
|
||
Requires: libekmfweb1
|
||
|
||
%description -n libekmfweb1-devel
|
||
libekmfweb1 is a client library that provides access to IBM' Enterprise Key
|
||
Management Foundation – Web Edition.0 EKMF Web provides efficient and
|
||
security-rich centralized key management for IBM z/OS data set encryption
|
||
on IBM Z servers.
|
||
|
||
%prep
|
||
%autosetup -p1
|
||
|
||
cp -vi %{SOURCE22} CAUTION
|
||
|
||
%build
|
||
|
||
# The "DISTRELEASE=%%{release}" needs to be on both the make and make install
|
||
# commands, since make install runs sed commands against various scripts to
|
||
# modify the "-v" output appropriately.
|
||
|
||
export OPT_FLAGS="%{optflags}"
|
||
export KERNELIMAGE_MAKEFLAGS="%%{?_smp_mflags}"
|
||
make %{?_smp_mflags} \
|
||
ZFCPDUMP_DIR=%{_prefix}/lib/s390-tools/zfcpdump \
|
||
DISTRELEASE=%{release}
|
||
gcc -static -o read_values ${OPT_FLAGS} %{SOURCE86} -lqc
|
||
|
||
%install
|
||
mkdir -p %{buildroot}/boot/zipl
|
||
mkdir -p %{buildroot}%{_sysconfdir}/zkey/repository
|
||
%make_install \
|
||
ZFCPDUMP_DIR=%{_prefix}/lib/s390-tools/zfcpdump \
|
||
DISTRELEASE=%{release} \
|
||
SYSTEMDSYSTEMUNITDIR=%{_unitdir} \
|
||
HAVE_DRACUT=1
|
||
|
||
# The make install command puts things in /etc/sysconfig and not the
|
||
# fillup-templates directory. Let's try moving them where they belong
|
||
mkdir -p %{buildroot}%{_fillupdir}
|
||
pushd %{buildroot}%{_sysconfdir}/sysconfig/
|
||
for sysconffile in *
|
||
do mv -vi $sysconffile %{buildroot}%{_fillupdir}/sysconfig.$sysconffile
|
||
done
|
||
popd
|
||
|
||
install -m 755 read_values %{buildroot}/%{_bindir}/
|
||
install -m644 -t %{buildroot}/%{_mandir}/man8 %{SOURCE87}
|
||
|
||
export ROOT_BUILD_DIR="%{_builddir}/%{name}-%{version}/zfcpdump/kernel"
|
||
install -D -m600 /boot/image-*-zfcpdump %{buildroot}%{_prefix}/lib/s390-tools/zfcpdump/zfcpdump-image
|
||
|
||
install -D -m644 etc/cpuplugd.conf %{buildroot}%{_sysconfdir}/cpuplugd.conf
|
||
install -D -m644 etc/udev/rules.d/40-z90crypt.rules %{buildroot}%{_prefix}/lib/udev/rules.d/40-z90crypt.rules
|
||
install -D -m644 etc/udev/rules.d/57-osasnmpd.rules %{buildroot}%{_prefix}/lib/udev/rules.d/57-osasnmpd.rules
|
||
install -D -m644 etc/udev/rules.d/59-dasd.rules %{buildroot}%{_prefix}/lib/udev/rules.d/59-dasd.rules
|
||
install -D -m644 etc/udev/rules.d/90-cpi.rules %{buildroot}%{_prefix}/lib/udev/rules.d/90-cpi.rules
|
||
mv iucvterm/doc/ts-shell/iucvconn_on_login %{buildroot}%{_bindir}/iucvconn_on_login
|
||
install -D -m644 %{SOURCE26} %{buildroot}/%{_unitdir}/cio_ignore.service
|
||
install -D -m755 %{SOURCE27} %{buildroot}%{_prefix}/lib/systemd/scripts/setup_cio_ignore.sh
|
||
install -D -m755 %{SOURCE31} %{buildroot}%{_prefix}/lib/systemd/scripts/detach_disks.sh
|
||
install -D -m644 %{SOURCE35} %{buildroot}/%{_unitdir}/virtsetup.service
|
||
install -D -m755 %{SOURCE36} %{buildroot}%{_prefix}/lib/systemd/scripts/virtsetup.sh
|
||
install -D -m644 %{SOURCE37} %{buildroot}/%{_unitdir}/appldata.service
|
||
install -D -m644 %{SOURCE38} %{buildroot}/%{_unitdir}/hsnc.service
|
||
install -D -m644 %{SOURCE39} %{buildroot}/%{_unitdir}/vmlogrdr.service
|
||
install -D -m644 %{SOURCE40} %{buildroot}/%{_unitdir}/xpram.service
|
||
install -D -m644 %{SOURCE41} %{buildroot}%{_prefix}/lib/modules-load.d/pkey.conf
|
||
|
||
cp %{SOURCE18} zpxe.rexx
|
||
cp %{SOURCE2} zipl.conf.sample
|
||
cp %{SOURCE23} README.SUSE
|
||
|
||
cd %{buildroot}
|
||
install -D -m755 %{SOURCE3} %{buildroot}%{_prefix}/lib/systemd/scripts/hsnc
|
||
install -D -m644 %{SOURCE4} %{buildroot}%{_fillupdir}/sysconfig.hsnc
|
||
install -D -m755 %{SOURCE5} %{buildroot}%{_prefix}/lib/systemd/scripts/xpram
|
||
install -D -m644 %{SOURCE6} %{buildroot}%{_fillupdir}/sysconfig.xpram
|
||
install -D -m755 %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/scripts/appldata
|
||
install -D -m644 %{SOURCE8} %{buildroot}%{_fillupdir}/sysconfig.appldata
|
||
install -D -m755 %{SOURCE10} sbin/dasdro
|
||
install -D -m755 %{SOURCE11} sbin/dasd_reload
|
||
install -D -m755 %{SOURCE12} sbin/mkdump
|
||
install -D -m644 %{SOURCE13} %{buildroot}%{_fillupdir}/sysconfig.osasnmpd
|
||
install -D -m755 %{SOURCE14} sbin/zfcp_san_disc
|
||
install -D -m644 %{SOURCE15} %{buildroot}/%{_mandir}/man8
|
||
install -D -m644 %{SOURCE19} %{buildroot}%{_prefix}/lib/udev/rules.d/52-xpram.rules
|
||
install -D -m644 %{SOURCE20} %{buildroot}%{_prefix}/lib/udev/rules.d/52-hw_random.rules
|
||
install -D -m644 %{SOURCE21} %{buildroot}%{_prefix}/lib/udev/rules.d/59-graf.rules
|
||
install -D -m644 %{SOURCE28} %{buildroot}%{_prefix}/lib/udev/rules.d/59-prng.rules
|
||
install -D -m644 %{SOURCE29} %{buildroot}%{_prefix}/lib/udev/rules.d/59-zfcp-compat.rules
|
||
install -D -m644 %{SOURCE30} %{buildroot}%{_sysconfdir}/modprobe.d/90-s390-tools.conf
|
||
install -D -m755 %{SOURCE32} %{buildroot}/sbin/killcdl
|
||
install -D -m755 %{SOURCE33} %{buildroot}/sbin/lgr_check
|
||
install -D -m644 %{SOURCE34} %{buildroot}%{_fillupdir}/sysconfig.virtsetup
|
||
|
||
if [ ! -d %{_sbindir} ]; then
|
||
rm -f %{_sbindir}
|
||
mkdir -p %{_sbindir}
|
||
fi
|
||
(cd usr/sbin; ln -s service rcappldata)
|
||
(cd usr/sbin; ln -s service rchsnc)
|
||
(cd usr/sbin; ln -s service rcvmlogrdr)
|
||
(cd usr/sbin; ln -s service rcxpram)
|
||
(cd usr/sbin; ln -s service rccio_ignore)
|
||
(cd usr/sbin; ln -s service rccpacfstatsd)
|
||
(cd usr/sbin; ln -s service rccpi)
|
||
(cd usr/sbin; ln -s service rccpuplugd)
|
||
(cd usr/sbin; ln -s service rcdumpconf)
|
||
(cd usr/sbin; ln -s service rcmon_fsstatd)
|
||
(cd usr/sbin; ln -s service rcmon_procd)
|
||
(cd usr/sbin; ln -s service rcvirtsetup)
|
||
|
||
if [ ! -d %{_bindir} ]; then
|
||
rm -f %{_bindir}
|
||
mkdir -p %{_bindir}
|
||
fi
|
||
install -D -m755 %{SOURCE24} %{buildroot}%{_bindir}/cputype
|
||
|
||
install -m644 -t %{buildroot}/%{_mandir}/man8 %{SOURCE25}
|
||
|
||
### Obsolete scripts and man pages to be removed once changes in other tools are made
|
||
install -m755 -t sbin/ %{SOURCE88} %{SOURCE89} %{SOURCE90} %{SOURCE91} %{SOURCE92} %{SOURCE93}
|
||
install -m644 -t %{buildroot}/%{_mandir}/man8 %{SOURCE94} %{SOURCE95} %{SOURCE96} %{SOURCE97} %{SOURCE98} %{SOURCE99}
|
||
###
|
||
|
||
### lsmem/chmem have been added to util-linux
|
||
rm -fv %{buildroot}/%{_mandir}/man8/lsmem.8*
|
||
rm -fv %{buildroot}/%{_mandir}/man8/chmem.8*
|
||
rm -fv %{buildroot}/%{_sbindir}/lsmem
|
||
rm -fv %{buildroot}/%{_sbindir}/chmem
|
||
|
||
find . ! -type d |
|
||
sed 's/^.//;\-/man/-s/^.*$/%doc &.gz/' > %{_builddir}/%{name}-filelist
|
||
grep -v -E 'osasnmp|*\.conf$|ekmfweb.so|ekmfweb.h' %{_builddir}/%{name}-filelist >%{_builddir}/%{name}.list
|
||
grep osasnmp[^-] %{_builddir}/%{name}-filelist >%{_builddir}/%{name}.osasnmp
|
||
|
||
touch boot/zipl/active_devices.txt
|
||
mkdir -p ./%{_libexecdir}/net-snmp/agents
|
||
cd ./%{_libexecdir}/net-snmp/agents
|
||
cat <<EOT >osasnmpd
|
||
#!/bin/sh
|
||
PIDFILE=%{_localstatedir}/run/osasnmpd.pid
|
||
function cleanup
|
||
{
|
||
rm -f \$PIDFILE
|
||
kill \`cat %{_localstatedir}/run/osasnmpd.real.pid\`
|
||
}
|
||
. %{_sysconfdir}/sysconfig/osasnmpd
|
||
trap cleanup 0
|
||
echo \$\$ >\$PIDFILE
|
||
%{_sbindir}/osasnmpd -f -P %{_localstatedir}/run/osasnmpd.real.pid \$OSASNMPD_PARAMETERS "\$@"
|
||
EOT
|
||
chmod 755 osasnmpd
|
||
|
||
export BRP_PESIGN_FILES='/lib/s390-tools/stage3.bin'
|
||
|
||
%verifyscript
|
||
%verify_permissions -e %{_localstatedir}/log/ts-shell/
|
||
|
||
%pre
|
||
# check for ts-shell group or create it
|
||
getent group ts-shell >/dev/null 2>&1 || groupadd -r ts-shell
|
||
# check for zkeyadm group or create it
|
||
getent group zkeyadm >/dev/null 2>&1 || groupadd -r zkeyadm
|
||
# check for cpacfstats group or create it
|
||
getent group cpacfstats >/dev/null 2>&1 || groupadd -r cpacfstats
|
||
%service_add_pre appldata.service
|
||
%service_add_pre cio_ignore.service
|
||
%service_add_pre cpacfstatsd.service
|
||
%service_add_pre cpi.service
|
||
%service_add_pre cpuplugd.service
|
||
%service_add_pre dumpconf.service
|
||
%service_add_pre hsnc.service
|
||
%service_add_pre mon_fsstatd.service
|
||
%service_add_pre mon_procd.service
|
||
%service_add_pre virtsetup.service
|
||
%service_add_pre vmlogrdr.service
|
||
%service_add_pre xpram.service
|
||
|
||
%post
|
||
read INITPGM < /proc/1/comm
|
||
if [ "${INITPGM}" = "systemd" ]; then
|
||
echo "Running systemctl daemon-reload."
|
||
systemctl daemon-reload
|
||
fi
|
||
|
||
%set_permissions %{_localstatedir}/log/ts-shell/
|
||
|
||
# Create symbolic links to the scripts from setup and boot directories
|
||
%service_add_post appldata.service
|
||
%service_add_post cio_ignore.service
|
||
%service_add_post cpacfstatsd.service
|
||
%service_add_post cpi.service
|
||
%service_add_post cpuplugd.service
|
||
%service_add_post dumpconf.service
|
||
%service_add_post hsnc.service
|
||
%service_add_post mon_fsstatd.service
|
||
%service_add_post mon_procd.service
|
||
%service_add_post virtsetup.service
|
||
%service_add_post vmlogrdr.service
|
||
%service_add_post xpram.service
|
||
|
||
# Create the initial versions of the sysconfig files:
|
||
%{fillup_only -n appldata}
|
||
%{fillup_only -n cpi}
|
||
%{fillup_only -n dumpconf}
|
||
%{fillup_only -n hsnc}
|
||
%{fillup_only -n mon_fsstatd}
|
||
%{fillup_only -n mon_procd}
|
||
%{fillup_only -n mon_statd}
|
||
%{fillup_only -n virtsetup}
|
||
%{fillup_only -n xpram}
|
||
|
||
%triggerin -- kernel-default
|
||
grep -q '^%{_bindir}/ts-shell$' %{_sysconfdir}/shells \
|
||
|| echo "%{_bindir}/ts-shell" >> %{_sysconfdir}/shells
|
||
|
||
%{?regenerate_initrd_post}
|
||
|
||
%post -n osasnmpd
|
||
%{fillup_only -n osasnmpd}
|
||
|
||
%post -n libekmfweb1
|
||
ldconfig
|
||
|
||
%preun
|
||
%service_del_preun appldata.service
|
||
%service_del_preun cio_ignore.service
|
||
%service_del_preun cpacfstatsd.service
|
||
%service_del_preun cpi.service
|
||
%service_del_preun cpuplugd.service
|
||
%service_del_preun dumpconf.service
|
||
%service_del_preun hsnc.service
|
||
%service_del_preun mon_fsstatd.service
|
||
%service_del_preun mon_procd.service
|
||
%service_del_preun virtsetup.service
|
||
%service_del_preun vmlogrdr.service
|
||
%service_del_preun xpram.service
|
||
|
||
%postun
|
||
%service_del_postun appldata.service
|
||
%service_del_postun cio_ignore.service
|
||
%service_del_postun cpacfstatsd.service
|
||
%service_del_postun cpi.service
|
||
%service_del_postun cpuplugd.service
|
||
%service_del_postun dumpconf.service
|
||
%service_del_postun hsnc.service
|
||
%service_del_postun mon_fsstatd.service
|
||
%service_del_postun mon_procd.service
|
||
%service_del_postun virtsetup.service
|
||
%service_del_postun vmlogrdr.service
|
||
%service_del_postun xpram.service
|
||
|
||
%postun -n libekmfweb1
|
||
ldconfig
|
||
|
||
# Even though SLES15+ is systemd based, the build service doesn't
|
||
# run it, so we have to make sure we can safely issue the
|
||
# systemctl command.
|
||
read INITPGM < /proc/1/comm
|
||
if [ "${INITPGM}" = "systemd" ]; then
|
||
echo "Running systemctl daemon-reload."
|
||
systemctl daemon-reload
|
||
fi
|
||
|
||
if [ ! -x /boot/zipl ]; then
|
||
echo "Attention, after uninstalling this package,"
|
||
echo "you will NOT be able to IPL from DASD anymore!!!"
|
||
fi
|
||
|
||
if test x$1 = x0; then
|
||
# remove ts-shell from /etc/shells
|
||
grep -v '^%{_bindir}/ts-shell$' %{_sysconfdir}/shells > %{_sysconfdir}/shells.ts-new
|
||
mv %{_sysconfdir}/shells.ts-new %{_sysconfdir}/shells
|
||
chmod 0644 %{_sysconfdir}/shells
|
||
fi
|
||
|
||
%{?regenerate_initrd_post}
|
||
|
||
%posttrans
|
||
%{?regenerate_initrd_posttrans}
|
||
|
||
%preun -n osasnmpd
|
||
%{stop_on_removal osasnmpd}
|
||
|
||
%files -f %{_builddir}/%{name}.list
|
||
%defattr(-,root,root)
|
||
%doc README.md
|
||
%doc README.SUSE
|
||
|
||
%doc iucvterm/doc/ts-shell
|
||
%doc zpxe.rexx
|
||
%doc zipl.conf.sample
|
||
%dir %{_sysconfdir}/iucvterm
|
||
%config %attr(0640,root,ts-shell) %{_sysconfdir}/iucvterm/ts-audit-systems.conf
|
||
%config %attr(0640,root,ts-shell) %{_sysconfdir}/iucvterm/ts-authorization.conf
|
||
%config %attr(0640,root,ts-shell) %{_sysconfdir}/iucvterm/ts-shell.conf
|
||
%config %attr(0640,root,ts-shell) %{_sysconfdir}/iucvterm/unrestricted.conf
|
||
%dir %attr(0770,root,zkeyadm) %{_sysconfdir}/zkey
|
||
%dir %attr(0770,root,zkeyadm) %{_sysconfdir}/zkey/repository
|
||
%config %{_sysconfdir}/modprobe.d/90-s390-tools.conf
|
||
%config %{_sysconfdir}/cpuplugd.conf
|
||
%config %{_sysconfdir}/zkey/kms-plugins.conf
|
||
%config(noreplace) /boot/zipl/active_devices.txt
|
||
%dir %attr(2770,root,ts-shell) %{_localstatedir}/log/ts-shell
|
||
%dir %{_sysconfdir}/cmsfs-fuse
|
||
%config %attr(0640,root,root) %{_sysconfdir}/cmsfs-fuse/filetypes.conf
|
||
%dir %{_prefix}/lib/s390-tools
|
||
%dir %{_prefix}/lib/s390-tools/zfcpdump
|
||
%dir %{_prefix}/lib/udev/rules.d
|
||
%dir %{_prefix}/lib/systemd/scripts
|
||
%dir %{_datadir}/s390-tools
|
||
%dir %{_datadir}/s390-tools/netboot
|
||
%dir %{_datadir}/s390-tools/genprotimg
|
||
%dir %{_prefix}/lib/dracut/modules.d/95zdev
|
||
%dir /boot/zipl
|
||
%dir /lib/s390-tools/
|
||
/lib/s390-tools/zipl.conf
|
||
%{_prefix}/lib/modules-load.d/pkey.conf
|
||
%exclude %{_prefix}/lib/udev/rules.d/57-osasnmpd.rules
|
||
%exclude %{_bindir}/zdsfs
|
||
%exclude %{_bindir}/hmcdrvfs
|
||
%exclude %{_sbindir}/lshmc
|
||
%exclude %{_mandir}/man1/zdsfs.1.gz
|
||
%exclude %{_mandir}/man1/hmcdrvfs.1.gz
|
||
%exclude %{_mandir}/man8/lshmc.8.gz
|
||
|
||
%files -n osasnmpd -f %{_builddir}/%{name}.osasnmp
|
||
%defattr(-,root,root)
|
||
%{_libexecdir}/net-snmp/agents/osasnmpd
|
||
|
||
%files zdsfs
|
||
%defattr(-,root,root)
|
||
%doc CAUTION
|
||
%{_bindir}/zdsfs
|
||
%{_mandir}/man1/zdsfs.1%{?ext_man}
|
||
|
||
%files hmcdrvfs
|
||
%defattr(-,root,root)
|
||
%{_bindir}/hmcdrvfs
|
||
%{_sbindir}/lshmc
|
||
%{_mandir}/man1/hmcdrvfs.1%{?ext_man}
|
||
%{_mandir}/man8/lshmc.8%{?ext_man}
|
||
|
||
%files -n libekmfweb1
|
||
%defattr(-,root,root)
|
||
%{_libdir}/libekmfweb.so.*
|
||
%dir %{_libdir}/zkey
|
||
%{_libdir}/zkey/zkey-ekmfweb.so
|
||
|
||
%files -n libekmfweb1-devel
|
||
%{_libdir}/libekmfweb.so
|
||
%dir %attr(755,root,root) %{_includedir}/ekmfweb
|
||
%attr(644,root,root) %{_includedir}/ekmfweb/ekmfweb.h
|
||
|
||
%changelog
|