diff --git a/docdir.diff b/docdir.diff deleted file mode 100644 index 5fb7087..0000000 --- a/docdir.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- ./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/nonrfc-modems.diff b/nonrfc-modems.diff deleted file mode 100644 index 782b86c..0000000 --- a/nonrfc-modems.diff +++ /dev/null @@ -1,63 +0,0 @@ ---- 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/rp-pppoe-3.13.tar.gz b/rp-pppoe-3.13.tar.gz deleted file mode 100644 index 6b53136..0000000 --- a/rp-pppoe-3.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8cd6bc71ba46bd5f6eb4daf60220ccdcd991a8525111dee466501b1b9717e676 -size 224204 diff --git a/rp-pppoe-3.10-config.patch b/rp-pppoe-3.14-config.patch similarity index 66% rename from rp-pppoe-3.10-config.patch rename to rp-pppoe-3.14-config.patch index fcbaa48..8b23d52 100644 --- a/rp-pppoe-3.10-config.patch +++ b/rp-pppoe-3.14-config.patch @@ -1,5 +1,6 @@ ---- rp-pppoe-3.12.orig/scripts/pppoe-connect.in 2015-11-11 17:10:02.000000000 +0200 -+++ rp-pppoe-3.12/scripts/pppoe-connect.in 2016-11-16 17:25:28.510472180 +0200 +diff -Pdpru rp-pppoe-3.14.orig/scripts/pppoe-connect.in rp-pppoe-3.14/scripts/pppoe-connect.in +--- rp-pppoe-3.14.orig/scripts/pppoe-connect.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/scripts/pppoe-connect.in 2020-05-28 03:25:07.471458502 +0300 @@ -18,7 +18,7 @@ # Usage: pppoe-connect [config_file] # pppoe-connect interface user [config_file] @@ -17,4 +18,4 @@ +CONFIG=/etc/ppp/pppoe.conf USER="" ETH="" - \ No newline at end of file + diff --git a/rp-pppoe-3.14-docdir.patch b/rp-pppoe-3.14-docdir.patch new file mode 100644 index 0000000..2affa41 --- /dev/null +++ b/rp-pppoe-3.14-docdir.patch @@ -0,0 +1,12 @@ +diff -Pdpru rp-pppoe-3.14.orig/src/Makefile.in rp-pppoe-3.14/src/Makefile.in +--- rp-pppoe-3.14.orig/src/Makefile.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/src/Makefile.in 2020-05-27 21:06:28.850733710 +0300 +@@ -23,7 +23,7 @@ DEFINES= + prefix=@prefix@ + exec_prefix=@exec_prefix@ + mandir=@mandir@ +-docdir=@prefix@/share/doc/rp-pppoe-$(RP_VERSION) ++docdir=@prefix@/share/doc/packages/rp-pppoe + install=@INSTALL@ + install_dir=@INSTALL@ -d + sbindir=@sbindir@ diff --git a/rp-pppoe-3.10-init.patch b/rp-pppoe-3.14-init.patch similarity index 51% rename from rp-pppoe-3.10-init.patch rename to rp-pppoe-3.14-init.patch index 9eae266..a2e253b 100644 --- a/rp-pppoe-3.10-init.patch +++ b/rp-pppoe-3.14-init.patch @@ -1,8 +1,8 @@ -diff -ruN rp-pppoe-3.10-orig/scripts/pppoe-init-suse.in rp-pppoe-3.10/scripts/pppoe-init-suse.in ---- rp-pppoe-3.10-orig/scripts/pppoe-init-suse.in 2008-06-30 14:00:42.000000000 +0000 -+++ rp-pppoe-3.10/scripts/pppoe-init-suse.in 2009-05-08 00:07:50.511480596 +0000 -@@ -12,53 +12,114 @@ - # 2 or any later version. +diff -Pdpru rp-pppoe-3.14.orig/scripts/pppoe-init-suse.in rp-pppoe-3.14/scripts/pppoe-init-suse.in +--- rp-pppoe-3.14.orig/scripts/pppoe-init-suse.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/scripts/pppoe-init-suse.in 2020-05-28 03:46:47.354070399 +0300 +@@ -15,53 +15,106 @@ + # Modifed to work with SuSE 6.4 linux by Gary Cameron. # -# Source function library. @@ -37,7 +37,7 @@ diff -ruN rp-pppoe-3.10-orig/scripts/pppoe-init-suse.in rp-pppoe-3.10/scripts/pp -test "$PPPoE_START" = "yes" || exit 0 +CONFIG=`cat @sbindir@/pppoe-start | grep "^CONFIG" | awk -F"=" '{print $2}'` -+CF_BASE=$(basename $CONFIG) ++CF_BASE=`basename $CONFIG` +PIDFILE=`cat $CONFIG | grep "^PIDFILE" | awk -F"=" '{print $2}'` +PPPOE_PIDFILE=`cat @sbindir@/pppoe-connect | grep "^PPPOE_PIDFILE" | awk -F"=" '{print $2}'` +PPPD_PIDFILE=`cat @sbindir@/pppoe-connect | grep "^PPPD_PIDFILE" | awk -F"=" '{print $2}'` @@ -57,7 +57,6 @@ diff -ruN rp-pppoe-3.10-orig/scripts/pppoe-init-suse.in rp-pppoe-3.10/scripts/pp + esac + return $RES +} -+ # The echo return value for success (defined in /etc/rc.config). -return=$rc_done @@ -66,79 +65,66 @@ diff -ruN rp-pppoe-3.10-orig/scripts/pppoe-init-suse.in rp-pppoe-3.10/scripts/pp - echo -n "Bringing up PPPoE link" - $START > /dev/null 2>&1 || return=$rc_failed - echo -e "$return" -- ;; -+ echo -n "Bringing up PPPoE link: " -+ $START > /dev/null 2>&1 - -+ # Remember status and be verbose -+ rc_status -v -+ ;; ++ echo -n "Bringing up PPPoE link: " ++ $START > /dev/null 2>&1 ++ # Remember status and be verbose ++ rc_status -v + ;; +- stop) - echo -n "Shutting down PPPoE link" - $STOP > /dev/null 2>&1 || return=$rc_failed - echo -e "$return" -- ;; -+ echo -n "Shutting down PPPoE link: " -+ $STOP > /dev/null 2>&1 - -+ # Remember status and be verbose -+ rc_status -v -+ ;; ++ echo -n "Shutting down PPPoE link: " ++ $STOP > /dev/null 2>&1 ++ # Remember status and be verbose ++ rc_status -v ++ ;; + try-restart) -+ ## Stop the service and regardless of whether it was -+ ## running or not, start it again. -+ $0 stop -+ $0 start -+ -+ # Remember status and be quiet -+ rc_status -+ ;; - restart) -- $0 stop -- echo "Waiting" $restart_time "seconds for the host to reset itself" -- sleep $restart_time #Note: Need time for host to reset itself -- $0 start -- ;; ++ ## Stop the service and regardless of whether it was ++ ## running or not, start it again. ++ $0 stop ++ $0 start ++ # Remember status and be quiet ++ rc_status + ;; - -+ $0 stop -+ echo "Waiting" $restart_time "seconds for the host to reset itself" -+ sleep $restart_time #Note: Need time for host to reset itself -+ $0 start -+ -+ # Remember status and be quiet -+ rc_status -+ ;; + restart) + $0 stop + echo "Waiting" $restart_time "seconds for the host to reset itself" + sleep $restart_time #Note: Need time for host to reset itself + $0 start ++ # Remember status and be quiet ++ rc_status ++ ;; + reload|force-reload) -+ echo -n "Reload PPPoE link: " -+ rc_failed 5 -+ -+ # Remember status and be verbose -+ rc_status -v -+ ;; ++ echo -n "Reload PPPoE link: " ++ rc_failed 5 ++ # Remember status and be verbose ++ rc_status -v + ;; +- status) - $STATUS -- ;; ++ echo -n "Checking PPPoE link: " ++ # Return value is slightly different for the status command: ++ # 0 - service up and running ++ # 1 - service dead, but /var/run/ pid file exists ++ # 2 - service dead, but /var/lock/ lock file exists ++ # 3 - service not running (unused) ++ # 4 - service status unknown :-( ++ # 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.) ++ RET=`$STATUS > /dev/null 2>&1; echo $?` ++ chk_status $RET ++ # Remember status and be verbose ++ rc_status -v + ;; - -+ echo -n "Checking PPPoE link: " -+ # Return value is slightly different for the status command: -+ # 0 - service up and running -+ # 1 - service dead, but /var/run/ pid file exists -+ # 2 - service dead, but /var/lock/ lock file exists -+ # 3 - service not running (unused) -+ # 4 - service status unknown :-( -+ # 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.) -+ RET=`$STATUS > /dev/null 2>&1; echo $?` -+ chk_status $RET -+ -+ # Remember status and be verbose -+ rc_status -v -+ ;; *) - echo "Usage: pppoe {start|stop|restart|status}" -- exit 1 -+ echo "Usage: pppoe {start|stop|restart|status|try-restart}" -+ exit 1 ++ echo "Usage: pppoe {start|stop|restart|status|try-restart}" + exit 1 esac -+rc_exit - +- -exit 0 ++rc_exit diff --git a/rp-pppoe-3.14-nonrfc-modems.patch b/rp-pppoe-3.14-nonrfc-modems.patch new file mode 100644 index 0000000..8de9aec --- /dev/null +++ b/rp-pppoe-3.14-nonrfc-modems.patch @@ -0,0 +1,64 @@ +diff -Pdpru rp-pppoe-3.14.orig/scripts/pppoe-setup.in rp-pppoe-3.14/scripts/pppoe-setup.in +--- rp-pppoe-3.14.orig/scripts/pppoe-setup.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/scripts/pppoe-setup.in 2020-05-28 02:55:29.251934958 +0300 +@@ -109,6 +109,42 @@ while [ true ] ; do + 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" +@@ -220,6 +256,9 @@ while [ true ] ; do + 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" +@@ -296,6 +335,7 @@ sed -e "s&^USER=.*&USER='$U'&" \ + -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/rp-pppoe-pie.patch b/rp-pppoe-3.14-pie.patch similarity index 61% rename from rp-pppoe-pie.patch rename to rp-pppoe-3.14-pie.patch index 0a59e09..c37fbf6 100644 --- a/rp-pppoe-pie.patch +++ b/rp-pppoe-3.14-pie.patch @@ -1,6 +1,7 @@ ---- gui/Makefile.in.orig -+++ gui/Makefile.in -@@ -37,10 +37,10 @@ all: pppoe-wrapper +diff -Pdpru rp-pppoe-3.14.orig/gui/Makefile.in rp-pppoe-3.14/gui/Makefile.in +--- rp-pppoe-3.14.orig/gui/Makefile.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/gui/Makefile.in 2020-05-28 03:51:05.322582248 +0300 +@@ -38,10 +38,10 @@ all: pppoe-wrapper @echo "Type 'make install' as root to install the software." pppoe-wrapper: wrapper.o diff --git a/release-buildsystem.diff b/rp-pppoe-3.14-release-buildsystem.patch similarity index 64% rename from release-buildsystem.diff rename to rp-pppoe-3.14-release-buildsystem.patch index 7a3b64c..6e3d851 100644 --- a/release-buildsystem.diff +++ b/rp-pppoe-3.14-release-buildsystem.patch @@ -1,10 +1,9 @@ -Index: src/Makefile.in -=================================================================== ---- src/Makefile.in.orig -+++ src/Makefile.in -@@ -214,11 +214,9 @@ install: all +diff -Pdpru rp-pppoe-3.14.orig/src/Makefile.in rp-pppoe-3.14/src/Makefile.in +--- rp-pppoe-3.14.orig/src/Makefile.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/src/Makefile.in 2020-05-28 03:07:40.557172960 +0300 +@@ -210,11 +210,9 @@ install: all mkdir -p $(DESTDIR)/etc/rc.d/init.d ;\ - $(install) -m 755 ../scripts/pppoe-init-turbolinux $(DESTDIR)/etc/rc.d/init.d/pppoe ; \ + $(install) -m 755 ../scripts/pppoe-init $(DESTDIR)/etc/rc.d/init.d/pppoe ; \ fi - @if [ -f /etc/SuSE-release ] ; then \ - echo "Looks like a SuSE Linux system; installing $(DESTDIR)/etc/rc.d/init.d/pppoe" ; \ diff --git a/resolve-conf.diff b/rp-pppoe-3.14-resolve-conf.patch similarity index 56% rename from resolve-conf.diff rename to rp-pppoe-3.14-resolve-conf.patch index 48949a4..529fe48 100644 --- a/resolve-conf.diff +++ b/rp-pppoe-3.14-resolve-conf.patch @@ -1,21 +1,22 @@ -Index: scripts/pppoe-connect.in -=================================================================== ---- scripts/pppoe-connect.in.orig -+++ scripts/pppoe-connect.in -@@ -232,11 +232,12 @@ fi +diff -Pdpru rp-pppoe-3.14.orig/scripts/pppoe-connect.in rp-pppoe-3.14/scripts/pppoe-connect.in +--- rp-pppoe-3.14.orig/scripts/pppoe-connect.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/scripts/pppoe-connect.in 2020-05-28 03:18:01.758770756 +0300 +@@ -232,16 +232,12 @@ fi PPP_STD_OPTIONS="$PLUGIN_OPTS $DOUNIT noipdefault noauth default-asyncmap $DEFAULTROUTE hide-password nodetach $PEERDNS mtu $MTU mru $MRU noaccomp 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... +- # 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 + if test -n "$DNS2" ; then +- echo "nameserver $DNS2" >> /etc/resolv.conf ++ echo "nameserver $DNS2" >> /etc/resolv.conf + fi + fi + diff --git a/strip.diff b/rp-pppoe-3.14-strip.patch similarity index 59% rename from strip.diff rename to rp-pppoe-3.14-strip.patch index 935b220..80468b6 100644 --- a/strip.diff +++ b/rp-pppoe-3.14-strip.patch @@ -1,6 +1,7 @@ ---- gui/Makefile.in -+++ gui/Makefile.in -@@ -46,7 +46,7 @@ +diff -Pdpru rp-pppoe-3.14.orig/gui/Makefile.in rp-pppoe-3.14/gui/Makefile.in +--- rp-pppoe-3.14.orig/gui/Makefile.in 2020-05-27 03:29:37.000000000 +0300 ++++ rp-pppoe-3.14/gui/Makefile.in 2020-05-28 03:54:38.555034196 +0300 +@@ -47,7 +47,7 @@ install: all -mkdir -p $(DESTDIR)$(sbindir) -mkdir -p $(DESTDIR)$(bindir) -mkdir -p $(DESTDIR)/etc/ppp/rp-pppoe-gui diff --git a/rp-pppoe-3.14.tar.gz b/rp-pppoe-3.14.tar.gz new file mode 100644 index 0000000..fe043cb --- /dev/null +++ b/rp-pppoe-3.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7825232f64ab4d618ef074d62d145ae43d6edc91b9a718c6130a4742bac40e2a +size 224688 diff --git a/rp-pppoe.changes b/rp-pppoe.changes index 7807fbc..6588333 100644 --- a/rp-pppoe.changes +++ b/rp-pppoe.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Thu May 28 01:11:10 UTC 2020 - Илья Индиго + +- Refresh spec-file via spec-cleaner and manual optimisations. + * Add make_build and autopatch macros. + * Remove group tag and obsoleted conditions. +- Refresh and rename patches: + * docdir.diff to rp-pppoe-3.14-docdir.patch + * nonrfc-modems.diff to rp-pppoe-3.14-nonrfc-modems.patch + * release-buildsystem.diff to rp-pppoe-3.14-release-buildsystem.patch + * resolve-conf.diff to rp-pppoe-3.14-resolve-conf.patch + * rp-pppoe-3.10-config.patch to rp-pppoe-3.14-config.patch + * rp-pppoe-3.10-init.patch to rp-pppoe-3.14-init.patch + * rp-pppoe-pie.patch to rp-pppoe-3.14-pie.patch + * strip.diff to rp-pppoe-3.14-strip.patch +- Update to 3.14 + * Add -H and -M options for sending HURL and MOTM packets respectively. + * Change VERSION macro to RP_VERSION to avoid conflict with pppd macro. + ------------------------------------------------------------------- Mon Jun 17 07:50:57 UTC 2019 - Илья Индиго diff --git a/rp-pppoe.spec b/rp-pppoe.spec index 89f8e9e..2bff31a 100644 --- a/rp-pppoe.spec +++ b/rp-pppoe.spec @@ -1,7 +1,7 @@ # # spec file for package rp-pppoe # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,11 +19,10 @@ %define _name pppoe %define _group dialout Name: rp-%{_name} -Version: 3.13 +Version: 3.14 Release: 0 Summary: A PPP Over Ethernet Redirector for PPPD License: GPL-2.0-or-later -Group: Productivity/Networking/PPP URL: https://dianne.skoll.ca/projects/%{name} Source0: https://dianne.skoll.ca/projects/%{name}/download/%{name}-%{version}.tar.gz Source1: %{_name}-connect @@ -33,26 +32,22 @@ Source4: %{_name}-status Source5: %{_name}-stop Source6: %{_name}.service Source7: %{_name}-server.service -Patch0: docdir.diff -Patch1: nonrfc-modems.diff -Patch2: release-buildsystem.diff -Patch3: resolve-conf.diff -Patch4: %{name}-3.10-config.patch -Patch5: %{name}-3.10-init.patch -Patch6: %{name}-pie.patch -Patch7: strip.diff +Patch0: %{name}-3.14-docdir.patch +Patch1: %{name}-3.14-nonrfc-modems.patch +Patch2: %{name}-3.14-release-buildsystem.patch +Patch3: %{name}-3.14-resolve-conf.patch +Patch4: %{name}-3.14-config.patch +Patch5: %{name}-3.14-init.patch +Patch6: %{name}-3.14-pie.patch +Patch7: %{name}-3.14-strip.patch BuildRequires: pkgconfig BuildRequires: ppp BuildRequires: pkgconfig(systemd) +Requires: group(%{_group}) Requires: net-tools Requires: ppp Requires(post): permissions -%if 0%{?suse_version} >= 1330 -Requires: group(%{_group}) Requires(pre): group(%{_group}) -%else -Requires(pre): shadow -%endif %description %{name} is a user-space redirector which permits the use of PPPoE @@ -61,21 +56,14 @@ many ADSL service providers. %prep %setup -q -%patch0 -%patch1 -%patch2 -%patch3 -%patch4 -p1 -%patch5 -p1 -%patch6 -%patch7 +%autopatch -p1 %build cd src %configure -make %{?_smp_mflags} +%make_build cd ../gui -make %{?_smp_mflags} +%make_build %install %make_install -C src