Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
tac_plus
> tac_plus.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File tac_plus.spec of Package tac_plus (Revision 3)
Currently displaying revision
3
,
show latest
%define pkgdate rc2-3 %define pkgver 4.4 %define webver 1.4.3 #tac_plus-4.4rc2-3.tgz %if 0%{?suse_version} %define _webroot /srv/www %define _webusr wwwrun %define _webgrp www %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %define _webroot /var/www %define _webusr apache %define _webgrp apache %endif Name: tac_plus Version: %{pkgver} Release: 1 License: GPL Group: System Summary: tac_plus daemon URL: http://www.networkforums.net/ Source0: %{name}-%{version}%{pkgdate}.tgz Source1: tacacs_webui_v%{webver}.tar.gz Source2: %{name}.init.suse Source3: %{name}.sysconfig Patch0: %{name}-configure.in.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc-devel libgcc gcc gcc-c++ mysql-devel postgresql-devel db-devel pam-devel %if 0%{?suse_version} BuildRequires: tcpd-devel openldap2-devel %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} BuildRequires: tcp_wrappers openldap-devel %endif Requires: mysql postgresql %description Terminal access controller access control system (TACACS) is a remote authentication protocol that is used to communicate with an authentication server commonly used in UNIX networks. TACACS allows a remote access server to communicate with an authentication server in order to determine if the user has access to the network. %package webui Group: System Summary: tac_plus webui Requires: php tac_plus %description webui This is a webinterface for the tac_plus daemon %prep %setup -q -n %{name}-%{pkgver} %patch0 autoreconf -fi %configure \ --with-pam \ --with-ldap \ --with-db \ --with-mysql \ --with-pgsql \ --enable-maxsess \ --with-libwrap \ --enable-finger \ %if 0%{?suse_version} --with-pgsql-prefix=%{_prefix} \ --with-pgsql-lib-dir=%{_libdir} \ --with-pgsql-include-dir=%{_includedir}/pgsql %endif %build %__make %makeinstall %__install -d %{buildroot}%{_sysconfdir}/{tacacs,logrotate.d,pam.d,init.d} %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %__install -c -m 0755 tac_plus.init %{buildroot}%{_sysconfdir}/init.d/tac_plus %endif %if 0%{?suse_version} %__install -c -m 0755 %{S:2} %{buildroot}%{_sysconfdir}/init.d/tac_plus %__install -D -m 0755 %{S:3} %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %endif %__install -b -c -m 0644 tac_plus.pam %{buildroot}%{_sysconfdir}/pam.d/tacacs %__install -b -c -m 0644 tac_plus.rotate %{buildroot}%{_sysconfdir}/logrotate.d/tac_plus %__install -m 755 -d %{buildroot}/%{_webroot}/htdocs/tacacs/ %__tar -xzf %{S:1} -C %{buildroot}/%{_webroot}/htdocs/tacacs/ %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* %post %if 0%{?suse_version} %{fillup_and_insserv tac_plus} %else /sbin/chkconfig --add tac_plus %endif %postun %if 0%{?suse_version} %restart_on_update tac_plus %{insserv_cleanup} %endif %preun %if 0%{?suse_version} %stop_on_removal tac_plus %else if [ $1 = 0 ]; then %{_sysconfdir}/init.d/tac_plus stop /sbin/chkconfig --del tac_plus fi %endif %files %defattr(-, root, root) %config %{_sysconfdir}/tacacs/tac_plus.cfg %config %{_sysconfdir}/pam.d/tacacs %config %{_sysconfdir}/logrotate.d/tac_plus %doc users_guide CHANGES convert.pl %doc README.LDAP README.PAM tac_plus.sql %dir %{_sysconfdir}/tacacs %attr(750,root,root) %{_sysconfdir}/init.d/tac_plus %attr(750,root,root) %{_bindir}/generate_passwd %attr(750,root,root) %{_sbindir}/tac_plus %attr(644,root,root) %{_mandir}/man1/* %if 0%{?suse_version} %{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %endif %files webui %attr(-,%{_webusr},%{_webgrp}) {_webroot}/htdocs/tacacs %changelog * Sun Jun 08 2008 Carsten Schoene <cs@linux-administrator.com> - initial package