-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpam_rbld.spec
58 lines (46 loc) · 1.45 KB
/
pam_rbld.spec
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
Name: pam_rbld
Summary: A PAM (Pluggable Authentication Module) that is able to interact with RBLD
Group: System Environment/Base
Version: 1.0
Release: 1%{?dist}
Distribution: CentOS6
License: GPLv2
Source0: %{name}-%{version}.tar.gz
URL: https://github.com/bluehost/pam_rbld
Packager: %{packager}
Vendor: %{vendor}
BuildRequires: pam-devel
Requires: pam
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A PAM (Pluggable Authentication Module) that is able to interact with RBLD.
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS
make
%install
rm -rf %{buildroot}
make -C $RPM_BUILD_DIR/%{name}-%{version} \
DESTDIR=$RPM_BUILD_ROOT \
install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pam_rbld
cp -a COPYING $RPM_BUILD_ROOT/%{_datadir}/pam_rbld/COPYING
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0755, root, root, -)
/lib64/security/pam_rbld.so
%{_datadir}/pam_rbld/COPYING
%changelog
* Tue Jan 21 2014 Erick Cantwell <[email protected]> 1.0
- Changed code so that snprintf size for buffer is dynamic
- instead of hardcoded to 256.
- Added GPLv2 License
- Since this has been in production for a long time, bumping
- release to 1.0
* Wed Sep 25 2013 Erick Cantwell <[email protected]> 0.5.1
- Changed logging so that list queried shows in the AUTH log
* Thu Sep 12 2013 Erick Cantwell <[email protected]> 0.5
- Initial RPM build