summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-03-20 13:19:23 +0000
committerRoy Marples <uberlord@gentoo.org>2006-03-20 13:19:23 +0000
commitd7f9a07d3f7443cbd2c9e200dfce904a7be67654 (patch)
treebdd6bfed53ab2479148f661a9ffadf685556f408 /net-misc
parentStable on alpha wrt bug #126891. Tested by Thomas Cort <tcort@cs.ubishops.ca> (diff)
downloadhistorical-d7f9a07d3f7443cbd2c9e200dfce904a7be67654.tar.gz
historical-d7f9a07d3f7443cbd2c9e200dfce904a7be67654.tar.bz2
historical-d7f9a07d3f7443cbd2c9e200dfce904a7be67654.zip
Rework metric patch for non bash versions
Package-Manager: portage-2.1_pre6-r4
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/dhcp/Manifest18
-rw-r--r--net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch119
-rw-r--r--net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch20
3 files changed, 101 insertions, 56 deletions
diff --git a/net-misc/dhcp/Manifest b/net-misc/dhcp/Manifest
index 8b4c26268646..737a1512cb25 100644
--- a/net-misc/dhcp/Manifest
+++ b/net-misc/dhcp/Manifest
@@ -31,15 +31,15 @@ SHA256 a8db9eb98397a9c1b3a0de07fc107c39dc4f6a4a331d404fc6fcc4a8dbc7aeae files/dh
MD5 d0f61288e81ce020573f3f6965af8489 files/dhcp-3.0.2-gmake.patch 1872
RMD160 d2d41c0a7e002103d68605d2492bfe716bb2889e files/dhcp-3.0.2-gmake.patch 1872
SHA256 b2bbfc1d1f5b4d03ff3f53b3974ec32731e5f626de8f8d127328591e4c721215 files/dhcp-3.0.2-gmake.patch 1872
-MD5 b84c373c502e00beaf0882d4a4914915 files/dhcp-3.0.3-dhclient-metric.patch 6172
-RMD160 c0ace5ebee7bf2e7ef187724ab8d91afacd37f39 files/dhcp-3.0.3-dhclient-metric.patch 6172
-SHA256 96e65f4826aa24ee760778d8f2dc5bd5ecfe44b8a6904e11b8f4eda03a8daaaf files/dhcp-3.0.3-dhclient-metric.patch 6172
+MD5 1291615bd274332f7aa69504604609fe files/dhcp-3.0.3-dhclient-metric.patch 6506
+RMD160 b3016c843978dc37ed4ce4ed0f5f560f06e32e50 files/dhcp-3.0.3-dhclient-metric.patch 6506
+SHA256 6e0892dae510662c1c59f9b7c235ee8d16a66310f663ac0cdd780ac6e8f73c35 files/dhcp-3.0.3-dhclient-metric.patch 6506
MD5 0c9596d1fbd7ce8c71d4dc76f0553f6c files/dhcp-3.0.3-dhclient-ntp.patch 5340
RMD160 7f72e52af2a6e9d646655020e512133af1e13bf0 files/dhcp-3.0.3-dhclient-ntp.patch 5340
SHA256 768fb750df7c888194231a3090b0c1929cbd51490d3e9ff5515e0a0cbb776f55 files/dhcp-3.0.3-dhclient-ntp.patch 5340
-MD5 35c34c7946c8eca701915a86feeddebd files/dhcp-3.0.3-dhclient-resolvconf.patch 8361
-RMD160 321320e6d77dc97e956130d6b5d9913c4e88aa7d files/dhcp-3.0.3-dhclient-resolvconf.patch 8361
-SHA256 67104e03ed36aaca671b33410e5b157476b2bad74bc2dd98388e26685e45ab83 files/dhcp-3.0.3-dhclient-resolvconf.patch 8361
+MD5 74fe23ddbbd8735f0791ed5718739b65 files/dhcp-3.0.3-dhclient-resolvconf.patch 8361
+RMD160 e4951517400111263003d7c598420906f7734b4c files/dhcp-3.0.3-dhclient-resolvconf.patch 8361
+SHA256 fb01a0a5d78db8e51b94358d84ac5dd4d92c1e59c27aa0dfeaca11f517ec54ae files/dhcp-3.0.3-dhclient-resolvconf.patch 8361
MD5 d81606fd8cdd2376018c6466fe9cf0ef files/dhcp-3.0.3-dhclient-stdin-conf.patch 1948
RMD160 42f32a5bbfe2a937827c2972ef84cfa78c2c401c files/dhcp-3.0.3-dhclient-stdin-conf.patch 1948
SHA256 e1bfd26b7da10acc4bd718e35aae4235308abcacde78dedf39533b11ab18b3ae files/dhcp-3.0.3-dhclient-stdin-conf.patch 1948
@@ -97,7 +97,7 @@ SHA256 456ab9c26235fa4c1eda6b53b163e901869d5f64ba442b30db1fe86c57fe56af metadata
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
-iD8DBQFEHqNLEbVyYKaZ/NERArYDAJ9GmtzNIVL9R/DbU588x3L6XMBOMwCbBbgu
-xPrLV76KQSsSv0onMU++yIk=
-=1Joc
+iD8DBQFEHqxmEbVyYKaZ/NERAhjtAJ4vP8OdhvgNWb5njre/6moZ/eK2zwCdH0E+
+fSak3oUVCZFpODeKHO3QTKo=
+=l7Rp
-----END PGP SIGNATURE-----
diff --git a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch
index e16c2306956f..234708746f6d 100644
--- a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch
+++ b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-metric.patch
@@ -1,49 +1,76 @@
-diff -ru /tmp/client/scripts/bsdos client/scripts/bsdos
---- /tmp/client/scripts/bsdos 2006-03-18 14:47:59.393686000 +0000
-+++ client/scripts/bsdos 2006-03-18 14:59:18.000000000 +0000
-@@ -132,7 +132,7 @@
+--- client/scripts/bsdos
++++ client/scripts/bsdos
+@@ -68,6 +68,9 @@
+ if [ x$alias_subnet_mask != x ]; then
+ alias_subnet_arg="netmask $alias_subnet_mask"
+ fi
++if [ x$IF_METRIC != x ]; then
++ metric="metric $IF_METRIC"
++fi
+
+ if [ x$reason = xMEDIUM ]; then
+ eval "ifconfig $interface $medium"
+@@ -128,7 +128,7 @@
$new_broadcast_arg $medium"
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
if [ "$new_static_routes" != "" ]; then
set $new_static_routes
-@@ -198,7 +198,7 @@
+@@ -194,7 +194,7 @@
fi
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
set $new_static_routes
while [ $# -gt 1 ]; do
-diff -ru /tmp/client/scripts/freebsd client/scripts/freebsd
---- /tmp/client/scripts/freebsd 2006-03-18 14:47:59.393686000 +0000
-+++ client/scripts/freebsd 2006-03-18 15:00:48.000000000 +0000
-@@ -162,7 +162,7 @@
+--- client/scripts/freebsd
++++ client/scripts/freebsd
+@@ -92,6 +92,9 @@
+ if [ x$alias_subnet_mask != x ]; then
+ alias_subnet_arg="netmask $alias_subnet_mask"
+ fi
++if [ x$IF_METRIC != x ]; then
++ metric="metric $IF_METRIC"
++fi
+
+ if [ x$reason = xMEDIUM ]; then
+ eval "ifconfig $interface $medium"
+@@ -158,7 +158,7 @@
fi
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
if [ -n "$new_static_routes" ]; then
$LOGGER "New Static Routes: $new_static_routes"
-@@ -233,7 +233,7 @@
+@@ -229,7 +229,7 @@
fi
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
set -- $new_static_routes
while [ $# -gt 1 ]; do
-diff -ru /tmp/client/scripts/linux client/scripts/linux
---- /tmp/client/scripts/linux 2006-03-18 14:47:59.393686000 +0000
-+++ client/scripts/linux 2006-03-18 14:56:43.000000000 +0000
-@@ -140,13 +140,11 @@
+--- client/scripts/linux
++++ client/scripts/linux
+@@ -91,6 +91,9 @@
+ if [ x$alias_subnet_mask != x ]; then
+ alias_subnet_arg="netmask $alias_subnet_mask"
+ fi
++if [ x$IF_METRIC != x ]; then
++ metric="metric $IF_METRIC"
++fi
+
+ if [ x$reason = xMEDIUM ]; then
+ # Linux doesn't do mediums (ok, ok, media).
+@@ -136,13 +136,11 @@
if [ x$old_ip_address != x ] && [ x$alias_ip_address != x ] && \
[ x$alias_ip_address != x$old_ip_address ]; then
# Possible new alias. Remove old alias.
@@ -60,12 +87,12 @@ diff -ru /tmp/client/scripts/linux client/scripts/linux
fi
if [ x$old_ip_address = x ] || [ x$old_ip_address != x$new_ip_address ] || \
[ x$reason = xBOUND ] || [ x$reason = xREBOOT ]; then
-@@ -159,14 +157,14 @@
+@@ -155,14 +153,14 @@
route add -net $new_network_number $new_subnet_arg dev $interface
fi
for router in $new_routers; do
- route add default gw $router
-+ route add default gw $router ${IF_METRIC:+metric $IF_METRIC} dev $interface
++ route add default gw $router $metric dev $interface
done
fi
if [ x$new_ip_address != x$alias_ip_address ] && [ x$alias_ip_address != x ];
@@ -77,7 +104,7 @@ diff -ru /tmp/client/scripts/linux client/scripts/linux
fi
make_resolv_conf
exit_with_hooks 0
-@@ -179,12 +177,12 @@
+@@ -175,12 +173,12 @@
ifconfig $interface:0- inet 0
fi
if [ x$old_ip_address != x ]; then
@@ -93,7 +120,7 @@ diff -ru /tmp/client/scripts/linux client/scripts/linux
fi
exit_with_hooks 0
fi
-@@ -205,15 +203,15 @@
+@@ -201,15 +199,15 @@
fi
if [ $relmajor -lt 2 ] || \
( [ $relmajor -eq 2 ] && [ $relminor -eq 0 ] ); then
@@ -102,7 +129,7 @@ diff -ru /tmp/client/scripts/linux client/scripts/linux
fi
for router in $new_routers; do
- route add default gw $router
-+ route add default gw $router ${IF_METRIC:+metric $IF_METRIC} dev $interface
++ route add default gw $router $metric dev $interface
done
make_resolv_conf
exit_with_hooks 0
@@ -112,45 +139,63 @@ diff -ru /tmp/client/scripts/linux client/scripts/linux
exit_with_hooks 1
fi
-diff -ru /tmp/client/scripts/netbsd client/scripts/netbsd
---- /tmp/client/scripts/netbsd 2006-03-18 14:47:59.393686000 +0000
-+++ client/scripts/netbsd 2006-03-18 15:02:29.000000000 +0000
-@@ -132,7 +132,7 @@
+--- client/scripts/netbsd
++++ client/scripts/netbsd
+@@ -68,6 +68,9 @@
+ if [ x$alias_subnet_mask != x ]; then
+ alias_subnet_arg="netmask $alias_subnet_mask"
+ fi
++if [ x$IF_METRIC != x ]; then
++ metric="metric $IF_METRIC"
++fi
+
+ if [ x$reason = xMEDIUM ]; then
+ eval "ifconfig $interface $medium"
+@@ -128,7 +128,7 @@
$new_broadcast_arg $medium"
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
if [ "$new_static_routes" != "" ]; then
set $new_static_routes
-@@ -198,7 +198,7 @@
+@@ -194,7 +194,7 @@
fi
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
set $new_static_routes
while [ $# -gt 1 ]; do
-diff -ru /tmp/client/scripts/openbsd client/scripts/openbsd
---- /tmp/client/scripts/openbsd 2006-03-18 14:47:59.393686000 +0000
-+++ client/scripts/openbsd 2006-03-18 15:04:24.000000000 +0000
-@@ -132,7 +132,7 @@
+--- client/scripts/openbsd
++++ client/scripts/openbsd
+@@ -68,6 +68,9 @@
+ if [ x$alias_subnet_mask != x ]; then
+ alias_subnet_arg="netmask $alias_subnet_mask"
+ fi
++if [ x$IF_METRIC != x ]; then
++ metric="metric $IF_METRIC"
++fi
+
+ if [ x$reason = xMEDIUM ]; then
+ eval "ifconfig $interface $medium"
+@@ -128,7 +128,7 @@
$new_broadcast_arg $medium"
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
if [ "$new_static_routes" != "" ]; then
set $new_static_routes
-@@ -198,7 +198,7 @@
+@@ -194,7 +194,7 @@
fi
route add $new_ip_address 127.1 >/dev/null 2>&1
for router in $new_routers; do
- route add default $router >/dev/null 2>&1
-+ route add default $router ${IF_METRIC:+metric $IF_METRIC} dev $interface >/dev/null 2>&1
++ route add default $router $metric dev $interface >/dev/null 2>&1
done
set $new_static_routes
while [ $# -gt 1 ]; do
diff --git a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch
index c8825dfa4256..2d9c8683aa46 100644
--- a/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch
+++ b/net-misc/dhcp/files/dhcp-3.0.3-dhclient-resolvconf.patch
@@ -24,7 +24,7 @@
fi
# If we're making confs, may as well make an ntp.conf too
make_ntp_conf
-@@ -173,6 +182,7 @@
+@@ -176,6 +188,7 @@
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
route add $alias_ip_address 127.0.0.1
fi
@@ -32,7 +32,7 @@
exit_with_hooks 0
fi
-@@ -218,6 +228,7 @@
+@@ -221,6 +231,7 @@
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' \
|sh >/dev/null 2>&1
@@ -78,7 +78,7 @@
fi
fi
# If we're making confs, may as well make an ntp.conf too
-@@ -204,6 +198,7 @@
+@@ -207,6 +201,7 @@
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
route add $alias_ip_address 127.0.0.1
fi
@@ -86,7 +86,7 @@
exit_with_hooks 0
fi
-@@ -253,6 +248,7 @@
+@@ -256,6 +251,7 @@
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' \
|sh >/dev/null 2>&1
@@ -121,7 +121,7 @@
fi
# If we're making confs, may as well make an ntp.conf too
make_ntp_conf
-@@ -180,6 +188,7 @@
+@@ -183,6 +191,7 @@
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
route add -host $alias_ip_address dev $interface:0
fi
@@ -129,7 +129,7 @@
exit_with_hooks 0
fi
-@@ -208,6 +217,7 @@
+@@ -211,6 +220,7 @@
exit_with_hooks 0
fi
ifconfig $interface inet 0.0.0.0
@@ -163,7 +163,7 @@
fi
# If we're making confs, may as well make an ntp.conf too
make_ntp_conf
-@@ -173,6 +182,7 @@
+@@ -176,6 +185,7 @@
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
route add $alias_ip_address 127.0.0.1
fi
@@ -171,7 +171,7 @@
exit_with_hooks 0
fi
-@@ -218,6 +228,7 @@
+@@ -221,6 +231,7 @@
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' \
|sh >/dev/null 2>&1
@@ -205,7 +205,7 @@
fi
# If we're making confs, may as well make an ntp.conf too
make_ntp_conf
-@@ -173,6 +182,7 @@
+@@ -176,6 +185,7 @@
ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
route add $alias_ip_address 127.0.0.1
fi
@@ -213,7 +213,7 @@
exit_with_hooks 0
fi
-@@ -218,6 +228,7 @@
+@@ -221,6 +231,7 @@
fi
arp -n -a | sed -n -e 's/^.*(\(.*\)) at .*$/arp -n -d \1/p' \
|sh >/dev/null 2>&1