correct fork error handling
[vlock.git] / vlock.spec
blobf351f301f86a9ac4bc8858b9f824126a50fd5adc
1 Summary: locks one or more virtual consoles
2 Name: vlock
3 Version: 1.3
4 Release: 1
5 Copyright: GPL
6 Group: Utilities/Console
7 Source: ftp://tsx-11.mit.edu:/pub/linux/sources/usr.bin/vlock-1.3.tar.gz
8 Requires: pam >= 0.59
9 BuildRoot: /tmp/vlock
11 %description
12 vlock either locks the current terminal (which may be any kind of
13 terminal, local or remote), or locks the entire virtual console
14 system, completely disabling all console access. vlock gives up
15 these locks when either the password of the user who started vlock
16 or the root password is typed.
18 %changelog
19 * Wed Jan 13 1999 Michael Johnson <johnsonm@redhat.com>
20 - released 1.3
22 * Thu Mar 12 1998 Michael K. Johnson <johnsonm@redhat.com>
23 - Does not create a DoS attack if pty is closed (not applicable
24 to use on a VC)
26 * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
27 - Moved to new pam conventions.
28 - Use pam according to spec, rather than abusing it as before.
29 - Updated to version 1.1.
30 - BuildRoot
32 * Mon Jul 21 1997 Erik Troan <ewt@redhat.com>
33 - built against glibc
35 * Mon Mar 03 1997 Michael K. Johnson <johnsonm@redhat.com>
36 - moved from pam.conf to pam.d
38 %prep
39 %setup
41 %build
42 make RPM_OPT_FLAGS="${RPM_OPT_FLAGS}"
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 mkdir -p $RPM_BUILD_ROOT/usr/bin
47 mkdir -p $RPM_BUILD_ROOT/usr/man/man1
48 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
49 install -m 755 -o 0 -g 0 -s vlock $RPM_BUILD_ROOT/usr/bin
50 install -m 644 -o 0 -g 0 vlock.1 $RPM_BUILD_ROOT/usr/man/man1
51 install -m 644 -o 0 -g 0 vlock.pamd $RPM_BUILD_ROOT/etc/pam.d/vlock
53 %clean
54 rm -rf $RPM_BUILD_ROOT
56 %files
57 %config /etc/pam.d/vlock
58 /usr/bin/vlock
59 /usr/man/man1/vlock.1