pam-usermode.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19719 d184ca39d269
permissions -rw-r--r--
access control test #4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
     1
#
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     2
# spec file for package pam-usermode
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     3
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     5
# This file and all modifications and additions to the pristine
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     6
# package are under the same license as the package itself.
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
     7
#
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
     8
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
     9
Name:			pam-usermode
605
0ec3409e6414 2003-07-16 Mark McLoughlin <[email protected]>
markmc
parents: 601
diff changeset
    10
License:		GPL or BSD
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    11
Group:			System Environment/Base
1225
bacdca76c981 2003-10-09 Mark McLoughlin <[email protected]>
markmc
parents: 1195
diff changeset
    12
Version:		0.77.4
19643
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 5370
diff changeset
    13
Release:		40
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
    14
Distribution:		Java Desktop System
575
2b5c59a05848 2003-07-15 Mark McLoughlin <[email protected]>
markmc
parents: 552
diff changeset
    15
Vendor:			Sun Microsystems, Inc.
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    16
Summary:		A PAM module which gives extra permissions to users at the console
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    17
Source:			pam-usermode-%{version}.tar.bz2
636
b2276b682b30 2003-07-17 Mark McLoughlin <[email protected]>
markmc
parents: 605
diff changeset
    18
Patch1:                 pam-usermode-01-fixup-console-perms.diff
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    19
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    20
Docdir:			%{_defaultdocdir}/doc
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    21
Autoreqprov:		on
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    22
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    23
%define			_sbindir /sbin
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    24
%define			_sysconfdir /etc
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    25
%define			_libdir /lib
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    26
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    27
%define			glib_version 2.4.0
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    28
%define			pam_version 0.77
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    29
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    30
Requires:		glib2 >= %{glib_version}
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    31
Requires:		pam >= %{pam_version}
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    32
BuildRequires:		glib2-devel >= %{glib_version}
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    33
BuildRequires:		pam-devel >= %{pam_version}
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    34
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    35
%description
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    36
The pam_console module exists to change file permissions when users
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    37
log on at the console, and to change them back when they log out of
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    38
the console.  It also cooperates with the pam_listfile module to
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    39
make it possible to allow users who are at the console to run
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    40
various programs that would otherwise be restricted to root only.
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    41
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    42
%prep
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    43
%setup -q
636
b2276b682b30 2003-07-17 Mark McLoughlin <[email protected]>
markmc
parents: 605
diff changeset
    44
%patch1
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    45
4455
aea26bce3124 2004-11-05 Takao Fujiwara <[email protected]>
fujiwara
parents: 4409
diff changeset
    46
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    47
%build
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    48
%ifos linux
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    49
if [ -x /usr/bin/getconf ]; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    50
  CPUS=`getconf _NPROCESSORS_ONLN`
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    51
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    52
%else
3846
9ab79af72b15 2004-09-05 Laszlo Peter <[email protected]>
laca
parents: 3679
diff changeset
    53
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    54
%endif
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    55
if test "x$CPUS" = "x" -o $CPUS = 0; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    56
  CPUS=1
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    57
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    58
605
0ec3409e6414 2003-07-16 Mark McLoughlin <[email protected]>
markmc
parents: 601
diff changeset
    59
CFLAGS="$RPM_OPT_FLAGS"				\
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    60
./configure --prefix=%{_prefix}			\
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    61
	    --libdir=%{_libdir}			\
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    62
	    --sbindir=%{_sbindir}		\
