[tac_plus] Re: rpm spec for your version of tacacs
Nathan Schrenk
nathan at schrenk.org
Sun Nov 23 23:06:21 UTC 2008
On 11/21/08, pritam <pritam at subisu.net.np> wrote:
> Hi,
>
> I am newbie in making rpm spec file.
>
> How can I get the spec file to make the rpm of yours version of tacacs.
>
> Regards,
>
>
> Pritam
Below is the spec file I use. Hope this helps,
Nathan
--- begin tacacs+.spec ---
%define major_ver 4.0.4.15
Summary: A TACACS+ server from http://www.shrubbery.net/tac_plus/
Name: tacacs+
Version: %{major_ver}
Release: %{?release:%{release}}%{!?release:eng}
BuildRoot: %{_tmppath}/%{name}-root
Prefix: %{_prefix}
Epoch: 1
License: BSD
Group: System Environment/Daemons
URL: http://www.shrubbery.net/tac_plus/
Source0: ftp://ftp.shrubbery.net/pub/tac_plus/tacacs+-F%{major_ver}.tar.gz
Patch1: tacacs+-F4.0.4.15-foreground.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: /usr/include/tcpd.h
BuildRequires: perl
BuildRequires: pam-devel
Requires: pam
%description
A TACACS+ daemon based on Cisco's publicly available TACACS+ "developer's kit".
%prep
%setup -q -n %{name}-F%{major_ver}
%patch1 -p0 -b .foreground
%build
%configure --enable-uenable --enable-maxsess
%{?a4_configure:exit 0}
make
%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall
rm ${RPM_BUILD_ROOT}/usr/share/man/man3/regexp.3
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root,-)
%{_prefix}/bin/tac_pwd
%{_prefix}/bin/tac_plus
%{_mandir}/man5/tac_plus.conf.5.gz
%{_mandir}/man8/tac_pwd.8.gz
%{_mandir}/man8/tac_plus.8.gz
%{_prefix}/share/tacacs+/users_guide
%{_prefix}/share/tacacs+/tac_convert
--- end tacacs+.spec ---
More information about the tac_plus
mailing list