Changes of Revision 2
[-] [+] | Changed | tac_plus.spec |
Added | tac_plus-4.4rc2-3.tgz ^ | |
[-] [+] | Added | tac_plus.init.suse ^ |
@@ -0,0 +1,88 @@ +#!/bin/sh +# +# tac_plus This shell script takes care of starting and stopping +# tac_plus (TACACS+ daemon). +# +# /etc/init.d/tac_plus +# +# and symbolic its link +# +# /usr/sbin/rctac_plus +# +### BEGIN INIT INFO +# Provides: tac_plus +# Required-Start: $network $remote_fs +# Required-Stop: $network $remote_fs +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Description: Start the TACACS+ daemon +### END INIT INFO + +TACPLUS_BIN=/usr/sbin/tac_plus +test -x $TACPLUS_BIN || exit 5 + +TACPLUS_SYSCONFIG=/etc/sysconfig/tac_plus +test -r $TACPLUS_SYSCONFIG || exit 6 +. $TACPLUS_SYSCONFIG + +test -r $TACPLUS_CONFIG || exit 7 +. $TACPLUS_CONFIG + +TACPLUS_PIDFILE=/var/run/tac_plus.pid + +. /etc/rc.status + +# Shell functions sourced from /etc/rc.status: +# rc_check check and set local and overall rc status +# rc_status check and set local and overall rc status +# rc_status -v ditto but be verbose in local rc status +# rc_status -v -r ditto and clear the local rc status +# rc_failed set local and overall rc status to failed +# rc_reset clear local rc status (overall remains) +# rc_exit exit appropriate to overall rc status + +# First reset status of this service +rc_reset + +# See how we were called. +case "$1" in + start) + # Start daemon. + echo -n "Starting tac_plus daemon" + startproc -f -p $TACPLUS_PIDFILE $TACPLUS_BIN $TACPLUS_OPTS + rc_status -v + ;; + stop) + # Stop daemons. + echo -n "Shutting down tac_plus daemon " + killproc -p $TACPLUS_PIDFILE -TERM $TACPLUS_BIN + echo + ;; + status) + # Status + echo -n "Checking for service tac_plus " + checkproc -p $TACPLUS_PIDFILE $TACPLUS_BIN + rc_status -v + ;; + restart) + $0 stop + $0 start + rc_status + ;; + + reload) + echo -n "Reload service tac_plus " + killproc -p $TACPLUS_PIDFILE -SIGUSR1 $TACPLUS_BIN + rc_status -v + ;; + test) + echo "Testing config of service tac_plus " + $TACPLUS_BIN -P -C $TACPLUS_CONFIG + rc_status -v + ;; + *) + echo "Usage: tac_plus {start|stop|status|restart|reload|test}" + exit 1 +esac + +exit 0 | ||
[-] [+] | Added | tac_plus.sysconfig ^ |
@@ -0,0 +1,6 @@ +## tac_plus daemon options +# TACPLUS_DEBUG: Default "0" +TACPLUS_DEBUG="0" + +# TACPLUS_OPTS: Default "-d $TACPLUS_DEBUG" +TACPLUS_OPTS="-d $TACPLUS_DEBUG" | ||
[-] [+] | Added | tac_plus45.spec.disabled ^ |
@@ -0,0 +1,74 @@ +%define pkgdate 04192008 +%define pkgver 4.5 +%define webver 1.4.3 + +%if 0%{?suse_version} +%define _webroot /srv/www +%endif + +%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} +%define _webroot /var/www +%endif + +Name: tac_plus +Version: %{pkgver}b3 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: glibc-devel libgcc gcc gcc-c++ mysql-devel +%if 0%{?suse_version} +BuildRequires: tcpd-devel +%endif + +%if 0%{?fedora_version} || 0%{?centos_version} +BuildRequires: tcp_wrappers +%endif + +Requires: mysql + +%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} + +%build +%__make + +%install +%__install -D -m 755 %{name} %{buildroot}/%{_bindir}/%{name} +%__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}* + + +%files +%{_bindir}/%{name} +%doc %{name}.sql + +%files webui +%{_webroot}/htdocs/tacacs + +%changelog +* Sun Jun 08 2008 Carsten Schoene <cs@linux-administrator.com> +- initial package |