removed Cistron spec file.
authoraland <aland>
Fri, 22 Sep 2000 18:06:32 +0000 (18:06 +0000)
committeraland <aland>
Fri, 22 Sep 2000 18:06:32 +0000 (18:06 +0000)
Added FreeRADIUS spec file, as given by
"Bruno L. F. Cabral" <bruno@openline.com.br>

redhat/freeradius.spec [new file with mode: 0644]
redhat/radiusd-cistron-1.5.4.3.spec [deleted file]

diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec
new file mode 100644 (file)
index 0000000..c1cda66
--- /dev/null
@@ -0,0 +1,115 @@
+%define name freeradius-alpha-snapshot
+# FIXME: find a way of getting rid of "-" on versions ... rpm will be happy
+%define ver 22-Sep-00
+%define verX 22_Sep_00
+
+Name: %{name}
+Version: %{verX}
+Release: 0
+
+Summary:       High-performance and highly configurable RADIUS server
+URL:           http://www.freeradius.org/
+Copyright:     GPL
+Group:         Networking/Daemons
+
+Prereq:                /sbin/chkconfig
+# FIXME: snmpwalk, snmpget and rusers POSSIBLY needed by checkrad
+Requires:      libtool
+Conflicts:     cistron-radius
+
+Source:                %{name}-%{ver}.tar.gz
+# FIXME: won't be good to include these contrib examples?
+# Source1:     http://www.ping.de/~fdc/radius/radacct-replay
+# Source2:     http://www.ping.de/~fdc/radius/radlast-0.03
+# Source3:     ftp://ftp.freeradius.org/pub/radius/contrib/radwho.cgi
+
+%define setupdir %{name}-%{ver}
+BuildRoot: /var/tmp/%{setupdir}.root
+
+%description
+The FreeRADIUS Server Project is an attempt to create a high-performance 
+and highly configurable GPL'd RADIUS server. It is generally similar to 
+the Livingston 2.0 RADIUS server, but has a lot more features, and is 
+much more configurable.
+
+%prep 
+%setup -qn %{setupdir}
+
+# FIXME: some folks prefer -dist files ... rename them or not?
+#cd raddb
+#chmod 640 clients naspasswd radiusd.conf.in
+#cd ..
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" \
+%configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
+       --with-threads \
+       --with-thread-pool \
+       --with-gnu-ld \
+       --disable-ltdl-install
+make
+
+%install
+# prepare $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,rc.d/init.d}
+
+# install files
+make install prefix=$RPM_BUILD_ROOT/usr localstatedir=$RPM_BUILD_ROOT/var sysconfdir=$RPM_BUILD_ROOT/etc
+
+# remove unneeded stuff
+rm -f $RPM_BUILD_ROOT/usr/{man/man8/builddbm.8,sbin/rc.radiusd}
+
+cd redhat
+install -m 555 rc.radiusd-redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/radiusd.init
+install -m 644 radiusd-logrotate $RPM_BUILD_ROOT/etc/logrotate.d/radiusd
+install -m 644 radiusd-pam       $RPM_BUILD_ROOT/etc/pam.d/radius
+cd ..
+
+%preun
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --del radiusd.init
+fi
+
+%postin
+if [ "$1" = "0" ]; then
+       /sbin/chkconfig --add radiusd.init
+fi
+# done here to avoid messing up existing installations
+for i in radutmp radwtmp # radius.log radwatch.log checkrad.log
+do
+  touch /var/log/$i
+  chown root.root /var/log/$i
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%doc doc/ChangeLog doc/README* todo/ COPYRIGHT INSTALL
+%config /etc/pam.d/radius
+%config /etc/logrotate.d/radiusd
+%config /etc/rc.d/init.d/radiusd.init
+%config /etc/raddb/*
+/usr/man/*
+/usr/bin/*
+/usr/sbin/*
+/usr/lib/*
+#%dir(missingok) /var/log/radacct/
+#/var/log/checkrad.log
+#/var/log/radwatch.log
+#/var/log/radius.log
+#/var/log/radwtmp
+#/var/log/radutmp
+
+%changelog
+* Fri Sep 22 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
+- spec file clear accordling to the libltdl fix and minor updates
+
+* Wed Sep 12 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
+- Updated to snapshot-12-Sep-00
+
+* Fri Jun 16 2000 Bruno Lopes F. Cabral <bruno@openline.com.br>
+- Initial release
+
diff --git a/redhat/radiusd-cistron-1.5.4.3.spec b/redhat/radiusd-cistron-1.5.4.3.spec
deleted file mode 100644 (file)
index bb9bdd8..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-Summary: Cistron RADIUS daemon (with PAM) 
-Summary(pt_BR): Servidor RADIUS com muitas funcoes.
-Name: radiusd-cistron
-Version: 1.5.4.3
-Release: beta19
-Source: radiusd-cistron-1.5.4.3-beta19.tar.gz
-URL: http://www.miquels.cistron.nl/radius/
-Copyright: GPL
-Group: Networking/Daemons
-BuildRoot: /usr/tmp/radiusd
-
-%description
-RADIUS server with a lot of functions. Short overview: 
-
-- PAM support
-- Supports access based on huntgroups
-- Multiple DEFAULT entries in users file
-- All users file entries can optionally "fall through"
-- Caches all config files in-memory
-- Keeps a list of logged in users (radutmp file)
-- "radwho" program can be installed as "fingerd"
-- Logs both UNIX "wtmp" file format and RADIUS detail logfiles
-- Supports Simultaneous-Use = X parameter. Yes, this means
-  that you can now prevent double logins!
-
-%description -l pt_BR
-Servidor RADIUS com muitas funções. Visão geral:
-
-- Suporta acesso baseado em huntgroups
-- Multiplas entradas DEFAULT no arquivo de usuarios
-- Faz cache de todos os arquivos de configuracão em memoria
-- Mantem uma lista dos usuarios conectados (arquivo radutmp)
-- O programa radwho pode ser instalado como fingerd
-- Registra tanto no formato UNIX wtmp quanto no RADIUS detail
-- Suporta o parametro Simultaneous-Use = X. Sim, isto significa
-  que você pode evitar logins duplos!, inclusive com o Cyclades PathRas
-
-%changelog
-* Sat Nov 21 1998 Tim Hockin <thockin@ais.net>
-- Based on work by Christopher McCrory <chrismcc@netus.com>
-- Build with PAM
-- Included pam.d/radius
-- Fixed some small errors in this spec
-- Changed to build to BuildRoot
-- Changed Release to "beta11" from "1"
-- Included users, naslist, huntgroups, clients files, not just -dist
-
-* Tue Oct 27 1998 Mauricio Mello de Andrade <mandrade@mma.com.br>
-- Corrected the script to Start/Stop the Radius under RH5.x
-- Included the script to Rotate Radius Logs under RedHat
-- Checkrad Utility now works fine with Cyclades PathRas
-
-%prep 
-%setup
-cd raddb
-for f in clients users naslist huntgroups ; do cp $f $f-dist ; done
-cd ..
-
-%build
-./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-pam
-make
-
-%install
-# prepare $RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT
-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}}}
-
-# make install
-make install ROOT=${RPM_BUILD_ROOT}
-install -m 755 src/radtest ${RPM_BUILD_ROOT}/usr/bin/
-cd ..
-
-# do /etc/raddb
-cd raddb
-install -m 640 * ${RPM_BUILD_ROOT}/etc/raddb
-cd ..
-
-# radwatch
-install -m 755 scripts/radwatch ${RPM_BUILD_ROOT}/usr/sbin/
-
-# other files
-cd redhat
-install -m 555 rc.radiusd-redhat ${RPM_BUILD_ROOT}/etc/rc.d/init.d/radiusd.init
-install -m 644 radiusd-logrotate ${RPM_BUILD_ROOT}/etc/logrotate.d/radiusd
-install -m 644 radiusd-pam ${RPM_BUILD_ROOT}/etc/pam.d/radius
-cd ..
-
-# man pages
-cd doc
-for i in 1 8; do
-       install -m 444 *.$i ${RPM_BUILD_ROOT}/usr/man/man$i
-done
-install -m 444 clients.5rad ${RPM_BUILD_ROOT}/usr/man/man5/
-install -m 444 naslist.5rad ${RPM_BUILD_ROOT}/usr/man/man5/
-cd ..
-
-# rc.d files
-for i in 3 4 5;  do
-       ln -sf ../init.d/radiusd.init ${RPM_BUILD_ROOT}/etc/rc.d/rc$i.d/S88radiusd.init
-done
-for i in 0 1 2 6; do
-       ln -sf ../init.d/radiusd.init ${RPM_BUILD_ROOT}/etc/rc.d/rc$i.d/K12radiusd.init
-done
-
-for i in radutmp radwtmp radius.log; do
-       touch ${RPM_BUILD_ROOT}/var/log/$i
-       chown root.root ${RPM_BUILD_ROOT}/var/log/$i
-       mkdir -p /var/log/radacct
-done
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%doc doc/ChangeLog doc/README doc/README.pam doc/README.proxy 
-%doc doc/README.usersfile doc/README.simul doc/INSTALL.OLD 
-%doc doc/Makefile.README doc/README.cisco todo/ 
-%doc COPYRIGHT.Cistron COPYRIGHT.Livingston
-
-/usr/bin/*
-/usr/sbin/*
-/usr/man/man1/*
-/usr/man/man5/*
-/usr/man/man8/*
-/var/log/radutmp
-/var/log/radwtmp
-/var/log/radius.log
-%dir /var/log/radacct/
-
-%dir /etc/raddb/
-%config /etc/raddb/*
-%config /etc/pam.d/radius
-%config /etc/logrotate.d/radiusd
-%config /etc/rc.d/init.d/radiusd.init
-%config(missingok) /etc/rc.d/rc0.d/K12radiusd.init
-%config(missingok) /etc/rc.d/rc1.d/K12radiusd.init
-%config(missingok) /etc/rc.d/rc2.d/K12radiusd.init
-%config(missingok) /etc/rc.d/rc3.d/S88radiusd.init
-%config(missingok) /etc/rc.d/rc4.d/S88radiusd.init
-%config(missingok) /etc/rc.d/rc5.d/S88radiusd.init
-%config(missingok) /etc/rc.d/rc6.d/K12radiusd.init