Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37410125
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: rpm-build-kernel-perms

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: rpm-build-kernel-perms
Version: 1.3
Release: alt1

Summary: RPM helper to fix permissions for kernel and modules
License: GPL-2.0-only
Group: Development/Other

Source: %name-%version.tar

Requires: mount
BuildArch: noarch

%description
RPM helper to make kernel and modules readable by user.

%prep
%setup

%install
install -D -p -m 0755 filetrigger %buildroot%_rpmlibdir/%name.filetrigger

%files
%_rpmlibdir/%name.filetrigger

%pre
# Only allow to install inside of hasher.
[ -d /.host -a -d /.in -a -d /.out ] || {
echo >&2 '%name is not allowed outside hasher environments'
exit 1
}

%post
# Fix permissions to boot the installed kernel
find /boot /lib/modules -type f,d \! -perm -444 -print0 | xargs -0r chmod a+rX
chmod a+rwx /lib/modules/*/
control mount unprivileged

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin