Accepting request 1144042 from home:adkorte:branches:Virtualization
- Use sysuser-tools to generate firejail group OBS-URL: https://build.opensuse.org/request/show/1144042 OBS-URL: https://build.opensuse.org/package/show/Virtualization/firejail?expand=0&rev=51
This commit is contained in:
parent
4bea3e4122
commit
e4644503bf
2
firejail-group.conf
Normal file
2
firejail-group.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#Type Name ID
|
||||||
|
g firejail -
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 4 19:16:55 UTC 2024 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
- Use sysuser-tools to generate firejail group
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 9 14:43:39 UTC 2023 - Sebastian Wagner <sebix@sebix.at>
|
Sun Apr 9 14:43:39 UTC 2023 - Sebastian Wagner <sebix@sebix.at>
|
||||||
|
|
||||||
|
@ -27,12 +27,14 @@ Source0: https://github.com/netblue30/%{name}/releases/download/%{version
|
|||||||
Source1: https://github.com/netblue30/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
|
Source1: https://github.com/netblue30/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
|
||||||
# https://firejail.wordpress.com/download-2/
|
# https://firejail.wordpress.com/download-2/
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
|
Source3: %{name}-group.conf
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libapparmor-devel
|
BuildRequires: libapparmor-devel
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
Requires(post): permissions
|
Requires(post): permissions
|
||||||
Requires(pre): shadow
|
%sysusers_requires
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Firejail is a SUID sandbox program that reduces the risk of security
|
Firejail is a SUID sandbox program that reduces the risk of security
|
||||||
@ -49,6 +51,7 @@ Group: System/Shells
|
|||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: bash-completion
|
Requires: bash-completion
|
||||||
Supplements: (%{name} and bash-completion)
|
Supplements: (%{name} and bash-completion)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description bash-completion
|
%description bash-completion
|
||||||
Optional dependency offering bash completion for firejail
|
Optional dependency offering bash completion for firejail
|
||||||
@ -59,28 +62,29 @@ Group: System/Shells
|
|||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: zsh
|
Requires: zsh
|
||||||
Supplements: (%{name} and zsh)
|
Supplements: (%{name} and zsh)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description zsh-completion
|
%description zsh-completion
|
||||||
Optional dependency offering zsh completion for firejail
|
Optional dependency offering zsh completion for firejail
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup
|
||||||
sed -i '1s/^#!\/usr\/bin\/env /#!\/usr\/bin\//' contrib/fj-mkdeb.py contrib/fjclip.py contrib/fjdisplay.py contrib/fjresize.py contrib/sort.py contrib/fix_private-bin.py contrib/jail_prober.py
|
sed -i '1s/^#!\/usr\/bin\/env /#!\/usr\/bin\//' contrib/fj-mkdeb.py contrib/fjclip.py contrib/fjdisplay.py contrib/fjresize.py contrib/sort.py contrib/fix_private-bin.py contrib/jail_prober.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%sysusers_generate_pre %{SOURCE3} %{name} %{name}-group.conf
|
||||||
%configure --docdir=%{_docdir}/%{name} \
|
%configure --docdir=%{_docdir}/%{name} \
|
||||||
--enable-apparmor
|
--enable-apparmor
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%pre
|
|
||||||
getent group firejail >/dev/null || groupadd -r firejail
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}-group.conf
|
||||||
rm %{buildroot}%{_docdir}/firejail/COPYING
|
rm %{buildroot}%{_docdir}/firejail/COPYING
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
|
%pre -f %{name}.pre
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%set_permissions %{_bindir}/firejail
|
%set_permissions %{_bindir}/firejail
|
||||||
|
|
||||||
@ -115,6 +119,7 @@ rm %{buildroot}%{_docdir}/firejail/COPYING
|
|||||||
%dir %{_datadir}/gtksourceview-5/language-specs
|
%dir %{_datadir}/gtksourceview-5/language-specs
|
||||||
%{_datadir}/gtksourceview-5/language-specs/firejail-profile.lang
|
%{_datadir}/gtksourceview-5/language-specs/firejail-profile.lang
|
||||||
%config /etc/apparmor.d/abstractions/base.d/firejail-base
|
%config /etc/apparmor.d/abstractions/base.d/firejail-base
|
||||||
|
%{_sysusersdir}/%{name}-group.conf
|
||||||
|
|
||||||
%files bash-completion
|
%files bash-completion
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Loading…
Reference in New Issue
Block a user