Accepting request 453788 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/453788 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcap?expand=0&rev=34
This commit is contained in:
commit
cca9766ee7
@ -1 +1,3 @@
|
|||||||
libcap2
|
libcap2
|
||||||
|
pam_cap
|
||||||
|
supplements "packageand(pam_cap:pam-<targettype>)"
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 31 17:52:31 UTC 2017 - matwey.kornilov@gmail.com
|
||||||
|
|
||||||
|
- Enable PAM pam_cap.so module
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 1 12:44:21 UTC 2017 - jengelh@inai.de
|
Sun Jan 1 12:44:21 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
18
libcap.spec
18
libcap.spec
@ -26,6 +26,7 @@ Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libca
|
|||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Url: https://sites.google.com/site/fullycapable/
|
Url: https://sites.google.com/site/fullycapable/
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -74,6 +75,13 @@ Group: System/Filesystems
|
|||||||
This package contains utility programs handling capabilities via
|
This package contains utility programs handling capabilities via
|
||||||
libcap.
|
libcap.
|
||||||
|
|
||||||
|
%package -n pam_cap
|
||||||
|
Summary: PAM Module for Capabilities Support
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n pam_cap
|
||||||
|
A PAM module for per-session capabilities manipulation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%build
|
%build
|
||||||
@ -91,6 +99,11 @@ make install RAISE_SETFCAP=no \
|
|||||||
find %{buildroot} -type f -name '*.la' -print -delete
|
find %{buildroot} -type f -name '*.la' -print -delete
|
||||||
# do not provide static libs
|
# do not provide static libs
|
||||||
rm %{buildroot}%{_libdir}/libcap.a
|
rm %{buildroot}%{_libdir}/libcap.a
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/%{_lib}/security
|
||||||
|
mv %{buildroot}%{_libdir}/security/pam_cap.so %{buildroot}/%{_lib}/security/pam_cap.so
|
||||||
|
install -D pam_cap/capability.conf %{buildroot}%{_sysconfdir}/security/capability.conf
|
||||||
|
|
||||||
%fdupes -s $RPM_BUILD_ROOT
|
%fdupes -s $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post -n libcap2 -p /sbin/ldconfig
|
%post -n libcap2 -p /sbin/ldconfig
|
||||||
@ -116,4 +129,9 @@ rm %{buildroot}%{_libdir}/libcap.a
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%files -n pam_cap
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/security/capability.conf
|
||||||
|
/%{_lib}/security/pam_cap.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user