blob: 52103c5fc6c7f8649d0cb1f882fac779b16e1891 (
plain)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
%define _sbindir /sbin
%define _moduledir %{_libdir}/security
%define _secconfdir %{_sysconfdir}/security
%define _pamconfdir %{_sysconfdir}/pam.d
Name: pam
Version: 1.1.5
Release: 1
License: BSD and GPLv2+ and BSD with advertising
Summary: PAM
Url: http://www.linux-pam.org/
Group: System/Base
Source0: %{name}-%{version}.tar.bz2
Source1: system-auth
Source2: other
Source1001: %{name}.manifest
BuildRequires: bison
BuildRequires: db4-devel
BuildRequires: flex
BuildRequires: gcc
BuildRequires: net-tools
BuildRequires: zlib-devel
Requires(post): /sbin/ldconfig
Requires(post): /usr/bin/install
Requires(postun): /sbin/ldconfig
%description
PAM (Pluggable Authentication Modules) is a system security tool that
allows system administrators to set authentication policy without
having to recompile programs that handle authentication.
%package -n pam-modules-extra
Summary: Extra modules provided by PAM not used in the base system
Group: System/Base
Requires: pam = %{version}
%description -n pam-modules-extra
PAM (Pluggable Authentication Modules) is a system security tool that
allows system administrators to set authentication policy without
having to recompile programs that handle authentication. This package
contains extra modules for use by programs that are not used in the
default Tizen install.
%package devel
Summary: Files needed for developing PAM-aware applications and modules for PAM
Group: Development/Libraries
Requires: pam = %{version}
%description devel
PAM (Pluggable Authentication Modules) is a system security tool that
allows system administrators to set authentication policy without
having to recompile programs that handle authentication. This package
contains header files and static libraries used for building both
PAM-aware applications and modules for use with PAM.
%prep
%setup -q
libtoolize -f #--copy --force && aclocal && autoheader
autoreconf
%build
cp %{SOURCE1001} .
CFLAGS="-fPIC %{optflags} " ; export CFLAGS
%configure \
--libdir=%{_libdir} \
--includedir=%{_includedir}/security \
--enable-isadir=../..%{_moduledir} \
--disable-audit \
--disable-nls \
--with-db-uniquename=_pam \
--with-libiconv-prefix=/usr \
--enable-read-both-confs &&
make %{?_smp_flags} CFLAGS="$CFLAGS -lfl -lcrypt"
%install
%make_install
# RPM uses docs from source tree
rm -rf %{buildroot}%{_datadir}/doc/Linux-PAM
# Included in setup package
rm -f %{buildroot}%{_sysconfdir}/environment
for phase in auth acct passwd session ; do
ln -sf pam_unix.so %{buildroot}%{_moduledir}/pam_unix_${phase}.so
done
# Install default pam configuration files
install -d -m 0755 %{buildroot}%{_pamconfdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_pamconfdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_pamconfdir}/
%post
/sbin/ldconfig
if [ ! -a /var/log/faillog ] ; then
/usr/bin/install -m 600 /dev/null /var/log/faillog
fi
if [ ! -a /var/log/tallylog ] ; then
/usr/bin/install -m 600 /dev/null /var/log/tallylog
fi
%postun -p /sbin/ldconfig
%files
%manifest pam.manifest
%doc Copyright
%{_sbindir}/pam_tally
%{_sbindir}/pam_tally2
%attr(4755,root,root) %{_sbindir}/pam_timestamp_check
%attr(4755,root,root) %{_sbindir}/unix_chkpwd
%attr(0700,root,root) %{_sbindir}/unix_update
%attr(0755,root,root) %{_sbindir}/mkhomedir_helper
%{_sysconfdir}/security/limits.conf
%{_libdir}/libpam.so.*
%{_libdir}/libpam_misc.so.*
%{_libdir}/libpamc.so.*
%dir %{_moduledir}
%{_moduledir}/pam_deny.so
%{_moduledir}/pam_env.so
%{_moduledir}/pam_keyinit.so
%{_moduledir}/pam_limits.so
%{_moduledir}/pam_loginuid.so
%{_moduledir}/pam_namespace.so
%{_moduledir}/pam_nologin.so
%{_moduledir}/pam_permit.so
%{_moduledir}/pam_rootok.so
%{_moduledir}/pam_securetty.so
%{_moduledir}/pam_succeed_if.so
%{_moduledir}/pam_unix.so
%{_moduledir}/pam_wheel.so
%{_moduledir}/pam_xauth.so
%{_moduledir}/pam_filter
%dir %{_secconfdir}
%config(noreplace) %{_secconfdir}/access.conf
%config(noreplace) %{_secconfdir}/group.conf
%config(noreplace) %{_secconfdir}/namespace.conf
%dir %{_secconfdir}/namespace.d
%attr(755,root,root) %config(noreplace) %{_secconfdir}/namespace.init
%config(noreplace) %{_secconfdir}/pam_env.conf
%config(noreplace) %{_secconfdir}/time.conf
%exclude %{_localstatedir}/run/sepermit
%dir %{_pamconfdir}
%{_pamconfdir}/system-auth
%{_pamconfdir}/other
%files -n pam-modules-extra
%manifest pam.manifest
%{_moduledir}/pam_access.so
%{_moduledir}/pam_debug.so
%{_moduledir}/pam_echo.so
%{_moduledir}/pam_exec.so
%{_moduledir}/pam_faildelay.so
%{_moduledir}/pam_filter.so
%{_moduledir}/pam_ftp.so
%{_moduledir}/pam_group.so
%{_moduledir}/pam_issue.so
%{_moduledir}/pam_lastlog.so
%{_moduledir}/pam_listfile.so
%{_moduledir}/pam_localuser.so
%{_moduledir}/pam_mail.so
%{_moduledir}/pam_mkhomedir.so
%{_moduledir}/pam_motd.so
%{_moduledir}/pam_pwhistory.so
%{_moduledir}/pam_rhosts.so
%{_moduledir}/pam_shells.so
%{_moduledir}/pam_stress.so
%{_moduledir}/pam_tally.so
%{_moduledir}/pam_time.so
%{_moduledir}/pam_timestamp.so
%{_moduledir}/pam_umask.so
%{_moduledir}/pam_unix_acct.so
%{_moduledir}/pam_unix_auth.so
%{_moduledir}/pam_unix_passwd.so
%{_moduledir}/pam_unix_session.so
%{_moduledir}/pam_warn.so
%files devel
%manifest pam.manifest
%{_includedir}/security/*
%doc %{_mandir}/man3/*
%doc %{_mandir}/man5/*
%doc %{_mandir}/man8/*
%{_libdir}/libpam.so
%{_libdir}/libpam_misc.so
%{_libdir}/libpamc.so
%{_libdir}/security/pam_tally2.so
|