diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-02 19:07:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-02 19:18:42 +0200 |
commit | ceb7d3cb30a23b4b148bc71491b3817e9e6e2778 (patch) | |
tree | 160ebe6294acb6a790790098b3861e58c0ca9ae4 /pam_tacplus.spec.in | |
download | libpam-tacplus-ceb7d3cb30a23b4b148bc71491b3817e9e6e2778.tar.gz libpam-tacplus-ceb7d3cb30a23b4b148bc71491b3817e9e6e2778.zip |
Initial import of libpam-tacplus (1.4.3-cl3u4)
Diffstat (limited to 'pam_tacplus.spec.in')
-rw-r--r-- | pam_tacplus.spec.in | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/pam_tacplus.spec.in b/pam_tacplus.spec.in new file mode 100644 index 0000000..f894992 --- /dev/null +++ b/pam_tacplus.spec.in @@ -0,0 +1,90 @@ +# +# spec file for package 'name' (version 'v') +# +# The following software is released as specified below. +# This spec file is released to the public domain. +# (c) Lincom Software Team + +# Basic Information +Name: pam_tacplus +Version: @VERSION@ +Release: 1%{?dist} +Summary: PAM Tacacs+ module +Group: System +License: GPL +URL: http://tacplus.sourceforge.net/ + +# Packager Information +Packager: NRB + +# Build Information +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# Source Information +Source0: https://github.com/jeroennijhof/pam_tacplus/archive/@VERSION@.tar.gz + +# Dependency Information +BuildRequires: gcc binutils pam-devel +Requires: pam + +%description +PAM Tacacs+ module based on code produced by Pawel Krawczyk <pawel.krawczyk@hush.com> and Jeroen Nijhof <jeroen@jeroennijhof.nl> + +%package devel +Group: Development/Libraries +Summary: Development files for pam_tacplus +Requires: pam_tacplus + +%description devel +Development files for pam_tacplus. + +%prep +%setup -q -a 0 + +%build +autoreconf -i +./configure +make + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/etc/pam.d +mkdir -p $RPM_BUILD_ROOT/%{_lib}/security + +install -m 755 .libs/pam_tacplus.so \ + $RPM_BUILD_ROOT/%{_lib}/security/ +install -m 644 sample.pam $RPM_BUILD_ROOT/etc/pam.d/tacacs + +chmod 755 $RPM_BUILD_ROOT/%{_lib}/security/*.so* + +make install DESTDIR=$RPM_BUILD_ROOT +chmod 755 $RPM_BUILD_ROOT/usr/local/include/libtac + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%attr(0755,root,root) /%{_lib}/security/*.so +%attr(0755,root,root) /usr/local/lib/*.so.* +%attr(0644,root,root) %config(noreplace) /etc/pam.d/tacacs +%doc AUTHORS COPYING README.md ChangeLog + +%files devel +%defattr(-,root,root,-) +%attr(755,root,root) /usr/local/bin/* +%attr(644,root,root) /usr/local/include/* +%attr(755,root,root) /usr/local/lib/*.so +%attr(755,root,root) /usr/local/lib/*.la +%attr(755,root,root) /usr/local/lib/security/* +%attr(644,root,root) /usr/local/lib/pkgconfig/* +%doc /usr/local/share/doc/* + +%changelog +* Thu Feb 2 2012 - Jeroen <jeroen@jeroennijhof.nl> +- Path changed for pam_tacplus.so +- Not using static library path anymore + +* Mon Mar 17 2010 - beNDon <benoit.donneaux@gmail.com> +- Autotools aware +- spec file added for RPM building |