|
|
|
@ -6,7 +6,8 @@ License: GPLv3+ |
|
|
|
|
Group: Other |
|
|
|
|
Url: https://altlinux.org/Polkit |
|
|
|
|
BuildArch: noarch |
|
|
|
|
Requires: polkit gparted |
|
|
|
|
Requires: polkit |
|
|
|
|
Requires: gparted |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
%summary. |
|
|
|
@ -14,8 +15,8 @@ Requires: polkit gparted |
|
|
|
|
Правло для polkit, чтобы gparted можно было запустить только с паролем суперпользователя |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
mkdir -p %buildroot/%_sysconfdir/polkit-1/rules.d |
|
|
|
|
cat>%buildroot/%_sysconfdir/polkit-1/rules.d/25-%name.rules<<EOF |
|
|
|
|
mkdir -p %buildroot/%_datadir/polkit-1/rules.d |
|
|
|
|
cat>%buildroot/%_datadir/polkit-1/rules.d/org.gnome.gparted.rules<<EOF |
|
|
|
|
polkit.addAdminRule(function(action, subject) { |
|
|
|
|
if (action.id == "org.gnome.gparted") { |
|
|
|
|
return ["unix-group:root"]; |
|
|
|
@ -24,7 +25,7 @@ polkit.addAdminRule(function(action, subject) { |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
%files |
|
|
|
|
%_sysconfdir/polkit-1/rules.d/25-%name.rules |
|
|
|
|
%_datadir/polkit-1/rules.d/org.gnome.gparted.rules |
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
|
* Tue Dec 28 2021 Artem Proskurnev <tema@altlinux.org> 0.1-alt1 |
|
|
|
|