summaryrefslogtreecommitdiff
path: root/net/rp-pppoe/patches/patch-af
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-10-09 08:30:40 +0000
committertron <tron@pkgsrc.org>2002-10-09 08:30:40 +0000
commit14dc4d090811b06260bef7877c6270f3dd79a1b5 (patch)
tree15482c2c822d9947ed22e7c11640a620423a95f6 /net/rp-pppoe/patches/patch-af
parent098414ad1e6d50dcf6abeaf01706a7846defd790 (diff)
downloadpkgsrc-14dc4d090811b06260bef7877c6270f3dd79a1b5.tar.gz
Update "rp-pppoe" package to version 3.5. Changes since version 3.3:
- Fixes for compilation on Solaris. - INCOMPATIBILITY WITH EARLIER VERSIONS: Kernel-mode plugin now is built against latest CVS ppp source rather than Michal Ostrowski's patched version. If you use kernel-mode PPPoE, you MUST use the CVS version of the ppp source code with rp-pppoe 3.4. - Print PPPoE session number when connection terminates. Thanks to Alexander Dalloz for suggesting this. - Fixed a bug in MSS clamping -- it now works with protocol-field compression. Thanks to Gerd v. Egidy for the patch. - Ignore SIGINT and SIGTERM so LCP termination packets make it out. This update also contains a patch for PR pkg/18525 by Lex Wennmacher.
Diffstat (limited to 'net/rp-pppoe/patches/patch-af')
-rw-r--r--net/rp-pppoe/patches/patch-af29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/rp-pppoe/patches/patch-af b/net/rp-pppoe/patches/patch-af
new file mode 100644
index 00000000000..81613fffc60
--- /dev/null
+++ b/net/rp-pppoe/patches/patch-af
@@ -0,0 +1,29 @@
+$NetBSD: patch-af,v 1.1 2002/10/09 08:30:43 tron Exp $
+
+--- ../scripts/adsl-connect.in.orig Mon Jul 8 16:38:24 2002
++++ ../scripts/adsl-connect.in Mon Oct 7 22:31:42 2002
+@@ -218,12 +218,20 @@
+
+ # Jigger DNS if required...
+ if test "$DNSTYPE" = "SERVER" ; then
+- # Sorry, dude...
+- rm -f /etc/resolv.conf
++ if test -f /etc/resolv.conf -a ! -f /etc/resolv.conf.rp-pppoe-save
++ then
++ mv /etc/resolv.conf /etc/resolv.conf.rp-pppoe-save
++ else
++ rm -f /etc/resolv.conf
++ fi
+ ln -s /etc/ppp/resolv.conf /etc/resolv.conf
+ elif test "$DNSTYPE" = "SPECIFY" ; then
+- # Sorry, dude...
+- rm -f /etc/resolv.conf
++ if test -f /etc/resolv.conf -a ! -f /etc/resolv.conf.rp-pppoe-save
++ then
++ mv /etc/resolv.conf /etc/resolv.conf.rp-pppoe-save
++ else
++ rm -f /etc/resolv.conf
++ fi
+ echo "nameserver $DNS1" > /etc/resolv.conf
+ if test -n "$DNS2" ; then
+ echo "nameserver $DNS2" >> /etc/resolv.conf