forked from benschumacher/nss_tacplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nss_tacplus.spec
62 lines (46 loc) · 1.25 KB
/
nss_tacplus.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
59
60
61
#
# spec file for package 'nss_tacplus' (version '1.0.0')
#
# The following software is released as specified below.
# This spec file is released to the public domain.
# (c) Lincom Software Team
# Basic Information
Name: nss_tacplus
Version: 1.0.0
Release: 1%{?dist}
Summary: NSS Tacacs+ module
Group: System
License: GPL
URL: https://github.com/benschumacher/nss_tacplus
# Packager Information
Packager: NRB
# Build Information
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Source Information
Source0: 1.0.0.tar.gz
# Dependency Information
BuildRequires: gcc
Requires: pam_tacplus-devel
%description
NSS Tacacs+ module based on code produced by Ben Schumacher
%prep
%setup -q -a 0
touch tacplus.conf
%build
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/
mkdir -p $RPM_BUILD_ROOT/%{_lib}/
install -m 755 libnss_tacplus.so.2 \
$RPM_BUILD_ROOT/%{_lib}/
install -m 644 tacplus.conf $RPM_BUILD_ROOT/etc/tacplus.conf
chmod 755 $RPM_BUILD_ROOT/%{_lib}/*.so*
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(0755,root,root) /%{_lib}/*.so*
%attr(0644,root,root) %config(noreplace) /etc/tacplus.conf
%doc README.md
#%changelog