545
|
1 |
#
|
601
|
2 |
# Copyright (c) Sun Microsystems, Inc.
|
545
|
3 |
#
|
|
4 |
|
|
5 |
Name: pam-usermode
|
605
|
6 |
License: GPL or BSD
|
545
|
7 |
Group: System Environment/Base
|
1225
|
8 |
Version: 0.77.4
|
4276
|
9 |
Release: 21
|
2030
|
10 |
Distribution: Cinnabar
|
575
|
11 |
Vendor: Sun Microsystems, Inc.
|
545
|
12 |
Summary: A PAM module which gives extra permissions to users at the console
|
|
13 |
Source: pam-usermode-%{version}.tar.bz2
|
636
|
14 |
Patch1: pam-usermode-01-fixup-console-perms.diff
|
545
|
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
16 |
Docdir: %{_defaultdocdir}/doc
|
|
17 |
Autoreqprov: on
|
|
18 |
|
|
19 |
%define _sbindir /sbin
|
|
20 |
%define _sysconfdir /etc
|
|
21 |
%define _libdir /lib
|
|
22 |
|
3628
|
23 |
%define glib_version 2.4.0
|
|
24 |
%define pam_version 0.77
|
545
|
25 |
|
|
26 |
Requires: glib2 >= %{glib_version}
|
|
27 |
Requires: pam >= %{pam_version}
|
|
28 |
BuildRequires: glib2-devel >= %{glib_version}
|
|
29 |
BuildRequires: pam-devel >= %{pam_version}
|
|
30 |
|
|
31 |
%description
|
|
32 |
The pam_console module exists to change file permissions when users
|
|
33 |
log on at the console, and to change them back when they log out of
|
|
34 |
the console. It also cooperates with the pam_listfile module to
|
|
35 |
make it possible to allow users who are at the console to run
|
|
36 |
various programs that would otherwise be restricted to root only.
|
|
37 |
|
|
38 |
%prep
|
|
39 |
%setup -q
|
636
|
40 |
%patch1
|
545
|
41 |
|
|
42 |
%build
|
3263
|
43 |
%ifos linux
|
|
44 |
if [ -x /usr/bin/getconf ]; then
|
|
45 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
46 |
fi
|
|
47 |
%else
|
3846
|
48 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
3263
|
49 |
%endif
|
|
50 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
51 |
CPUS=1
|
|
52 |
fi
|
|
53 |
|
605
|
54 |
CFLAGS="$RPM_OPT_FLAGS" \
|
545
|
55 |
./configure --prefix=%{_prefix} \
|
|
56 |
--libdir=%{_libdir} \
|
|
57 |
--sbindir=%{_sbindir} \
|
815
|
58 |
--mandir=%{_mandir} \
|
545
|
59 |
--sysconfdir=%{_sysconfdir}
|
3263
|
60 |
make -j $CPUS
|
545
|
61 |
|
|
62 |
%install
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
|
64 |
make install DESTDIR=$RPM_BUILD_ROOT
|
3628
|
65 |
#Clean up unpackaged files
|
|
66 |
rm $RPM_BUILD_ROOT%{_libdir}/security/*.a
|
|
67 |
rm $RPM_BUILD_ROOT%{_libdir}/security/*.la
|
545
|
68 |
|
|
69 |
# Forcibly strip binaries
|
|
70 |
strip $RPM_BUILD_ROOT/sbin/*
|
|
71 |
|
|
72 |
%clean
|
|
73 |
rm -rf $RPM_BUILD_ROOT
|
|
74 |
|
|
75 |
%files
|
|
76 |
%defattr(-,root,root)
|
|
77 |
%dir /var/run/console
|
|
78 |
%dir %{_sysconfdir}/security/console.apps
|
|
79 |
%config(noreplace) %{_sysconfdir}/security/console.perms
|
|
80 |
%{_sbindir}/pam_console_apply
|
807
|
81 |
%attr(4511,root,root) %{_sbindir}/pam_timestamp_check
|
545
|
82 |
%{_libdir}/security/pam_console.so
|
807
|
83 |
%{_libdir}/security/pam_timestamp.so
|
815
|
84 |
%{_mandir}/man*/*
|
545
|
85 |
|
|
86 |
%changelog
|
3628
|
87 |
* Wed Jul 07 2004 - [email protected]
|
|
88 |
- ported to rpm4
|
|
89 |
|
3263
|
90 |
* Wed Jul 07 2004 - [email protected]
|
|
91 |
- added "-j $CPUS" to make to speed up builds
|
|
92 |
|
2030
|
93 |
* Thu Feb 26 2004 - <[email protected]>
|
|
94 |
- Update Distro
|
|
95 |
|
|
96 |
* Thu Oct 09 2003 - <[email protected]>
|
1225
|
97 |
- Sync with Red Hat's pam-0.77-3
|
|
98 |
|
815
|
99 |
* Sun Jul 27 2003 - <[email protected]>
|
|
100 |
- Install man pages correctly
|
|
101 |
|
|
102 |
* Fri Jul 25 2003 - <[email protected]>
|
|
103 |
- Include pam_timestamp
|
807
|
104 |
|
691
|
105 |
* Mon Jul 21 2003 - <[email protected]>
|
|
106 |
- fix patch so console devices actually match against something.
|
|
107 |
|
636
|
108 |
* Thu Jul 17 2003 - <[email protected]>
|
|
109 |
- disable changing device permissions. pam_devperms does that.
|
|
110 |
- make /dev/tty* match as a console device
|
|
111 |
|
545
|
112 |
* Thu Jul 10 2003 - <[email protected]>
|
|
113 |
- Let the crack begin
|