commit 522236cbe0eae9f09b8969c286dda531c0307c901471103a7b38446e8e70fcc9 Author: OBS User unknown Date: Mon Jan 15 23:35:24 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rp-pppoe?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/docdir.diff b/docdir.diff new file mode 100644 index 0000000..5fb7087 --- /dev/null +++ b/docdir.diff @@ -0,0 +1,11 @@ +--- ./src/Makefile.in.orig 2005-09-22 08:46:53.945913116 +0000 ++++ ./src/Makefile.in 2005-09-22 08:47:37.751292213 +0000 +@@ -22,7 +22,7 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + mandir=@mandir@ +-docdir=@prefix@/share/doc/rp-pppoe-$(VERSION) ++docdir=@prefix@/share/doc/packages/rp-pppoe + install=@INSTALL@ + install_dir=@INSTALL@ -d + sbindir=@sbindir@ diff --git a/init-suse.diff b/init-suse.diff new file mode 100644 index 0000000..991051b --- /dev/null +++ b/init-suse.diff @@ -0,0 +1,87 @@ +--- scripts/pppoe-init-suse.in ++++ scripts/pppoe-init-suse.in +@@ -12,9 +12,19 @@ + # 2 or any later version. + # Modifed to work with SuSE 6.4 linux by Gary Cameron. + # +-# Source function library. +-#. /etc/rc.d/init.d/functions # For red hat? +-. /etc/rc.config # For SuSE, enables setting from /etc/rc.config ++# Modifed and fixed to work with SuSE linux by Anas Nashif ++ ++### BEGIN INIT INFO ++# Provides: rp-pppoe ++# Required-Start: $syslog $network $named ++# Required-Stop: $syslog $remote_fs ++# Default-Start: 3 5 ++# Default-Stop: 0 1 2 6 ++# Short-Description: Start Roaring Penguin ADSL ++# Description: Start Roaring Penguin ADSL ++### END INIT INFO ++ ++. /etc/rc.status + + #Tweak this + restart_time=120 +@@ -28,21 +38,27 @@ + STOP=@sbindir@/pppoe-stop + STATUS=@sbindir@/pppoe-status + +-test "$PPPoE_START" = "yes" || exit 0 +- + # The echo return value for success (defined in /etc/rc.config). +-return=$rc_done + case "$1" in + start) + echo -n "Bringing up PPPoE link" +- $START > /dev/null 2>&1 || return=$rc_failed +- echo -e "$return" ++ $START > /dev/null 2>&1 ++ rc_status -v + ;; + + stop) + echo -n "Shutting down PPPoE link" +- $STOP > /dev/null 2>&1 || return=$rc_failed +- echo -e "$return" ++ $STOP > /dev/null 2>&1 ++ rc_status -v ++ ;; ++ ++ try-restart) ++ ## Stop the service and if this succeeds (i.e. the ++ ## service was running before), start it again. ++ $0 stop && $0 start ++ ++ # Remember status and be quiet ++ rc_status + ;; + + restart) +@@ -50,15 +66,23 @@ + echo "Waiting" $restart_time "seconds for the host to reset itself" + sleep $restart_time #Note: Need time for host to reset itself + $0 start ++ rc_status + ;; + + status) +- $STATUS ++ checkproc /usr/sbin/pppoe; rc=$? ++ if test $rc = 0; then echo "OK" ++ else echo "No process" ++ if test -e /var/run/pppoe.conf-adsl.pid.pppoe; ++ then exit 1 ++ else exit 3 ++ fi ++ fi + ;; + + *) +- echo "Usage: pppoe {start|stop|restart|status}" ++ echo "Usage: pppoe {start|stop|restart|status|try-restart}" + exit 1 + esac ++rc_exit + +-exit 0 diff --git a/logger-path.diff b/logger-path.diff new file mode 100644 index 0000000..bb23ab6 --- /dev/null +++ b/logger-path.diff @@ -0,0 +1,33 @@ +--- scripts/pppoe-connect.in ++++ scripts/pppoe-connect.in +@@ -32,7 +32,7 @@ + PPPD=@PPPD@ + SETSID=@SETSID@ + PPPOE=@sbindir@/pppoe +-LOGGER="/usr/bin/logger -t `basename $0`" ++LOGGER="/bin/logger -t `basename $0`" + + # Set to "C" locale so we can parse messages from commands + LANG=C +--- scripts/pppoe-setup.in ++++ scripts/pppoe-setup.in +@@ -21,7 +21,7 @@ + PPPD=@PPPD@ + PPPOE=@sbindir@/pppoe + ECHO=@ECHO@ +-LOGGER="/usr/bin/logger -t `basename $0`" ++LOGGER="/bin/logger -t `basename $0`" + + # Set to "C" locale so we can parse messages from commands + LANG=C +--- scripts/pppoe-stop.in ++++ scripts/pppoe-stop.in +@@ -25,7 +25,7 @@ + export LANG + + ME="`basename $0`" +-LOGGER="/usr/bin/logger -t $ME" ++LOGGER="/bin/logger -t $ME" + CONFIG="$1" + if [ "$CONFIG" = "" ] ; then + CONFIG=/etc/ppp/pppoe.conf diff --git a/no-ansi.diff b/no-ansi.diff new file mode 100644 index 0000000..41cfced --- /dev/null +++ b/no-ansi.diff @@ -0,0 +1,22 @@ +--- ./src/configure.in.orig 2005-09-21 14:29:21.100503169 +0000 ++++ ./src/configure.in 2005-09-21 14:47:23.236467921 +0000 +@@ -169,7 +169,7 @@ + + dnl GCC warning level + if test "$GCC" = yes; then +- CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi" ++ CFLAGS="$CFLAGS -Wall -Wstrict-prototypes" + fi + + dnl If we couldn't find pppd, die +--- ./src/configure.orig 2005-09-21 14:29:27.210435054 +0000 ++++ ./src/configure 2005-09-21 14:47:33.081751070 +0000 +@@ -5557,7 +5557,7 @@ + fi + + if test "$GCC" = yes; then +- CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi" ++ CFLAGS="$CFLAGS -Wall -Wstrict-prototypes" + fi + + if test "$PPPD" = "NOTFOUND"; then diff --git a/nonrfc-modems.diff b/nonrfc-modems.diff new file mode 100644 index 0000000..782b86c --- /dev/null +++ b/nonrfc-modems.diff @@ -0,0 +1,63 @@ +--- scripts/pppoe-setup.in ++++ scripts/pppoe-setup.in +@@ -110,6 +110,42 @@ + fi + + $ECHO "" ++ $ECHO "MODEM TYPE" ++ $ECHO "" ++ $ECHO "We will try to detect if your modem is compliant with RFC 2516" ++ $ECHO "or not. 3COM's 3CP4130 is *NOT* compliant, for instance." ++ $ECHO "" ++ $ECHO "Searching for a modem at interface $E..." ++ $PPPOE -A -I $E > /dev/null 2>&1 ++ if [ $? -eq 1 ]; then ++ # not found ++ # try 3COM's ++ $ECHO "" ++ $ECHO "Not found, trying with 3COM's code..." ++ result=`$PPPOE -A -I $E -f 3c12:3c13 2>/dev/null` ++ if [ $? -eq 0 ]; then ++ $ECHO "Non-RFC2516 compliant modem found! Probably 3CP4130..." ++ $ECHO "Probing for service name..." ++ service=`echo "$result" | grep Service-Name | grep -v "3Com DL Manager" | cut -d : -f 2` ++ if [ -n "$service" ]; then ++ $ECHO "Found service name = $service" ++ PPPOE_EXTRA="-f 3c12:3c13 -S $service" ++ else ++ $ECHO "Couldn't find a service name, proceeding without one..." ++ PPPOE_EXTRA="-f 3c12:3c13" ++ fi ++ else ++ $ECHO "" ++ $ECHO "Didn't find a modem at interface $E, you can continue but" ++ $ECHO "things might not work as you expect... :(" ++ $ECHO "You might want to re-run this script and try a different interface." ++ fi ++ else ++ $ECHO "Found a RFC 2516 compliant modem, congratulations! :)" ++ PPPOE_EXTRA="" ++ fi ++ ++ $ECHO "" + $ECHO "Do you want the link to come up on demand, or stay up continuously?" + $ECHO "If you want it to come up on demand, enter the idle time in seconds" + $ECHO "after which the link should be dropped. If you want the link to" +@@ -221,6 +257,9 @@ + $ECHO "** Summary of what you entered **" + $ECHO "" + $ECHO "Ethernet Interface: $E" ++ if [ -n "$PPPOE_EXTRA" ]; then ++ $ECHO "Extra parameters for modem (autodetected): \"$PPPOE_EXTRA\"" ++ fi + $ECHO "User name: $U" + if [ "$D" = "no" ] ; then + $ECHO "Activate-on-demand: No" +@@ -297,6 +336,7 @@ + -e "s/^DNS1=.*/DNS1=$DNS1/" \ + -e "s/^DNS2=.*/DNS2=$DNS2/" \ + -e "s/^PEERDNS=.*/PEERDNS=$PEERDNS/" \ ++ -e "s/^PPPOE_EXTRA=.*/PPPOE_EXTRA=\"$PPPOE_EXTRA\"/" \ + < $CONFIG-bak > $CONFIG + + if [ $? != 0 ] ; then diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/release-buildsystem.diff b/release-buildsystem.diff new file mode 100644 index 0000000..6d0979f --- /dev/null +++ b/release-buildsystem.diff @@ -0,0 +1,17 @@ +--- src/Makefile.in 2002/10/01 16:36:57 1.1 ++++ src/Makefile.in 2002/10/01 16:39:27 +@@ -194,11 +194,9 @@ + mkdir -p $(RPM_INSTALL_ROOT)/etc/rc.d/init.d ;\ + $(install) -m 755 ../scripts/adsl-init-turbolinux $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/adsl ; \ + fi +- @if [ -f /etc/SuSE-release ] ; then \ +- echo "Looks like a SuSE Linux system; installing $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/pppoe" ; \ +- mkdir -p $(RPM_INSTALL_ROOT)/etc/rc.d/init.d ;\ +- $(install) -m 755 ../scripts/pppoe-init-suse $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/pppoe ; \ +- fi ++ echo "Looks like a SuSE Linux system; installing $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/pppoe" ; \ ++ mkdir -p $(RPM_INSTALL_ROOT)/etc/init.d ;\ ++ $(install) -m 755 ../scripts/pppoe-init-suse $(RPM_INSTALL_ROOT)/etc/init.d/pppoe ; \ + + # L2TP + @if [ -f l2tp/handlers/sync-pppd.so ] ; then \ diff --git a/release.diff b/release.diff new file mode 100644 index 0000000..629504b --- /dev/null +++ b/release.diff @@ -0,0 +1,17 @@ +--- src/Makefile.in ++++ src/Makefile.in +@@ -194,10 +194,10 @@ + mkdir -p $(RPM_INSTALL_ROOT)/etc/rc.d/init.d ;\ + $(install) -m 755 ../scripts/pppoe-init-turbolinux $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/pppoe ; \ + fi +- @if [ -f /etc/SuSE-release ] ; then \ +- echo "Looks like a SuSE Linux system; installing $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/pppoe" ; \ +- mkdir -p $(RPM_INSTALL_ROOT)/etc/rc.d/init.d ;\ +- $(install) -m 755 ../scripts/pppoe-init-suse $(RPM_INSTALL_ROOT)/etc/rc.d/init.d/pppoe ; \ ++ @if [ -f /etc/SuSE-release -o -f /etc/UnitedLinux-release ] ; then \ ++ echo "Looks like a SuSE Linux/UnitedLinux system; installing $(RPM_INSTALL_ROOT)/etc/init.d/pppoe" ; \ ++ mkdir -p $(RPM_INSTALL_ROOT)/etc/init.d ;\ ++ $(install) -m 755 ../scripts/pppoe-init-suse $(RPM_INSTALL_ROOT)/etc/init.d/pppoe ; \ + fi + + # L2TP diff --git a/resolve-conf.diff b/resolve-conf.diff new file mode 100644 index 0000000..0dfecef --- /dev/null +++ b/resolve-conf.diff @@ -0,0 +1,19 @@ +--- scripts/pppoe-connect.in ++++ scripts/pppoe-connect.in +@@ -217,11 +217,12 @@ + PPP_STD_OPTIONS="$PLUGIN_OPTS noipdefault noauth default-asyncmap $DEFAULTROUTE hide-password nodetach $PEERDNS mtu 1492 mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp user $USER lcp-echo-interval $LCP_INTERVAL lcp-echo-failure $LCP_FAILURE $PPPD_EXTRA" + + # Jigger DNS if required... +-if test "$DNSTYPE" = "SERVER" ; then ++#if test "$DNSTYPE" = "SERVER" ; then + # Sorry, dude... +- rm -f /etc/resolv.conf +- ln -s /etc/ppp/resolv.conf /etc/resolv.conf +-elif test "$DNSTYPE" = "SPECIFY" ; then ++ # done in ip-up/down ++ # rm -f /etc/resolv.conf ++ # ln -s /etc/ppp/resolv.conf /etc/resolv.conf ++if test "$DNSTYPE" = "SPECIFY" ; then + # Sorry, dude... + rm -f /etc/resolv.conf + echo "nameserver $DNS1" > /etc/resolv.conf diff --git a/rp-pppoe-3.8.tar.bz2 b/rp-pppoe-3.8.tar.bz2 new file mode 100644 index 0000000..2b7c55f --- /dev/null +++ b/rp-pppoe-3.8.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1cd1a8ff67c4981ea861094582875c8e66e48a001f778f4f2ea44ea53ef90e3 +size 183203 diff --git a/rp-pppoe.changes b/rp-pppoe.changes new file mode 100644 index 0000000..aa316a0 --- /dev/null +++ b/rp-pppoe.changes @@ -0,0 +1,205 @@ +------------------------------------------------------------------- +Thu Jul 13 14:52:42 CEST 2006 - mskibbe@suse.de + +- update to version 3.8 which + o Adjusted code and made it possible to disable debugging code + to shrink size of pppoe executable. + o Fixed bug in MD5 code that caused pppoe-server to segfault on + 64-bit machines. + o Made various functions and variables static that didn't need + to be visible outside their source files. + +------------------------------------------------------------------- +Fri May 26 20:14:40 CEST 2006 - schwab@suse.de + +- Use RPM_OPT_FLAGS. +- Don't strip binaries. + +------------------------------------------------------------------- +Wed Jan 25 21:41:12 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Nov 17 11:54:52 CET 2005 - arvin@suse.de + +- updated to version 3.7 + - pppoe-server prepends "nic-" to interface name if used with + kernel-mode plugin + - added -O option to pppoe-server that specify a different + default options file for pppd + +------------------------------------------------------------------- +Wed Sep 21 16:39:17 CEST 2005 - arvin@suse.de + +- updated to version 3.6: + - Changed the names of commands from adsl-* to pppoe-* to + more logically name the scripts (incompatibility) + - Changed sample firewall scripts to use iptables instead of + the old ipchains command + +------------------------------------------------------------------- +Wed Jan 19 14:24:03 CET 2005 - arvin@suse.de + +- fixed build on s390 by compiling without -ansi + +------------------------------------------------------------------- +Sat Jan 10 18:49:07 CET 2004 - adrian@suse.de + +- build as user + +------------------------------------------------------------------- +Fri Sep 5 13:16:13 CEST 2003 - ro@suse.de + +- fix typo in specfile + +------------------------------------------------------------------- +Fri Sep 5 05:54:15 CEST 2003 - kukuk@suse.de + +- Add %attr to get filelist in sync with /etc/permissions* + +------------------------------------------------------------------- +Fri Jun 13 07:20:02 CEST 2003 - nashif@suse.de + +- Added %dir to created directories + +------------------------------------------------------------------- +Fri May 16 00:24:33 CEST 2003 - nashif@suse.de + +- Fixed init script syntax (bug #26248) +- Fixed file list + +------------------------------------------------------------------- +Mon Mar 10 16:37:39 CET 2003 - nashif@suse.de + +- dont link /etc/resolv.conf, done by ip-up ( #15707) + +------------------------------------------------------------------- +Wed Oct 2 00:33:10 CEST 2002 - nashif@suse.de + +- Don't check for release file + +------------------------------------------------------------------- +Mon Sep 30 15:43:42 CEST 2002 - nashif@suse.de + +- fixed bug #20327: wrong path to logger in scripts + +------------------------------------------------------------------- +Mon Aug 19 12:08:09 CEST 2002 - kukuk@suse.de + +- fixed compilation on UL + +------------------------------------------------------------------- +Mon Aug 19 00:23:31 CEST 2002 - nashif@suse.de + +- Fixed bug #17866: Added PreReq + +------------------------------------------------------------------- +Sat Aug 10 19:00:53 CEST 2002 - nashif@suse.de + +- Fix bug #17465: detect non-rfc modems +- Fix bug #17466: use netfilter instead of ipchains + +------------------------------------------------------------------- +Mon Jul 29 04:30:52 CEST 2002 - nashif@suse.de + +- update to 3.5 + +------------------------------------------------------------------- +Mon Jan 14 14:25:23 CET 2002 - ro@suse.de + +- removed START_ADSL + +------------------------------------------------------------------- +Sat Oct 20 05:56:44 CEST 2001 - nashif@suse.de + +- Update to 3.3 + * Client works on Solaris again. It was broken in 3.2. + * Added DEFAULTROUTE=yes|no option to configuration file. + * Server parses address pool file better. + * Server address pool allows ranges of addresses on a line: a.b.c.d-e + * Added "-d" (=debug) and "-P" (=check pool file syntax) options to + pppoe-server. + +------------------------------------------------------------------- +Fri Aug 3 03:52:25 CEST 2001 - nashif@suse.de + +- Update to version 3.2 + +------------------------------------------------------------------- +Thu Jun 28 16:27:24 CEST 2001 - nashif@suse.de + +- Fixed bug #8966 +- bzipped sources + +------------------------------------------------------------------- +Sat Apr 21 05:22:34 CEST 2001 - nashif@suse.de + +- Fixed documentation path in GUI +- Added GUI documentation + +------------------------------------------------------------------- +Thu Apr 5 17:33:57 CEST 2001 - nashif@suse.de + +- Fixed init script (Use rc_status) + +------------------------------------------------------------------- +Tue Apr 3 19:41:20 CEST 2001 - nashif@suse.de + +- Update to version 3.0 + +------------------------------------------------------------------- +Thu Mar 1 01:06:28 CET 2001 - nashif@suse.de + +- Update to version 2.8 +- Fixed headers + +------------------------------------------------------------------- +Fri Dec 22 06:53:50 MET 2000 - nashif@suse.de + +- Added obosletes and provides tags + +------------------------------------------------------------------- +Wed Dec 13 06:39:51 MET 2000 - nashif@suse.de + +- Update to 2.5 (Fixes security problem) + +------------------------------------------------------------------- +Sat Dec 9 16:29:42 MET 2000 - nashif@suse.de + +- Update to 2.4 +- Fix rcadsl link +- Changed name tp rp-pppoe + +------------------------------------------------------------------- +Wed Nov 29 12:44:50 MET 2000 - nashif@suse.de + +- Use insserv + +------------------------------------------------------------------- +Fri Sep 22 19:34:25 MEST 2000 - nashif@suse.de + +- Updated to 2.3 + +------------------------------------------------------------------- +Thu May 25 06:24:32 MEST 2000 - nashif@suse.de + +- Updated to 1.9 +- Added init script + +------------------------------------------------------------------- +Sun May 7 18:01:13 MEST 2000 - nashif@suse.de + +- Update to version 1.8 + +------------------------------------------------------------------- +Wed Mar 29 17:59:12 CEST 2000 - nashif@suse.de + +- Update to version 1.7 +- Fixed Group & Buildroot tag + +------------------------------------------------------------------- +Wed Feb 23 01:43:27 CET 2000 - nashif@suse.de + +- Initial Release (Version 1.3) + diff --git a/rp-pppoe.spec b/rp-pppoe.spec new file mode 100644 index 0000000..3f9d100 --- /dev/null +++ b/rp-pppoe.spec @@ -0,0 +1,234 @@ +# +# spec file for package rp-pppoe (Version 3.8) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: rp-pppoe +BuildRequires: ppp +Summary: A PPP Over Ethernet Redirector for PPPD +Version: 3.8 +Release: 1 +License: GPL +Group: Productivity/Networking/PPP +Source: http://www.roaringpenguin.com/pppoe/rp-pppoe-%{version}.tar.bz2 +URL: http://www.roaringpenguin.com/pppoe +Patch0: init-suse.diff +Patch1: docdir.diff +Patch2: nonrfc-modems.diff +Patch3: logger-path.diff +Patch4: release.diff +Patch5: release-buildsystem.diff +Patch6: resolve-conf.diff +Patch7: no-ansi.diff +Patch8: strip.diff +Requires: ppp >= 2.3.7 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +PreReq: %insserv_prereq %fillup_prereq + +%description +rp-pppoe is a user-space redirector which permits the use of PPPoE +(Point-to-Point Protocol Over Ethernet) with Linux. PPPoE is used by +many ADSL service providers. + + + +Authors: +-------- + David F. Skoll + +%prep +%setup -q +%patch0 +%patch1 +%patch2 +%patch3 +%if %suse_version > 810 +%patch5 +%else +%patch4 +%endif +%patch6 +%patch7 +%patch8 + +%build +cd src +CFLAGS=$RPM_OPT_FLAGS \ +./configure --mandir=%{_mandir} --prefix=/usr +make +cd ../gui +make + +%install +cd src +make install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT +ln -sf ../../etc/init.d/pppoe $RPM_BUILD_ROOT/usr/sbin/rcpppoe +cd ../gui +make install RPM_INSTALL_ROOT=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%_defaultdocdir/rp-pppoe +mv $RPM_BUILD_ROOT/etc/ppp/plugins/README $RPM_BUILD_ROOT%_defaultdocdir/rp-pppoe/README.plugins +rm -rf $RPM_BUILD_ROOT/etc/ppp/plugins + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%{fillup_and_insserv pppoe} + +%preun +%{insserv_cleanup} + +%files +%defattr(-,root,root) +%dir %_defaultdocdir/rp-pppoe +%doc %_defaultdocdir/rp-pppoe/* +%config(noreplace) /etc/ppp/pppoe.conf +%config(noreplace) /etc/ppp/pppoe-server-options +%config(noreplace) /etc/ppp/firewall-masq +%config(noreplace) /etc/ppp/firewall-standalone +/usr/sbin/pppoe +/usr/sbin/pppoe-server +/usr/sbin/pppoe-sniff +/usr/sbin/pppoe-relay +/usr/sbin/pppoe-connect +/usr/sbin/pppoe-start +/usr/sbin/pppoe-stop +/usr/sbin/pppoe-setup +/usr/sbin/pppoe-status +%{_mandir}/man5/pppoe.conf.5* +%{_mandir}/man8/pppoe.8* +%{_mandir}/man8/pppoe-server.8* +%{_mandir}/man8/pppoe-relay.8* +%{_mandir}/man8/pppoe-sniff.8* +%{_mandir}/man8/pppoe-connect.8* +%{_mandir}/man8/pppoe-start.8* +%{_mandir}/man8/pppoe-stop.8* +%{_mandir}/man8/pppoe-status.8* +%{_mandir}/man8/pppoe-setup.8* +/etc/init.d/pppoe +/usr/sbin/rcpppoe +%dir /etc/ppp/rp-pppoe-gui +%attr (4750,root,dialout) /usr/sbin/pppoe-wrapper +/usr/bin/tkpppoe +%{_mandir}/man1/tkpppoe.1* +%{_mandir}/man1/pppoe-wrapper.1* +%dir /usr/share/tkpppoe +/usr/share/tkpppoe/tkpppoe.html +/usr/share/tkpppoe/mainwin-busy.png +/usr/share/tkpppoe/mainwin-nonroot.png +/usr/share/tkpppoe/mainwin.png +/usr/share/tkpppoe/props-advanced.png +/usr/share/tkpppoe/props-basic.png +/usr/share/tkpppoe/props-nic.png +/usr/share/tkpppoe/props-options.png +/usr/share/tkpppoe/en.msg +/usr/share/tkpppoe/ja.msg + +%changelog -n rp-pppoe +* Thu Jul 13 2006 - mskibbe@suse.de +- update to version 3.8 which + o Adjusted code and made it possible to disable debugging code + to shrink size of pppoe executable. + o Fixed bug in MD5 code that caused pppoe-server to segfault on + 64-bit machines. + o Made various functions and variables static that didn't need + to be visible outside their source files. +* Fri May 26 2006 - schwab@suse.de +- Use RPM_OPT_FLAGS. +- Don't strip binaries. +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Thu Nov 17 2005 - arvin@suse.de +- updated to version 3.7 +- pppoe-server prepends "nic-" to interface name if used with + kernel-mode plugin +- added -O option to pppoe-server that specify a different + default options file for pppd +* Wed Sep 21 2005 - arvin@suse.de +- updated to version 3.6: +- Changed the names of commands from adsl-* to pppoe-* to + more logically name the scripts (incompatibility) +- Changed sample firewall scripts to use iptables instead of + the old ipchains command +* Wed Jan 19 2005 - arvin@suse.de +- fixed build on s390 by compiling without -ansi +* Sat Jan 10 2004 - adrian@suse.de +- build as user +* Fri Sep 05 2003 - ro@suse.de +- fix typo in specfile +* Fri Sep 05 2003 - kukuk@suse.de +- Add %%attr to get filelist in sync with /etc/permissions* +* Fri Jun 13 2003 - nashif@suse.de +- Added %%dir to created directories +* Fri May 16 2003 - nashif@suse.de +- Fixed init script syntax (bug #26248) +- Fixed file list +* Mon Mar 10 2003 - nashif@suse.de +- dont link /etc/resolv.conf, done by ip-up ( #15707) +* Wed Oct 02 2002 - nashif@suse.de +- Don't check for release file +* Mon Sep 30 2002 - nashif@suse.de +- fixed bug #20327: wrong path to logger in scripts +* Mon Aug 19 2002 - kukuk@suse.de +- fixed compilation on UL +* Mon Aug 19 2002 - nashif@suse.de +- Fixed bug #17866: Added PreReq +* Sat Aug 10 2002 - nashif@suse.de +- Fix bug #17465: detect non-rfc modems +- Fix bug #17466: use netfilter instead of ipchains +* Mon Jul 29 2002 - nashif@suse.de +- update to 3.5 +* Mon Jan 14 2002 - ro@suse.de +- removed START_ADSL +* Sat Oct 20 2001 - nashif@suse.de +- Update to 3.3 + * Client works on Solaris again. It was broken in 3.2. + * Added DEFAULTROUTE=yes|no option to configuration file. + * Server parses address pool file better. + * Server address pool allows ranges of addresses on a line: a.b.c.d-e + * Added "-d" (=debug) and "-P" (=check pool file syntax) options to + pppoe-server. +* Fri Aug 03 2001 - nashif@suse.de +- Update to version 3.2 +* Thu Jun 28 2001 - nashif@suse.de +- Fixed bug #8966 +- bzipped sources +* Sat Apr 21 2001 - nashif@suse.de +- Fixed documentation path in GUI +- Added GUI documentation +* Thu Apr 05 2001 - nashif@suse.de +- Fixed init script (Use rc_status) +* Tue Apr 03 2001 - nashif@suse.de +- Update to version 3.0 +* Thu Mar 01 2001 - nashif@suse.de +- Update to version 2.8 +- Fixed headers +* Fri Dec 22 2000 - nashif@suse.de +- Added obosletes and provides tags +* Wed Dec 13 2000 - nashif@suse.de +- Update to 2.5 (Fixes security problem) +* Sat Dec 09 2000 - nashif@suse.de +- Update to 2.4 +- Fix rcadsl link +- Changed name tp rp-pppoe +* Wed Nov 29 2000 - nashif@suse.de +- Use insserv +* Fri Sep 22 2000 - nashif@suse.de +- Updated to 2.3 +* Thu May 25 2000 - nashif@suse.de +- Updated to 1.9 +- Added init script +* Sun May 07 2000 - nashif@suse.de +- Update to version 1.8 +* Wed Mar 29 2000 - nashif@suse.de +- Update to version 1.7 +- Fixed Group & Buildroot tag +* Wed Feb 23 2000 - nashif@suse.de +- Initial Release (Version 1.3) diff --git a/strip.diff b/strip.diff new file mode 100644 index 0000000..8b617d9 --- /dev/null +++ b/strip.diff @@ -0,0 +1,11 @@ +--- gui/Makefile.in ++++ gui/Makefile.in +@@ -46,7 +46,7 @@ + -mkdir -p $(RPM_INSTALL_ROOT)$(sbindir) + -mkdir -p $(RPM_INSTALL_ROOT)$(bindir) + -mkdir -p $(RPM_INSTALL_ROOT)/etc/ppp/rp-pppoe-gui +- $(install) -m 4755 -s pppoe-wrapper $(RPM_INSTALL_ROOT)$(sbindir) ++ $(install) -m 4755 pppoe-wrapper $(RPM_INSTALL_ROOT)$(sbindir) + $(install) -m 755 tkpppoe $(RPM_INSTALL_ROOT)$(bindir) + -mkdir -p $(RPM_INSTALL_ROOT)$(mandir)/man1 + $(install) -m 644 pppoe-wrapper.1 $(RPM_INSTALL_ROOT)$(mandir)/man1