]> git.pld-linux.org Git - SPECS.git/blob - pam-pam_sql.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / pam-pam_sql.spec
1 %define         modulename pam_sql
2 Summary:        PAM module for authenticating users against SQL database
3 Summary(pl.UTF-8):      Moduł PAM uwierzytelniający użytkowników względem bazy danych
4 Name:           pam-%{modulename}
5 Version:        0.7.2
6 Release:        7
7 Epoch:          0
8 License:        GPL
9 Group:          Base
10 Source0:        http://www.duluoz.net/%{modulename}/pkgs/%{modulename}-%{version}.tar.gz
11 # Source0-md5:  50b01818609a8d8d3bdb2848f3083502
12 Patch0:         %{name}-postgresql-7.1.patch
13 Patch1:         %{name}-sqlinjection.patch
14 URL:            http://www.duluoz.net/pam_sql/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  pam-devel
18 BuildRequires:  postgresql-devel >= 7.2
19 Obsoletes:      pam_sql
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 pam_sql aims to provide a backend neutral means of authenticating
24 users against an SQL database. The author uses PostgreSQL, but there's
25 also some MySQL code leftover from the pam_mysql project (whence this
26 project evolved) that I'm quite sure doesn't work.
27
28 %description -l pl.UTF-8
29 pam_sql to moduł PAM mający na celu uwierzytelnianie użytkowników
30 względem bazy SQL niezależnie od używanego backendu. Autor używa
31 PostgreSQL-a, ale obecny jest także kod dla MySQL-a z projektu
32 pam_mysql (który prawdopodobnie na razie nie działa).
33
34 %prep
35 %setup -q -n %{modulename}-%{version}
36 %patch0 -p1
37 %patch1 -p1
38
39 %build
40 cp -f /usr/share/automake/config.* tools
41 %{__autoconf}
42 %configure \
43         --with-postgres
44
45 %{__make} \
46         CFLAGS="%{rpmcflags} -DUSE_POSTGRES -DHAVE_INLINE"
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 install -D pam_sql $RPM_BUILD_ROOT/%{_lib}/security/pam_sql.so
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README TODO ChangeLog
59 %attr(755,root,root) /%{_lib}/security/pam_sql.so
This page took 0.496119 seconds and 3 git commands to generate.