815
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
    63
	    --mandir=%{_mandir}			\
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    64
	    --sysconfdir=%{_sysconfdir}
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    65
make -j $CPUS
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    66
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    67
%install
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    68
rm -rf $RPM_BUILD_ROOT
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    69
make install DESTDIR=$RPM_BUILD_ROOT
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    70
#Clean up unpackaged files
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    71
rm $RPM_BUILD_ROOT%{_libdir}/security/*.a
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    72
rm $RPM_BUILD_ROOT%{_libdir}/security/*.la
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    73
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    74
# Forcibly strip binaries
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    75
strip $RPM_BUILD_ROOT/sbin/*
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    76
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    77
%clean
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    78
rm -rf $RPM_BUILD_ROOT
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    79
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    80
%files
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    81
%defattr(-,root,root)
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    82
%dir /var/run/console
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    83
%dir %{_sysconfdir}/security/console.apps
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    84
%config(noreplace) %{_sysconfdir}/security/console.perms
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    85
%{_sbindir}/pam_console_apply
807
b504311c4bff 2003-07-25 Mark McLoughlin <[email protected]>
markmc
parents: 691
diff changeset
    86
%attr(4511,root,root) %{_sbindir}/pam_timestamp_check
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    87
%{_libdir}/security/pam_console.so
807
b504311c4bff 2003-07-25 Mark McLoughlin <[email protected]>
markmc
parents: 691
diff changeset
    88
%{_libdir}/security/pam_timestamp.so
815
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
    89
%{_mandir}/man*/*
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    90
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
    91
%changelog
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    92
* Wed Jul 07 2004 - [email protected]
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    93
- ported to rpm4
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3519
diff changeset
    94
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    95
* Wed Jul 07 2004 - [email protected]
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    96
- added "-j $CPUS" to make to speed up builds
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    97
2030
3e2ebaa0a878 Update Distro
mattk
parents: 1932
diff changeset
    98
* Thu Feb 26 2004 - <[email protected]>
3e2ebaa0a878 Update Distro
mattk
parents: 1932
diff changeset
    99
- Update Distro
3e2ebaa0a878 Update Distro
mattk
parents: 1932
diff changeset
   100
3e2ebaa0a878 Update Distro
mattk
parents: 1932
diff changeset
   101
* Thu Oct 09 2003 - <[email protected]>
1225
bacdca76c981 2003-10-09 Mark McLoughlin <[email protected]>
markmc
parents: 1195
diff changeset
   102
- Sync with Red Hat's pam-0.77-3
bacdca76c981 2003-10-09 Mark McLoughlin <[email protected]>
markmc
parents: 1195
diff changeset
   103
815
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
   104
* Sun Jul 27 2003 - <[email protected]>
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
   105
- Install man pages correctly
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
   106
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
   107
* Fri Jul 25 2003 - <[email protected]>
a3a3f6bd757b 2003-07-27 Mark McLoughlin <[email protected]>
markmc
parents: 807
diff changeset
   108
- Include pam_timestamp
807
b504311c4bff 2003-07-25 Mark McLoughlin <[email protected]>
markmc
parents: 691
diff changeset
   109
691
6ec6bea02974 2003-07-21 Mark McLoughlin <[email protected]>
markmc
parents: 636
diff changeset
   110
* Mon Jul 21 2003 - <[email protected]>
6ec6bea02974 2003-07-21 Mark McLoughlin <[email protected]>
markmc
parents: 636
diff changeset
   111
- fix patch so console devices actually match against something.
6ec6bea02974 2003-07-21 Mark McLoughlin <[email protected]>
markmc
parents: 636
diff changeset
   112
636
b2276b682b30 2003-07-17 Mark McLoughlin <[email protected]>
markmc
parents: 605
diff changeset
   113
* Thu Jul 17 2003 - <[email protected]>
b2276b682b30 2003-07-17 Mark McLoughlin <[email protected]>
markmc
parents: 605
diff changeset
   114
- disable changing device permissions. pam_devperms does that.
b2276b682b30 2003-07-17 Mark McLoughlin <[email protected]>
markmc
parents: 605
diff changeset
   115
- make /dev/tty* match as a console device
b2276b682b30 2003-07-17 Mark McLoughlin <[email protected]>
markmc
parents: 605
diff changeset
   116
545
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
   117
* Thu Jul 10 2003 - <[email protected]>
8adbca96c5ec 2003-07-11 Mark McLoughlin <[email protected]>
markmc
parents:
diff changeset
   118
- Let the crack begin