Sisyphus
: 26 2023 | : 18292 | : 27173979
en ru br
ALT
S:3.15-alt1
5.1: 3.10-alt1
4.1: 3.7-alt2
4.0: 3.7-alt2
3.0: 3.5-alt16
+updates:3.5-alt16.1
www.altlinux.org/Changes

:: /̣
: rp-pppoe

             Sources      Gear   Bugs and FR  Repocop 

Name: rp-pppoe
Version: 3.5
Release: alt16

License: GPL
Url: http://www.roaringpenguin.com/pppoe/
Summary: PPP Over Ethernet (xDSL support)
Summary(ru_RU.CP1251): PPP Ethernet ( xDSL)
Group: Networking/Remote access
Packager: Aleksandr Blokhin 'Sass' <sass at altlinux.ru>

Source: http://www.roaringpenguin.com/pppoe/%name-%version.tar.bz2
Source1: tkpppoe_menuentry
Source2: tkpppoe.xpm
Source3: firewall-masq-iptables
Source4: firewall-standalone-iptables
Source6: pppoe-wrapper.control
Source7: %name-MINI-HOWTOs.tar.bz2

Patch0: %name-3.5-ALT-adsl-connect.patch
Patch1: %name-3.5-ALT-adsl.init.patch
Patch2: %name-3.5-ALT-tkpppoe.patch
Patch3: %name-3.5-ALT-resolver.patch
Patch4: %name-3.5-alt-configure.patch

BuildPreReq: ppp
Provides: rp-pppoe

# Automatically added by buildreq on Thu Apr 14 2005

BuildRequires: libpcap-devel

%description
PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
many ADSL Internet Service Providers.

%description -l ru_RU.CP1251
PPPoE (Point-to-Point Protocol Ethernet) ,
ADSL.

%package client
Summary: PPP Over Ethernet (xDSL support)
Summary(ru_RU.CP1251): PPP Ethernet ( xDSL)
Group: Networking/Remote access
Requires: ppp >= 2.3.7
Provides: rp-pppoe
Obsoletes: rp-pppoe

%description client
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.

%description client -l ru_RU.CP1251
PPPoE (Point-to-Point Protocol Ethernet) ,
ADSL. Roaring Penguin
Linux-
PPPoE.

%package server
Summary: PPP Over Ethernet (xDSL support)
Summary(ru_RU.CP1251): PPP Ethernet ( xDSL)
Group: Networking/Remote access
Requires: ppp >= 2.3.7

%description server
pppoe-server is a user-space server for PPPoE (Point-to-Point Protocol over Ethernet)
for Linux and other UNIX systems.

%description server -l ru_RU.CP1251
pppoe-server PPPoE- (Point-to-Point Protocol over Ethernet) Linux UNIX-.

%package gui
Summary: Tk interface for PPP Over Ethernet Client (xDSL support)
Summary(ru_RU.CP1251): Tk PPP Ethernet ( xDSL)
Group: Networking/Remote access
Requires: %name-client >= 3.5 tk

%description gui
This is a graphical wrapper around the rp-pppoe PPPoE client. PPPoE is
a protocol used by many DSL Internet Service Providers.

%description gui -l ru_RU.CP1251
PPPoE. PPPoE ,
ADSL.

%prep
%setup -q -a7
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
pushd src
%__aclocal
%configure
popd

%install
%make_build -C src install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT
%make_build -C gui install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT

%__install -p -m664 -D %SOURCE1 $RPM_BUILD_ROOT%_menudir/TkPPPoE
%__install -p -m644 -D %SOURCE2 $RPM_BUILD_ROOT%_iconsdir/tkpppoe.xpm
%__install -p -m644 %SOURCE3 $RPM_BUILD_ROOT%_sysconfdir/ppp/
%__install -p -m644 %SOURCE4 $RPM_BUILD_ROOT%_sysconfdir/ppp/
%__install -p -m755 -D %SOURCE6 $RPM_BUILD_ROOT%_sysconfdir/control.d/facilities/pppoe-wrapper

cat > $RPM_BUILD_ROOT%_sysconfdir/ppp/adsl-lost << EOF
#!/bin/sh
echo -n \`date +"%b %d %T"\`" " >> /var/log/ppp/adsl-lost.log
echo "ADSL session reconnect"  >> /var/log/ppp/adsl-lost.log
EOF

#cat > $RPM_BUILD_ROOT%_sysconfdir/modules.conf.pppoe << EOF

#alias char-major-108 ppp_generic
#alias tty-ldisc-3 ppp_async
#alias tty-ldisc-13 n_hdlc
#alias tty-ldisc-14 ppp_synctty
#alias net-pf-24 pppoe
#EOF

%files client
%attr(750,root,root) %_sysconfdir/ppp/adsl-lost
%config(noreplace) %_sysconfdir/ppp/pppoe.conf
%config(noreplace) %_sysconfdir/ppp/firewall*
%config(noreplace) %_initdir/adsl
%_sbindir/pppoe
%_sbindir/pppoe-sniff
%_sbindir/pppoe-relay
%_sbindir/adsl*
%_man5dir/*
%_man8dir/adsl-*
%_man8dir/pppoe.*
%_man8dir/pppoe-relay*
%_man8dir/pppoe-sniff*
%doc doc/CHANGES doc/HOW-TO-CONNECT doc/LICENSE README USB-ADSL-MINI-HOWTO.sgml

%post client
#/sbin/chkconfig --add adsl

#if [ -f /etc/ppp/resolv.conf ]; then

#    rm -f /etc/ppp/resolv.conf && ln -s /etc/resolv.conf /etc/ppp/resolv.conf
#else
#    ln -s /etc/resolv.conf /etc/ppp/resolv.conf
#fi

[ -h /etc/ppp/resolv.conf ] && rm -f /etc/ppp/resolv.conf && cat /etc/resolv.conf > /etc/ppp/resolv.conf ||:

%preun client
/sbin/chkconfig --del adsl

%files server
%config(noreplace) %_sysconfdir/ppp/pppoe-server-options
%_sbindir/pppoe-server
%_man8dir/pppoe-server*
%doc doc/LICENSE SERVPOET PPPoE-SERVER-MINI-HOWTO.sgml

%files gui
%config %_sysconfdir/control.d/facilities/pppoe-wrapper
%dir %_sysconfdir/ppp/rp-pppoe-gui
%dir %_datadir/tkpppoe
%_bindir/tkpppoe
%attr(4711,root,root) %_sbindir/pppoe-wrapper
%_menudir/TkPPPoE
%_iconsdir/tkpppoe.xpm
%_datadir/tkpppoe/*
%_man1dir/*

%pre gui
[ $1 -eq 1 ] || /usr/sbin/control-dump pppoe-wrapper

%post gui
[ $1 -eq 1 ] || /usr/sbin/control-restore pppoe-wrapper
%update_menus

%postun gui
%clean_menus

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin