Logoj0ke.net Open Build Service > Projects > server:monitoring > tac_plus > tac_plus44.spec.disabled
Sign Up | Log In

File tac_plus44.spec.disabled of Package tac_plus

 
1
%define     pkgdate rc2-3
2
%define     pkgver  4.4
3
%define     webver  1.4.3
4
#tac_plus-4.4rc2-3.tgz
5
%if 0%{?suse_version}
6
%define     _webroot    /srv/www
7
%define     _webusr     wwwrun
8
%define     _webgrp     www
9
%endif
10
11
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
12
%define     _webroot    /var/www
13
%define     _webusr     apache
14
%define     _webgrp     apache
15
%endif
16
17
Name:       tac_plus
18
Version:    %{pkgver}
19
Release:    1
20
License:    GPL
21
Group:      System
22
Summary:    tac_plus daemon
23
URL:        http://www.networkforums.net/
24
Source0:    %{name}-%{version}%{pkgdate}.tgz
25
Source1:    tacacs_webui_v%{webver}.tar.gz
26
Source2:    %{name}.init.suse
27
Source3:    %{name}.sysconfig
28
Patch0:     %{name}-configure.in.patch
29
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
30
31
BuildRequires:  glibc-devel libgcc gcc gcc-c++ mysql-devel pam-devel db-devel
32
33
%if 0%{?suse_version}
34
BuildRequires:  tcpd-devel openldap2-devel
35
%endif
36
37
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
38
BuildRequires:  tcp_wrappers openldap-devel
39
%endif
40
41
Requires:   mysql postgresql
42
43
%description
44
Terminal access controller access control system (TACACS) is a 
45
remote authentication protocol that is used to communicate with an 
46
authentication server commonly used in UNIX networks. 
47
TACACS allows a remote access server to communicate with an 
48
authentication server in order to determine if the user has access to the network.
49
50
51
%package webui
52
Group:      System
53
Summary:    tac_plus webui
54
Requires:   php tac_plus
55
%description webui
56
This is a webinterface for the tac_plus daemon
57
58
%prep
59
%setup -q -n %{name}-%{pkgver}
60
%patch0
61
autoreconf -fi
62
%configure \
63
 --with-pam \
64
 --with-ldap \
65
 --with-db \
66
 --with-mysql \
67
 --enable-maxsess \
68
 --with-libwrap \
69
 --enable-finger 
70
71
72
%build
73
%__make
74
75
%makeinstall
76
%__install -d %{buildroot}%{_sysconfdir}/{tacacs,logrotate.d,pam.d,init.d}
77
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
78
%__install    -c -m 0755 tac_plus.init   %{buildroot}%{_sysconfdir}/init.d/tac_plus
79
%endif
80
%if 0%{?suse_version}
81
%__install    -c -m 0755 %{S:2}      %{buildroot}%{_sysconfdir}/init.d/tac_plus
82
%__install    -D -m 0755 %{S:3}      %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
83
%endif
84
85
%__install -b -c -m 0644 tac_plus.pam    %{buildroot}%{_sysconfdir}/pam.d/tacacs
86
%__install -b -c -m 0644 tac_plus.rotate %{buildroot}%{_sysconfdir}/logrotate.d/tac_plus
87
88
%__install -m 755 -d %{buildroot}/%{_webroot}/htdocs/tacacs/
89
%__tar -xzf %{S:1} -C %{buildroot}/%{_webroot}/htdocs/tacacs/
90
91
%clean
92
rm -rf $RPM_BUILD_ROOT/*
93
rm -rf $RPM_BUILD_DIR/%{name}*
94
95
%post
96
%if 0%{?suse_version}
97
%{fillup_and_insserv tac_plus}
98
%else
99
/sbin/chkconfig --add tac_plus
100
%endif
101
102
%postun
103
%if 0%{?suse_version}
104
%restart_on_update tac_plus
105
%{insserv_cleanup}
106
%endif
107
108
%preun
109
%if 0%{?suse_version}
110
%stop_on_removal tac_plus
111
%else
112
if [ $1 = 0 ]; then
113
   %{_sysconfdir}/init.d/tac_plus stop
114
   /sbin/chkconfig --del tac_plus
115
fi
116
%endif
117
118
119
%files
120
%defattr(-, root, root)
121
%config %{_sysconfdir}/tacacs/tac_plus.cfg
122
%config %{_sysconfdir}/pam.d/tacacs
123
%config %{_sysconfdir}/logrotate.d/tac_plus
124
%doc users_guide CHANGES convert.pl
125
%doc README.LDAP README.PAM tac_plus.sql
126
%dir %{_sysconfdir}/tacacs
127
%attr(750,root,root)            %{_sysconfdir}/init.d/tac_plus
128
%attr(750,root,root)            %{_bindir}/generate_passwd
129
%attr(750,root,root)            %{_sbindir}/tac_plus
130
%attr(644,root,root)            %{_mandir}/man1/*
131
%if 0%{?suse_version}
132
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
133
%endif
134
135
%files webui
136
%attr(-,%{_webusr},%{_webgrp})  {_webroot}/htdocs/tacacs
137
138
%changelog
139
* Sun Jun 08 2008 Carsten Schoene <cs@linux-administrator.com>
140
- initial package
141