pkgsrc/net/rp-pppoe/patches/patch-af
tron 14dc4d0908 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.
2002-10-09 08:30:40 +00:00

29 lines
935 B
Text

$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