Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37726323
en ru br
Репозитории ALT
S:1.5-alt2
5.1: 1.5-alt2
4.1: 1.5-alt2
4.0: 1.5-alt1.1
3.0: 1.5-alt1
www.altlinux.org/Changes

Группа :: Система/Настройка/Загрузка и инициализация
Пакет: 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 можно просмотреть здесь

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