1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
Name: SysVinit-usermode Version: 1.5 Release: alt2.0.mips1 Epoch: 1 Summary: Usermode bindings for reboot, halt and poweroff License: GPL Group: System/Configuration/Boot and Init BuildArch: noarch Packager: Dmitry V. Levin <ldv@altlinux.org> Source0: reboot.pamd Source1: reboot.apps PreReq: coreutils #Requires: SysVinit >= 0:2.82-alt2 Requires: SysVinit, sysvinit-utils BuildPreReq: libpam0-devel %description This package contains usermode bindings for reboot, halt and poweroff. %install install -pD -m640 %_sourcedir/reboot.pamd \ %buildroot%_sysconfdir/pam.d/reboot install -pD -m640 %_sourcedir/reboot.apps \ %buildroot%_sysconfdir/security/console.apps/reboot mkdir -p %buildroot%_bindir ln -s %_libexecdir/consolehelper/helper %buildroot%_bindir/reboot for n in halt poweroff; do ln -s reboot "%buildroot%_bindir/$n" ln -s reboot "%buildroot%_sysconfdir/pam.d/$n" install -pD -m640 %_sourcedir/reboot.apps \ "%buildroot%_sysconfdir/security/console.apps/$n" sed -i "s,reboot,$n," "%buildroot%_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 * Fri Jan 04 2019 Ivan A. Melnikov <iv@altlinux.org> 1:1.5-alt2.0.mips1 - Rebuild on mips * Fri Apr 25 2008 Dmitry V. Levin <ldv@altlinux.org> 1:1.5-alt2 - Replaced SysVinit conflict with sysvinit-utils requirement. * Thu Jan 12 2006 ALT QA Team Robot <qa-robot@altlinux.org> 1:1.5-alt1.1 - Rebuilt for new style PAM dependencies generated by rpm-build-4.0.4-alt55. * Tue Apr 19 2005 Dmitry V. Levin <ldv@altlinux.org> 1:1.5-alt1 - Disallow shutdown when logins are disabled (#5270). * Wed Nov 10 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.4-alt3 - Fixed package upgrade (#5473). * Sat Nov 06 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.4-alt1 - Removed bindings to shutdown(8). * Tue Aug 03 2004 Dmitry V. Levin <ldv@altlinux.org> 1:1.3-alt1 - Changed auth rules (fixes #3801). * Tue Sep 30 2003 Dmitry V. Levin <ldv@altlinux.org> 1:1.2-alt2 - Updated build dependencies. * Thu May 29 2003 Dmitry V. Levin <ldv@altlinux.org> 1:1.2-alt1 - PAM configuration policy enforcement. * Wed Apr 23 2003 Dmitry V. Levin <ldv@altlinux.org> 1:1.1-alt1 - Added auth requisite on pam_console.so * Wed Nov 14 2001 Dmitry V. Levin <ldv@alt-linux.org> 1:1.0-alt1 - Created from SysVinit-usermode subpackage.