Accepting request 728093 from devel:openSUSE:Factory
OBS-URL: https://build.opensuse.org/request/show/728093 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libica?expand=0&rev=15
This commit is contained in:
commit
8e03c47fe1
@ -28,9 +28,9 @@ on SUSE Linux Enterprise Server 9 for S/390 and zSeries:
|
|||||||
|
|
||||||
2) Loading the z90crypt driver:
|
2) Loading the z90crypt driver:
|
||||||
|
|
||||||
rcz90crypt start to load z90crypt
|
systemctl start z90crypt to load z90crypt
|
||||||
|
|
||||||
rcz90crypt stop to unload z90crypt
|
systemctl stop z90crypt to unload z90crypt
|
||||||
|
|
||||||
this command will be available only after installation of the
|
this command will be available only after installation of the
|
||||||
crypto driver packages.
|
crypto driver packages.
|
||||||
@ -38,7 +38,7 @@ on SUSE Linux Enterprise Server 9 for S/390 and zSeries:
|
|||||||
To load the driver automatically at every system boot, integrate it
|
To load the driver automatically at every system boot, integrate it
|
||||||
with the other boot scripts issuing
|
with the other boot scripts issuing
|
||||||
|
|
||||||
insserv z90crypt
|
systemctl enable z90crypt
|
||||||
|
|
||||||
|
|
||||||
3) Checking if the z90crypt hardware driver can be accessed
|
3) Checking if the z90crypt hardware driver can be accessed
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:160893c75655a9c36b0dff78783ba530944f3f683796676dfd2ea28f001f7112
|
|
||||||
size 499429
|
|
3
libica-3.5.0.tar.gz
Normal file
3
libica-3.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e0ef01bb2e75d21d76cd88de770b9cf5bc5ffc6d728608d360b9774a2d97bc3b
|
||||||
|
size 516730
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bf0689e700d8c1d000e49843239f37ae75708e46707c8e5447da9946df37368c
|
|
||||||
size 2216
|
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 30 21:46:50 UTC 2019 - Mark Post <mpost@suse.com>
|
||||||
|
|
||||||
|
- Upgraded to version 3.5.0 (Fate#327840)
|
||||||
|
- [FEATURE] Add MSA9 CPACF support for ECDSA sign/verify
|
||||||
|
- Reworked how libica-tools loads and unloads kernel modules to
|
||||||
|
avoid spurious error messages (bsc#1134004):
|
||||||
|
* Converted the boot.z90crypt sysV init script to a systemd unit
|
||||||
|
file.
|
||||||
|
* Removed any references to insserv in the spec file.
|
||||||
|
* Updated the z90crypt script itself to properly load and unload
|
||||||
|
the kernel modules as they exist today.
|
||||||
|
* Eliminated the obsolete libica-SuSE.tar.bz2 archive.
|
||||||
|
- Updated the README.SUSE file to reflect the change from sysV init
|
||||||
|
style script to systemd.
|
||||||
|
- Made numerous changes to the spec file, based on the output from
|
||||||
|
the spec-cleaner command.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 24 10:09:46 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
Wed Jul 24 10:09:46 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
55
libica.spec
55
libica.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libica
|
# spec file for package libica
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018, 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,19 +20,21 @@
|
|||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: libica
|
Name: libica
|
||||||
Version: 3.4.0
|
Version: 3.5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library interface for the IBM Cryptographic Accelerator device driver
|
Summary: Library interface for the IBM Cryptographic Accelerator device driver
|
||||||
License: CPL-1.0
|
License: CPL-1.0
|
||||||
Group: Hardware/Other
|
Group: Hardware/Other
|
||||||
URL: https://github.com/opencryptoki/libica
|
URL: https://github.com/opencryptoki/libica
|
||||||
Source: libica-%{version}.tar.gz
|
Source: https://github.com/opencryptoki/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source1: libica-SuSE.tar.bz2
|
|
||||||
# The icaioctl.h file came from https://sourceforge.net/p/opencryptoki/icadd/ci/master/tree/
|
# The icaioctl.h file came from https://sourceforge.net/p/opencryptoki/icadd/ci/master/tree/
|
||||||
Source3: icaioctl.h
|
Source1: icaioctl.h
|
||||||
Source4: README.SUSE
|
Source2: README.SUSE
|
||||||
Source5: sysconfig.z90crypt
|
Source3: sysconfig.z90crypt
|
||||||
|
Source4: z90crypt
|
||||||
|
Source5: z90crypt.service
|
||||||
Source6: baselibs.conf
|
Source6: baselibs.conf
|
||||||
Source7: %{name}-rpmlintrc
|
Source7: %{name}-rpmlintrc
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -41,7 +43,6 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
PreReq: %fillup_prereq
|
PreReq: %fillup_prereq
|
||||||
PreReq: %insserv_prereq
|
|
||||||
ExclusiveArch: s390 s390x
|
ExclusiveArch: s390 s390x
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -104,25 +105,29 @@ This RPM contains all the tools necessary to compile and link using
|
|||||||
the libica library.
|
the libica library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 1
|
%autosetup -p 1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p include/linux/
|
mkdir -p include/linux/
|
||||||
cp %{SOURCE3} include/linux/
|
cp %{SOURCE1} include/linux/
|
||||||
|
|
||||||
autoreconf --force --install
|
autoreconf --force --install
|
||||||
%configure CPPFLAGS="-Iinclude -fPIC" CFLAGS="%{optflags} -fPIC" \
|
%configure CPPFLAGS="-Iinclude -fPIC" CFLAGS="%{optflags} -fPIC" \
|
||||||
--enable-fips
|
--enable-fips
|
||||||
make clean
|
make %{?_smp_mflags} clean
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_includedir}
|
|
||||||
%make_install
|
%make_install
|
||||||
|
mkdir -p %{buildroot}%{_includedir}
|
||||||
cp -p include/ica_api.h %{buildroot}%{_includedir}
|
cp -p include/ica_api.h %{buildroot}%{_includedir}
|
||||||
cp -a SuSE/* %{buildroot}
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
install -D %{SOURCE5} %{buildroot}%{_fillupdir}/sysconfig.z90crypt
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcz90crypt
|
||||||
cp -a %{_sourcedir}/README.SUSE .
|
install -D %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.z90crypt
|
||||||
|
install -D %{SOURCE4} %{buildroot}%{_prefix}/lib/systemd/scripts/z90crypt
|
||||||
|
install -D -m 644 %{SOURCE5} %{buildroot}%{_prefix}/lib/systemd/system/z90crypt.service
|
||||||
|
|
||||||
|
cp -a %{SOURCE2} .
|
||||||
rm -f %{buildroot}%{_libdir}/libica.la
|
rm -f %{buildroot}%{_libdir}/libica.la
|
||||||
rm -f %{buildroot}%{_datadir}/doc/libica/*
|
rm -f %{buildroot}%{_datadir}/doc/libica/*
|
||||||
rmdir %{buildroot}%{_datadir}/doc/libica
|
rmdir %{buildroot}%{_datadir}/doc/libica
|
||||||
@ -130,15 +135,18 @@ rmdir %{buildroot}%{_datadir}/doc/libica
|
|||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
%pre tools
|
||||||
|
%service_add_pre z90crypt.service
|
||||||
|
|
||||||
%post tools
|
%post tools
|
||||||
%{fillup_and_insserv -n boot.z90crypt}
|
%service_add_post z90crypt.service
|
||||||
|
%{fillup_only -n z90crypt}
|
||||||
|
|
||||||
%preun tools
|
%preun tools
|
||||||
%stop_on_removal boot.z90crypt
|
%service_del_preun z90crypt.service
|
||||||
|
|
||||||
%postun tools
|
%postun tools
|
||||||
%restart_on_update boot.z90crypt
|
%service_del_postun z90crypt.service
|
||||||
%insserv_cleanup
|
|
||||||
|
|
||||||
%post -n libica3 -p /sbin/ldconfig
|
%post -n libica3 -p /sbin/ldconfig
|
||||||
%postun -n libica3 -p /sbin/ldconfig
|
%postun -n libica3 -p /sbin/ldconfig
|
||||||
@ -148,25 +156,24 @@ make check
|
|||||||
%{_libdir}/libica.so.3*
|
%{_libdir}/libica.so.3*
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-, root, root)
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.SUSE
|
%doc README.SUSE
|
||||||
%{_initddir}/boot.z90crypt
|
|
||||||
%{_sbindir}/rcz90crypt
|
%{_sbindir}/rcz90crypt
|
||||||
%attr(0644,root,root) %{_fillupdir}/sysconfig.z90crypt
|
%attr(0644,root,root) %{_fillupdir}/sysconfig.z90crypt
|
||||||
%{_bindir}/icainfo
|
%{_bindir}/icainfo
|
||||||
%{_bindir}/icastats
|
%{_bindir}/icastats
|
||||||
%{_mandir}/man1/icainfo.1%{?ext_man}
|
%{_mandir}/man1/icainfo.1%{?ext_man}
|
||||||
%{_mandir}/man1/icastats.1%{?ext_man}
|
%{_mandir}/man1/icastats.1%{?ext_man}
|
||||||
|
%dir %{_prefix}/lib/systemd/scripts
|
||||||
|
%{_prefix}/lib/systemd/scripts/z90crypt
|
||||||
|
%{_prefix}/lib/systemd/system/z90crypt.service
|
||||||
# Must be in here, otherwise openssl-ibmca does not find it via DSO_load() bsc#952871
|
# Must be in here, otherwise openssl-ibmca does not find it via DSO_load() bsc#952871
|
||||||
%{_libdir}/libica.so
|
%{_libdir}/libica.so
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
|
||||||
%attr(0644,root,root) %{_includedir}/ica_api.h
|
%attr(0644,root,root) %{_includedir}/ica_api.h
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%defattr(-, root, root)
|
%attr(0644,root,root) %{_libdir}/libica.a
|
||||||
%{_libdir}/libica.a
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
21
z90crypt
Normal file
21
z90crypt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
MODULE_LIST="pkey zcrypt_pcixcc zcrypt_cex2a zcrypt_cex4 zcrypt rng_core"
|
||||||
|
case "${1}" in
|
||||||
|
start) for module in ${MODULE_LIST}
|
||||||
|
do if ! grep -q ^{$module} /proc/modules ; then
|
||||||
|
modprobe ${module}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
stop) for module in ${MODULE_LIST}
|
||||||
|
do if grep -q ^${module} /proc/modules ; then
|
||||||
|
rmmod ${module}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
13
z90crypt.service
Normal file
13
z90crypt.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Activate any cryptographic hardware
|
||||||
|
After=systemd-modules-load.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
ExecStart=/usr/lib/systemd/scripts/z90crypt start
|
||||||
|
ExecStop=/usr/lib/systemd/scripts/z90crypt stop
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
Loading…
Reference in New Issue
Block a user