Summary: Radius & PPP enabled terminal server Name: portslave Version: 2002.10.21 Release: 2 Group: Applications/Communications License: Various Source0: http://www.sourceforge.net/projects/portslave/portslave_%{version}.tar.gz BuildRequires: ppp >= 2.4.2, radiusclient-devel Requires: ppp >= 2.4.2, radiusclient-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Patch0: portslave-nochap.patch Patch1: portslave-fedora.patch %description This package provides a program named portslave which will use AT commands to answer a modem when it rings. It will then display a login: prompt at which the user can enter a user-name and password. If the user sends PPP data then portslave will run it's own pppd instead and authenticate the user via PAP. When the user-name and password are received they will be verified via a RADIUS server. At the end of the call the accounting data will be written to the RADIUS server. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %configure --with-pppdradius=/usr/sbin/pppd --enable-shadow mkdir -p ppp-2.4.1/pppd echo "all:" > ppp-2.4.1/pppd/Makefile.linux make %{?_smp_mflags} EXTRA_CFLAGS="-DNO_CHAP -I/usr/include/pppd" %install rm -rf $RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT; export DESTDIR mkdir -p $DESTDIR/usr/{{s,}bin,lib} mkdir -p $DESTDIR%{_mandir}/man{1,5,8} mkdir -p $DESTDIR/etc/{portslave/filters,/rc.d/init.d} install -c -m 644 pslave.conf $DESTDIR/etc/portslave/pslave.conf install -c -m 644 pslave.conf.5 $DESTDIR%{_mandir}/man5 install -c -m 755 src/portslave $DESTDIR/usr/sbin install -c -m 644 portslave.8 $DESTDIR%{_mandir}/man8 install -c -o root -g daemon -m 4750 src/ctlportslave $DESTDIR/usr/sbin install -c -m 644 ctlportslave.1 $DESTDIR%{_mandir}/man1 install -c -m 644 src/libpsr.so $DESTDIR/usr/lib install -c -m 644 src/libportslave.so $DESTDIR/usr/lib %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_sbindir}/portslave %{_sbindir}/ctlportslave %{_libdir}/libpsr.so %{_libdir}/libportslave.so %{_mandir}/man1/ctlportslave.1* %{_mandir}/man5/pslave.conf.5* %{_mandir}/man8/portslave.8* %config(noreplace) /etc/portslave/pslave.conf %dir /etc/portslave %dir /etc/portslave/filters %doc docs/* %changelog * Tue May 3 2005 Paul Dwerryhouse = 2002.10.21-2 - Removed hardcoded paths from spec file. * Mon Apr 18 2005 Paul Dwerryhouse = 2002.10.21-1 - Initial build