Initial revision
[freeradius.git] / redhat / radiusd-cistron-1.5.4.3.spec
1 Summary: Cistron RADIUS daemon (with PAM) 
2 Summary(pt_BR): Servidor RADIUS com muitas funcoes.
3 Name: radiusd-cistron
4 Version: 1.5.4.3
5 Release: beta19
6 Source: radiusd-cistron-1.5.4.3-beta19.tar.gz
7 URL: http://www.miquels.cistron.nl/radius/
8 Copyright: GPL
9 Group: Networking/Daemons
10 BuildRoot: /usr/tmp/radiusd
11
12 %description
13 RADIUS server with a lot of functions. Short overview: 
14
15 - PAM support
16 - Supports access based on huntgroups
17 - Multiple DEFAULT entries in users file
18 - All users file entries can optionally "fall through"
19 - Caches all config files in-memory
20 - Keeps a list of logged in users (radutmp file)
21 - "radwho" program can be installed as "fingerd"
22 - Logs both UNIX "wtmp" file format and RADIUS detail logfiles
23 - Supports Simultaneous-Use = X parameter. Yes, this means
24   that you can now prevent double logins!
25
26 %description -l pt_BR
27 Servidor RADIUS com muitas funções. Visão geral:
28
29 - Suporta acesso baseado em huntgroups
30 - Multiplas entradas DEFAULT no arquivo de usuarios
31 - Faz cache de todos os arquivos de configuracão em memoria
32 - Mantem uma lista dos usuarios conectados (arquivo radutmp)
33 - O programa radwho pode ser instalado como fingerd
34 - Registra tanto no formato UNIX wtmp quanto no RADIUS detail
35 - Suporta o parametro Simultaneous-Use = X. Sim, isto significa
36   que você pode evitar logins duplos!, inclusive com o Cyclades PathRas
37
38 %changelog
39 * Sat Nov 21 1998 Tim Hockin <thockin@ais.net>
40 - Based on work by Christopher McCrory <chrismcc@netus.com>
41 - Build with PAM
42 - Included pam.d/radius
43 - Fixed some small errors in this spec
44 - Changed to build to BuildRoot
45 - Changed Release to "beta11" from "1"
46 - Included users, naslist, huntgroups, clients files, not just -dist
47
48 * Tue Oct 27 1998 Mauricio Mello de Andrade <mandrade@mma.com.br>
49 - Corrected the script to Start/Stop the Radius under RH5.x
50 - Included the script to Rotate Radius Logs under RedHat
51 - Checkrad Utility now works fine with Cyclades PathRas
52
53 %prep 
54 %setup
55 cd raddb
56 for f in clients users naslist huntgroups ; do cp $f $f-dist ; done
57 cd ..
58
59 %build
60 ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-pam
61 make
62
63 %install
64 # prepare $RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
66 mkdir $RPM_BUILD_ROOT/{,etc/{,raddb,logrotate.d,pam.d,rc.d/{,init.d,rc{0,1,2,3,4,5,6}.d}},usr/{,bin,sbin,man/{,man{1,5,8}}},var/{,log/{,radacct}}}
67
68 # make install
69 make install ROOT=${RPM_BUILD_ROOT}
70 install -m 755 src/radtest ${RPM_BUILD_ROOT}/usr/bin/
71 cd ..
72
73 # do /etc/raddb
74 cd raddb
75 install -m 640 * ${RPM_BUILD_ROOT}/etc/raddb
76 cd ..
77
78 # radwatch
79 install -m 755 scripts/radwatch ${RPM_BUILD_ROOT}/usr/sbin/
80
81 # other files
82 cd redhat
83 install -m 555 rc.radiusd-redhat ${RPM_BUILD_ROOT}/etc/rc.d/init.d/radiusd.init
84 install -m 644 radiusd-logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/radiusd
85 install -m 644 radiusd-pam ${RPM_BUILD_ROOT}/etc/pam.d/radius
86 cd ..
87
88 # man pages
89 cd doc
90 for i in 1 8; do
91         install -m 444 *.$i ${RPM_BUILD_ROOT}/usr/man/man$i
92 done
93 install -m 444 clients.5rad ${RPM_BUILD_ROOT}/usr/man/man5/
94 install -m 444 naslist.5rad ${RPM_BUILD_ROOT}/usr/man/man5/
95 cd ..
96
97 # rc.d files
98 for i in 3 4 5;  do
99         ln -sf ../init.d/radiusd.init ${RPM_BUILD_ROOT}/etc/rc.d/rc$i.d/S88radiusd.init
100 done
101 for i in 0 1 2 6; do
102         ln -sf ../init.d/radiusd.init ${RPM_BUILD_ROOT}/etc/rc.d/rc$i.d/K12radiusd.init
103 done
104
105 for i in radutmp radwtmp radius.log; do
106         touch ${RPM_BUILD_ROOT}/var/log/$i
107         chown root.root ${RPM_BUILD_ROOT}/var/log/$i
108         mkdir -p /var/log/radacct
109 done
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %files
115 %doc doc/ChangeLog doc/README doc/README.pam doc/README.proxy 
116 %doc doc/README.usersfile doc/README.simul doc/INSTALL.OLD 
117 %doc doc/Makefile.README doc/README.cisco todo/ 
118 %doc COPYRIGHT.Cistron COPYRIGHT.Livingston
119
120 /usr/bin/*
121 /usr/sbin/*
122 /usr/man/man1/*
123 /usr/man/man5/*
124 /usr/man/man8/*
125 /var/log/radutmp
126 /var/log/radwtmp
127 /var/log/radius.log
128 %dir /var/log/radacct/
129
130 %dir /etc/raddb/
131 %config /etc/raddb/*
132 %config /etc/pam.d/radius
133 %config /etc/logrotate.d/radiusd
134 %config /etc/rc.d/init.d/radiusd.init
135 %config(missingok) /etc/rc.d/rc0.d/K12radiusd.init
136 %config(missingok) /etc/rc.d/rc1.d/K12radiusd.init
137 %config(missingok) /etc/rc.d/rc2.d/K12radiusd.init
138 %config(missingok) /etc/rc.d/rc3.d/S88radiusd.init
139 %config(missingok) /etc/rc.d/rc4.d/S88radiusd.init
140 %config(missingok) /etc/rc.d/rc5.d/S88radiusd.init
141 %config(missingok) /etc/rc.d/rc6.d/K12radiusd.init