forked from pool/pam_pkcs11
Accepting request 515746 from home:AndreasStieger:branches:security:chipcard
- add service file bsc#1049219 OBS-URL: https://build.opensuse.org/request/show/515746 OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pam_pkcs11?expand=0&rev=18
This commit is contained in:
parent
9fa15c5ff5
commit
f0f7b47807
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 9 15:08:07 UTC 2017 - astieger@suse.com
|
||||
|
||||
- add service file bsc#1049219
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 20 18:02:57 CEST 2017 - sbrabec@suse.com
|
||||
|
||||
|
@ -30,7 +30,8 @@ Source1: pam_pkcs11-common-auth-smartcard.pam
|
||||
Source2: baselibs.conf
|
||||
# make dist was not called.
|
||||
Source3: pam_pkcs11-0.6.9-ChangeLog.git
|
||||
Patch: %{name}-fsf-address.patch
|
||||
Source4: pkcs11_eventmgr.service
|
||||
Patch0: %{name}-fsf-address.patch
|
||||
Patch1: %{name}-0.5.3-nss-conf.patch
|
||||
Patch3: %{name}-0.6.0-nss-autoconf.patch
|
||||
BuildRequires: curl-devel
|
||||
@ -46,6 +47,10 @@ BuildRequires: openssl-devel
|
||||
BuildRequires: pam-devel
|
||||
BuildRequires: pcsc-lite-devel
|
||||
BuildRequires: pkgconfig
|
||||
%{?systemd_requires}
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%endif
|
||||
|
||||
%description
|
||||
This Linux PAM module allows X.509 a certificate-based user
|
||||
@ -93,7 +98,7 @@ CRLs
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
%patch -p1
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch3 -p1
|
||||
cp -a %{SOURCE1} common-auth-smartcard
|
||||
@ -130,11 +135,23 @@ mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
cp -a AUTHORS COPYING ChangeLog ChangeLog.git NEWS README README.md TODO doc/pam_pkcs11.html doc/mappers_api.html doc/api doc/README.autologin doc/README.mappers %{buildroot}%{_docdir}/%{name}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
|
||||
cp common-auth-smartcard %{buildroot}%{_sysconfdir}/pam.d/
|
||||
install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/pkcs11_eventmgr.service
|
||||
%find_lang %{name}
|
||||
%fdupes -s %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
%pre
|
||||
%service_add_pre pkcs11_eventmgr.service
|
||||
|
||||
%post
|
||||
%service_add_post pkcs11_eventmgr.service
|
||||
|
||||
%preun
|
||||
%service_del_preun pkcs11_eventmgr.service
|
||||
|
||||
%postun
|
||||
%service_del_postun pkcs11_eventmgr.service
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}
|
||||
%exclude %{_docdir}/%{name}/api
|
||||
%{_bindir}/*
|
||||
@ -146,9 +163,9 @@ cp common-auth-smartcard %{buildroot}%{_sysconfdir}/pam.d/
|
||||
%dir %{_sysconfdir}/pam_pkcs11/crls
|
||||
%config(noreplace) %{_sysconfdir}/pam_pkcs11/*.conf
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/common-auth-smartcard
|
||||
%{_prefix}/lib/systemd/system/pkcs11_eventmgr.service
|
||||
|
||||
%files devel-doc
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}/api
|
||||
|
||||
%changelog
|
||||
|
11
pkcs11_eventmgr.service
Normal file
11
pkcs11_eventmgr.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=pkcs11 event manager
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/pkcs11_eventmgr
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user