Репозитории ALT
Группа :: Система/Настройка/Загрузка и инициализация
Пакет: SysVinit-usermode
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: SysVinit-usermode
Version: 1.5
Release: alt1
Serial: 1
Summary: Usermode bindings for reboot, halt and poweroff
License: GPL
Group: System/Configuration/Boot and Init
BuildArch: noarch
Source: reboot.pamd
Source1: reboot.apps
PreReq: coreutils
Requires: SysVinit >= 0:2.82-alt2
BuildPreReq: libpam0-devel
%description
This package contains usermode bindings for reboot, halt and poweroff.
%install
%__install -pD -m640 %SOURCE0 $RPM_BUILD_ROOT%_sysconfdir/pam.d/reboot
%__install -pD -m640 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/security/console.apps/reboot
%__mkdir_p $RPM_BUILD_ROOT%_bindir
%__ln_s %_libdir/consolehelper/helper $RPM_BUILD_ROOT%_bindir/reboot
for n in halt poweroff; do
%__ln_s reboot "$RPM_BUILD_ROOT%_bindir/$n"
%__ln_s reboot "$RPM_BUILD_ROOT%_sysconfdir/pam.d/$n"
%__install -pD -m640 %SOURCE1 "$RPM_BUILD_ROOT%_sysconfdir/security/console.apps/$n"
%__subst -p "s,reboot,$n," "$RPM_BUILD_ROOT%_sysconfdir/security/console.apps/$n"
done
%triggerpostun -- %name < 1:1.4-alt3
f=%_sysconfdir/pam.d/reboot
if [ ! -f "$f" ]; then
rm -f "$f"
if [ -f "$f".rpmsave ]; then
%__mv -f "$f".rpmsave "$f"
elif [ -f "$f".rpmnew ]; then
%__mv -f "$f".rpmnew "$f"
fi
fi
%files
%_bindir/*
%config(noreplace) %_sysconfdir/pam.d/reboot
%_sysconfdir/pam.d/halt
%_sysconfdir/pam.d/poweroff
%config(missingok,noreplace) %_sysconfdir/security/console.apps/halt
%config(missingok,noreplace) %_sysconfdir/security/console.apps/reboot
%config(missingok,noreplace) %_sysconfdir/security/console.apps/poweroff
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.5
Release: alt1
Serial: 1
Summary: Usermode bindings for reboot, halt and poweroff
License: GPL
Group: System/Configuration/Boot and Init
BuildArch: noarch
Source: reboot.pamd
Source1: reboot.apps
PreReq: coreutils
Requires: SysVinit >= 0:2.82-alt2
BuildPreReq: libpam0-devel
%description
This package contains usermode bindings for reboot, halt and poweroff.
%install
%__install -pD -m640 %SOURCE0 $RPM_BUILD_ROOT%_sysconfdir/pam.d/reboot
%__install -pD -m640 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/security/console.apps/reboot
%__mkdir_p $RPM_BUILD_ROOT%_bindir
%__ln_s %_libdir/consolehelper/helper $RPM_BUILD_ROOT%_bindir/reboot
for n in halt poweroff; do
%__ln_s reboot "$RPM_BUILD_ROOT%_bindir/$n"
%__ln_s reboot "$RPM_BUILD_ROOT%_sysconfdir/pam.d/$n"
%__install -pD -m640 %SOURCE1 "$RPM_BUILD_ROOT%_sysconfdir/security/console.apps/$n"
%__subst -p "s,reboot,$n," "$RPM_BUILD_ROOT%_sysconfdir/security/console.apps/$n"
done
%triggerpostun -- %name < 1:1.4-alt3
f=%_sysconfdir/pam.d/reboot
if [ ! -f "$f" ]; then
rm -f "$f"
if [ -f "$f".rpmsave ]; then
%__mv -f "$f".rpmsave "$f"
elif [ -f "$f".rpmnew ]; then
%__mv -f "$f".rpmnew "$f"
fi
fi
%files
%_bindir/*
%config(noreplace) %_sysconfdir/pam.d/reboot
%_sysconfdir/pam.d/halt
%_sysconfdir/pam.d/poweroff
%config(missingok,noreplace) %_sysconfdir/security/console.apps/halt
%config(missingok,noreplace) %_sysconfdir/security/console.apps/reboot
%config(missingok,noreplace) %_sysconfdir/security/console.apps/poweroff
%changelog
…
Полный changelog можно просмотреть здесь