%define enable_debug 0 %{?_with_debug: %global enable_debug 1} %{?_without_debug: %global use_debug 0} %define pppver 2.4.4 Summary: ADSL/PPPoE userspace driver Name: rp-pppoe Version: 3.8 Release: %mkrel 5 Source0: http://www.roaringpenguin.com/penguin/pppoe/%{name}-%{version}.tar.bz2 Source3: http://www.luigisgro.com/sw/rp-pppoe-3.8.patch/README-first-session-packet-lost.txt Patch0: rp-pppoe-3.6-CAN-2004-0564.patch Patch1: rp-pppoe-3.8-pppox.patch Patch2: rp-pppoe-3.8-au64.patch # From http://www.luigisgro.com/sw/rp-pppoe-3.8.session-packet-lost.tar.gz Patch3: rp-pppoe-3.8-session-packet-lost.patch Url: http://www.roaringpenguin.com/pppoe License: GPL Group: System/Servers BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: ppp >= 2.4.1 BuildRequires: autoconf2.5 BuildRequires: ppp-devel = %{pppver} %package gui Group: System/Servers Summary: GUI front-end for rp-pppoe Requires: rp-pppoe >= 3.6 Requires: tk %description PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by many ADSL Internet Service Providers. Roaring Penguin has a free client for Linux systems to connect to PPPoE service providers. The client is a user-mode program and does not require any kernel modifications. It is fully compliant with RFC 2516, the official PPPoE specification. It has been tested with many ISPs, such as the Canadian Sympatico HSE (High Speed Edition) service. %description gui This package contains the graphical frontend (tk-based) for rp-pppoe. Install this if you wish to have a graphical frontend for pppoe. %package plugin Summary: PPP over ethernet kernel-mode plugin Group: System/Servers Requires: %{name} = %{version} Conflicts: ppp-pppoe %description plugin PPP over ethernet kernel-mode plugin. %prep %setup -q %patch0 -p1 -b .CAN %patch1 -p1 -b .pppox %patch2 -p1 -b .au64 %patch3 -p1 -b .pktlost %build %serverbuild cd src autoconf %if %enable_debug CFLAGS="$RPM_OPT_FLAGS -g" \ %endif %if %{mdkversion} <= 200710 %configure2_5x \ %else %configure2_5x --docdir=%{_docdir}/%{name} \ %endif --enable-plugin=%{_includedir} --docdir=%{_docdir}/%{name} %make perl -pi -e 's|/etc/ppp/plugins/|%{_libdir}/pppd/%{pppver}|g' \ doc/KERNEL-MODE-PPPOE %install rm -fr %buildroot install -d -m 0755 %buildroot install -m 644 %{SOURCE3} ./README-first-session-packet-lost.txt %if %{mdkversion} <= 200710 pushd src make install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT popd pushd gui make install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT popd %else pushd src make install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name} popd pushd gui make install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name} popd %endif # This is necessary for the gui to work, but it shouldn't be done here ! mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ppp/rp-pppoe-gui %if %{mdkversion} >= 200610 mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-rp-pppoe-gui.desktop <<EOF [Desktop Entry] Name=TkPPPoE Comment=Frontend for rp-pppoe Exec=%{_bindir}/tkpppoe Icon=remote_access_section Terminal=false Type=Application Categories=X-MandrivaLinux-Internet-RemoteAccess;Network;RemoteAccess;Dialup; EOF %endif perl -pi -e "s/restart/restart\|reload/g;" %{buildroot}%{_initrddir}/pppoe rm -rf %{buildroot}/usr/doc mkdir -p $RPM_BUILD_ROOT%{_libdir}/pppd/%{pppver} rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ppp/plugins/README mv -f $RPM_BUILD_ROOT%{_sysconfdir}/ppp/plugins/rp-pppoe.so \ $RPM_BUILD_ROOT%{_libdir}/pppd/%{pppver}/ # backward compatibility links for i in connect start stop setup status; do ln -sf %{_sbindir}/pppoe-$i $RPM_BUILD_ROOT%{_sbindir}/adsl-$i ln -sf pppoe-$i.8 $RPM_BUILD_ROOT%{_mandir}/man8/adsl-$i.8 done %if %enable_debug export DONT_STRIP=1 export EXCLUDE_FROM_STRIP=".*" %endif %clean rm -fr %buildroot %post gui %if %{mdkversion} >= 200610 %if %mdkversion < 200900 %update_desktop_database %endif %endif %if %mdkversion < 200900 %update_menus %endif %postun gui %if %{mdkversion} >= 200610 %if %mdkversion < 200900 %clean_desktop_database %endif %endif %if %mdkversion < 200900 %clean_menus %endif %files %defattr(-,root,root) %doc doc/* README SERVPOET %doc README-first-session-packet-lost.txt %config(noreplace) %{_sysconfdir}/ppp/pppoe.conf %config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options %config(noreplace) %{_sysconfdir}/ppp/firewall-masq %config(noreplace) %{_sysconfdir}/ppp/firewall-standalone %{_sbindir}/pppoe %{_sbindir}/pppoe-connect %{_sbindir}/pppoe-relay %{_sbindir}/pppoe-server %{_sbindir}/pppoe-setup %{_sbindir}/pppoe-sniff %{_sbindir}/pppoe-start %{_sbindir}/pppoe-status %{_sbindir}/pppoe-stop %{_sbindir}/adsl-connect %{_sbindir}/adsl-setup %{_sbindir}/adsl-start %{_sbindir}/adsl-status %{_sbindir}/adsl-stop %{_mandir}/man[58]/* %config(noreplace)%{_initrddir}/pppoe %files gui %defattr(-,root,root) %{_bindir}/tkpppoe %{_sbindir}/pppoe-wrapper %{_mandir}/man1/* %if %{mdkversion} >= 200610 %{_datadir}/applications/* %endif %dir %{_datadir}/tkpppoe %dir %{_sysconfdir}/ppp/rp-pppoe-gui %{_datadir}/tkpppoe/* %files plugin %defattr(-,root,root) %doc doc/KERNEL-MODE-PPPOE %attr(755,root,root) %{_libdir}/pppd/%{pppver}/rp-pppoe.so %changelog * Thu Jun 12 2008 Pixel <pixel@mandriva.com> 3.8-5mdv2009.0 + Revision: 218429 - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Sat Mar 08 2008 Olivier Blin <oblin@mandriva.com> 3.8-5mdv2008.1 + Revision: 182239 - borrow aligned_u64 definition from linux/types.h (not exported to userspace) - fix detection of kernel pppoe mode (linux/if_pppol2tp.h should include linux/in.h for sockaddr_in struct) - remove old pppox header copy - restore BuildRoot + Oden Eriksson <oeriksson@mandriva.com> - rebuild + Thierry Vignaud <tvignaud@mandriva.com> - drop old menu - kill re-definition of %%buildroot on Pixel's request * Mon Jul 30 2007 Giuseppe Ghibò <ghibo@mandriva.com> 3.8-4mdv2008.0 + Revision: 56482 - Added Luigi Sgro's Patch3 to speed up initial ADSL connection time to ISP. * Wed Jul 04 2007 Andreas Hasenack <andreas@mandriva.com> 3.8-3mdv2008.0 + Revision: 48240 - use serverbuild macro (-fstack-protector-all) - fix docdir * Sat Mar 03 2007 Giuseppe Ghibò <ghibo@mandriva.com> 3.8-2mdv2007.0 + Revision: 131846 - Rebuilt against ppp 2.4.4. - Rebuilt. - Import rp-pppoe * Wed Aug 09 2006 Giuseppe Ghibò <ghibo@mandriva.com> 3.8-1mdv2007.0 - Release 3.8. - XDG menu. * Thu Mar 02 2006 Giuseppe Ghibò <ghibo@mandriva.com> 3.7-1mdk - Release 3.7. - Removed Patch1, merged upstream. * Tue Aug 30 2005 Giuseppe Ghibò <ghibo@mandriva.com> 3.6-1mdk - Release 3.6. - Re-adapted Patch0 (still needed)? - Added Patch1 (because option rp_pppoe_dev not supported by pppd). - Added Patch2 for compiling plugin under glibc 2.3.5. * Sat Apr 09 2005 Olivier Blin <oblin@mandrakesoft.com> 3.5-5mdk - from Vincent Danen: security update for CAN-2004-0564 * Tue Jun 08 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 3.5-4mdk - buildrequires