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