Summary: A PPP over Ethernet client (for xDSL support).
Name: rp-pppoe
Version: 3.5
Release: 15
License: GPL
Group: System Environment/Daemons
Url: http://www.roaringpenguin.com/pppoe/
Source: http://www.roaringpenguin.com/rp-pppoe-%{version}.tar.gz
Source1: adsl-connect
Source2: adsl-setup
Source3: adsl-start
Source4: adsl-status
Source5: adsl-stop
Source6: ppp.tgz
Patch0: rp-pppoe-3.4-redhat.patch
Patch1: rp-pppoe-3.5-buildroot.patch
BuildRoot: %{_tmppath}/%{name}-root
Prefix: %{_prefix}
Prereq: /sbin/chkconfig
Prereq: /sbin/service
Prereq: fileutils
Requires: ppp >= 2.3.13
Requires: kernel >= 2.2.9
Requires: initscripts >= 5.92
ExcludeArch: s390 s390x
%description
PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
many ADSL Internet Service Providers. This package contains the
Roaring Penguin PPPoE client, a user-mode program that does not
require any kernel modifications. It is fully compliant with RFC 2516,
the official PPPoE specification.
%prep
%setup -q -a 6
%patch0 -p1 -b .config
%patch1 -p1 -b .buildroot
%build
cd src
autoconf
CFLAGS="-D_GNU_SOURCE" %configure --enable-plugin=$(pwd)/../ppp
make
install -m 0755 %{SOURCE1} scripts
install -m 0755 %{SOURCE2} scripts
install -m 0755 %{SOURCE3} scripts
install -m 0755 %{SOURCE4} scripts
install -m 0755 %{SOURCE5} scripts
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/sbin
make -C src install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_sbindir}/* $RPM_BUILD_ROOT/sbin
install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/sbin
install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/sbin
install -m 0755 %{SOURCE3} $RPM_BUILD_ROOT/sbin
install -m 0755 %{SOURCE4} $RPM_BUILD_ROOT/sbin
install -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/sbin
pushd $RPM_BUILD_ROOT%{_sbindir}
ln -s ../../sbin/* .
popd
rm -rf $RPM_BUILD_ROOT/etc/ppp/pppoe.conf \
$RPM_BUILD_ROOT/etc/rc.d/init.d/pppoe \
$RPM_BUILD_ROOT/usr/doc
%clean
rm -rf $RPM_BUILD_ROOT
%triggerpostun -- rp-pppoe < 3.2-1
if [ -f /etc/rc.d/init.d/pppoe ]; then
rm -f /etc/rc.d/init.d/pppoe
fi
exit 0
%triggerin -- rp-pppoe < 3.2-1
/sbin/service pppoe stop >/dev/null 2>&1 || true
/sbin/chkconfig --del pppoe >/dev/null 2>&1 || true
BOOT=""
DEVPATH=/etc/sysconfig/networking/devices
NETDEV=ifcfg-xDSL
[ -f /etc/ppp/pppoe.conf ] && CONFIG=/etc/ppp/pppoe.conf . /etc/ppp/pppoe.conf >/dev/null 2>&1
[ -n "$BOOT" ] || exit 0
[ -n "$DEVICE" ] || exit 0
[ -d $DEVPATH ] || mkdir -p $DEVPATH
touch $DEVPATH/$NETDEV && chmod 700 $DEVPATH/$NETDEV
echo "DEVICE=$DEVICE" >$DEVPATH/$NETDEV
[ -n "$BOOT" ] || BOOT=no
echo "ONBOOT=$BOOT" >>$DEVPATH/$NETDEV
if [ "$USEPEERDNS" = "yes" ]; then
echo "PEERDNS=yes" >>$DEVPATH/$NETDEV
else
echo "PEERDNS=no" >>$DEVPATH/$NETDEV
fi
echo "DEFROUTE=yes" >>$DEVPATH/$NETDEV
echo "TYPE=xDSL" >>$DEVPATH/$NETDEV
echo "ETH=$ETH" >>$DEVPATH/$NETDEV
echo "USER=$USER" >>$DEVPATH/$NETDEV
echo "PASS=$PASS" >>$DEVPATH/$NETDEV
echo "DEMAND=$DEMAND" >>$DEVPATH/$NETDEV
echo "CONNECT_TIMEOUT=$CONNECT_TIMEOUT" >>$DEVPATH/$NETDEV
echo "CONNECT_POLL=$CONNECT_POLL" >>$DEVPATH/$NETDEV
echo "PING=\".\"" >>$DEVPATH/$NETDEV
echo "SYNCHRONOUS=$SYNCHRONOUS" >>$DEVPATH/$NETDEV
echo "CLAMPMSS=$CLAMPMSS" >>$DEVPATH/$NETDEV
echo "LCP_INTERVAL=$LCP_INTERVAL" >>$DEVPATH/$NETDEV
echo "LCP_FAILURE=$LCP_FAILURE" >>$DEVPATH/$NETDEV
echo "PPPOE_TIMEOUT=$PPPOE_TIMEOUT" >>$DEVPATH/$NETDEV
echo "FIREWALL=$FIREWALL" >>$DEVPATH/$NETDEV
echo "PPPOE_EXTRA=$PPPOE_EXTRA" >>$DEVPATH/$NETDEV
echo "PIDFILE=/var/run/pppoe-adsl.pid" >>$DEVPATH/$NETDEV
echo "SERVICENAME=$SERVICENAME" >>$DEVPATH/$NETDEV
echo "ACNAME=$ACNAME" >>$DEVPATH/$NETDEV
pushd /etc/sysconfig/network-scripts
ln -f ../networking/devices/$NETDEV ifcfg-$DEVICE
popd
exit 0
%files
%defattr(-,root,root)
%doc doc/LICENSE scripts/adsl-connect scripts/adsl-setup scripts/adsl-init
%doc scripts/adsl-start scripts/adsl-status scripts/adsl-stop
%doc configs
%config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options
%config(noreplace) %{_sysconfdir}/ppp/firewall*
%{_sysconfdir}/ppp/plugins
/sbin/*
%{_sbindir}/*
%{_mandir}/man?/*
%changelog
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Thu Apr 01 2004 Than Ngo <than@redhat.com> 3.5-14
- fixed typo
* Tue Mar 30 2004 Than Ngo <than@redhat.com> 3.5-13
- fixed reconnect problem
* Mon Mar 29 2004 Than Ngo <than@redhat.com> 3.5-12
- fixed wrong idle parameter, #119280
* Thu Mar 04 2004 Than Ngo <than@redhat.com> 3.5-11
- fixed default route problem, #114875
- fixed restart issue, #100610
- fixed a bug in adsl status
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Mon Nov 10 2003 Than Ngo <than@redhat.com> 3.5-9
- better fix for nickename issue
* Wed Oct 29 2003 Than Ngo <than@redhat.com> 3.5-8
- fix a bug in connect script
* Mon Oct 27 2003 Than Ngo <than@redhat.com> 3.5-7
- fix nickename issue
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Jun 3 2003 Than Ngo <than@redhat.com> 3.5-5
- add correct PPOE_TIMEOUT/LCP_INTERVAL bug #82630
* Sun May 04 2003 Florian La Roche <Florian.LaRoche@redhat.de>
- fix initdir in triggerpostun
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Fri Nov 29 2002 Than Ngo <than@redhat.com> 3.5-1
- update to 3.5
* Thu Nov 7 2002 Than Ngo <than@redhat.com> 3.4-8
- unpackaged files issue
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu Jun 20 2002 Than Ngo <than@redhat.com> 3.4-5
- Don't forcibly strip binaries
* Sun Jun 09 2002 Than Ngo <than@redhat.com> 3.4-4
- Fix up creation of first device (#64773)
* Fri Jun 07 2002 Than Ngo <than@redhat.com> 3.4-3
- set correct default value for PPPoE timeout (bug #64903)
* Sun May 26 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Harald Hoyer <harald@redhat.de> 3.4-1
- 3.4
- added kernel plugin
* Sun Apr 14 2002 Than Ngo <than@redhat.com> 3.3-7
- add fix for neat-control
* Sat Feb 23 2002 Than Ngo <than@redhat.com> 3.3-6
- fix a bug in adsl-stop (#60138)
* Tue Feb 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 3.3-5
- Fix up creation of first device (#59236)
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Sun Dec 16 2001 Than Ngo <than@redhat.com> 3.3-3
- fix bugs #57070, #55627, #55140
- add man pages, Docs and example scripts
* Mon Nov 05 2001 Than Ngo <than@redhat.com> 3.3-2
- fix a bug in adsl-connect
* Wed Sep 19 2001 Than Ngo <than@redhat.com> 3.3-1
- update to 3.3 (bug #53697)
* Thu Aug 16 2001 Than Ngo <than@redhat.com> 3.2-4
- don't print messages as default
* Wed Aug 8 2001 Than Ngo <than@redhat.com>
- fix softlinks
* Sun Jul 22 2001 Than Ngo <than@redhat.com>
- update to 3.2
* Thu Jul 19 2001 Than Ngo <than@redhat.com> 3.0-5
- fix bug in trigger
* Fri Jun 22 2001 Than Ngo <than@redhat.com>
- Copyright -> License
- fix activate ethernet device problem
- get rid of pppoe initscript, use ifup/ifdown
to activate/shutdown xDSL connection
- convert old pppoe config format into new format
- remove adsl-setup, Users have to use netconf to setup xDSL connection
- excludearch s390
* Mon May 14 2001 Than Ngo <than@redhat.com>
- clean PID files when connection fails (Bug #40349)
- fix order of pppoe script (Bug #40454)
* Wed May 02 2001 Than Ngo <than@redhat.com>
- fixed a firewall bug in adsl-setup (Bug #38550)
* Sun Apr 22 2001 Than Ngo <than@redhat.com>
- update to 3.0 (bug #34075)
* Thu Mar 15 2001 Than Ngo <than@redhat.com>
- fix BOOT enviroment again, it should work fine now
* Wed Mar 14 2001 Than Ngo <than@redhat.com>
- fix bug in adsl-setup (DEVICE enviroment)
* Thu Feb 08 2001 Than Ngo <than@redhat.com>
- fixed a problem in startup (Bug #26454)
- fixed i18n in initscript (Bug #26540)
* Sat Feb 03 2001 Than Ngo <than@redhat.com>
- updated to 2.6
- some fixes in pppoe script
* Fri Feb 02 2001 Than Ngo <than@redhat.com>
- fixed starting pppoe service at boot time. (Bug #25494)
* Sun Jan 28 2001 Than Ngo <than@redhat.com>
- fixed so that pppoe script does not kill adsl connection when
the runlevel is changed.
- remove excludearch ia64
* Tue Jan 23 2001 Than Ngo <than@redhat.com>
- hacked for using USEPEERDNS
* Mon Dec 11 2000 Than Ngo <than@redhat.com>
- updated to 2.5, it fixes a denial-of-service vulnerability
* Tue Aug 08 2000 Than Ngo <than@redhat.de>
- fix german configuration HOWTO to T-DSL
* Mon Aug 07 2000 Than Ngo <than@redhat.de>
- fixes for starting pppd under /usr/sbin
- added german configuration HOWTO to T-DSL
* Tue Aug 01 2000 Than Ngo <than@redhat.de>
- update to 2.2
* Fri Jul 28 2000 Than Ngo <than@redhat.de>
- fixed initscripts so that condrestart doesn't return 1 when the test fails
* Thu Jul 27 2000 Than Ngo <than@redhat.de>
- update to 2.1
- don't detect pppd for building
* Thu Jul 27 2000 Than Ngo <than@redhat.de>
- rename the rp-pppoe startup script (Bug #14734)
* Wed Jul 26 2000 Bill Nottingham <notting@redhat.com>
- don't run by default; it hangs if not configured
* Tue Jul 25 2000 Bill Nottingham <notting@redhat.com>
- prereq /etc/init.d (it's referenced in the initscript)
* Tue Jul 18 2000 Than Ngo <than@redhat.de>
- inits back to rc.d/init.d, using service to fire them up
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild
* Sat Jul 08 2000 Than Ngo <than@redhat.de>
- add Prereq: /etc/init.d
* Fri Jun 30 2000 Than Ngo <than@redhat.de>
- turned off deamon by default
* Tue Jun 27 2000 Than Ngo <than@redhat.de>
- don't prereq, only require initscripts
* Mon Jun 26 2000 Than Ngo <than@redhat.de>
- /etc/rc.d/init.d -> /etc/init.d
- add condrestart directive
- fix post/preun/postun scripts
- prereq initscripts >= 5.20
* Sun Jun 18 2000 Than Ngo <than@redhat.de>
- use RPM macros
- rebuilt in the new build environment
* Wed May 31 2000 Than Ngo <than@redhat.de>
- adopted for Winston.