]> git.pld-linux.org Git - SPECS.git/blob - pam-pam_usb.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / pam-pam_usb.spec
1 %define         modulename pam_usb
2 Summary:        A PAM module that provides hardware authentication using USB Flash Drives
3 Name:           pam-%{modulename}
4 Version:        0.4.2
5 Release:        1
6 License:        LGPL
7 Group:          Base
8 Source0:        http://dl.sourceforge.net/pamusb/%{modulename}-%{version}.tar.gz
9 # Source0-md5:  2320b752dd0b030dfbb0a3935e7dc899
10 URL:            http://pamusb.org/
11 BuildRequires:  hal-devel
12 Requires:       hal
13 Requires:       pmount
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 A PAM module that provides hardware authentication using USB Flash Drives.
18
19 %prep
20 %setup -q -n %{modulename}-%{version}
21
22 %build
23 CFLAGS="%{rpmcflags} -DPUSB_CONF_FILE=\"/etc/security/pamusb.conf\"" \
24 %{__make} \
25         CC="%{__cc}"
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 %{__make} install \
30         DESTDIR=$RPM_BUILD_ROOT
31 rm -rf $RPM_BUILD_ROOT/%{_docdir}/pamusb
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %files
37 %defattr(644,root,root,755)
38 %doc ChangeLog doc/CONFIGURATION doc/FAQ doc/QUICKSTART doc/UPGRADING
39 %attr(755,root,root) /%{_lib}/security/pam_usb.so
40 %attr(755,root,root) %{_bindir}/pamusb-*
41 %config(noreplace) %verify(not md5 mtime size) /etc/pamusb.conf
42 %{_mandir}/man1/pamusb-*
This page took 0.399627 seconds and 3 git commands to generate.