summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2005-07-29 19:55:52 +0000
committerRoy Marples <uberlord@gentoo.org>2005-07-29 19:55:52 +0000
commit76bc95f7eacb71b6cad5bb36ca71bcb0ceb273fa (patch)
tree463736eb2909375d1590eac81bbd71299fcba399 /sys-apps/baselayout/files
parentAdded patch from uberlord to fix asterisk on hardened setups with ssp enabled... (diff)
downloadgentoo-2-76bc95f7eacb71b6cad5bb36ca71bcb0ceb273fa.tar.gz
gentoo-2-76bc95f7eacb71b6cad5bb36ca71bcb0ceb273fa.tar.bz2
gentoo-2-76bc95f7eacb71b6cad5bb36ca71bcb0ceb273fa.zip
Fixed dhclient sending hostname #100745, thanks to Benoit Boissinot.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps/baselayout/files')
-rw-r--r--sys-apps/baselayout/files/baselayout-1.12.0_pre3-dhclient.patch15
-rw-r--r--sys-apps/baselayout/files/digest-baselayout-1.12.0_pre3-r11
2 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/baselayout/files/baselayout-1.12.0_pre3-dhclient.patch b/sys-apps/baselayout/files/baselayout-1.12.0_pre3-dhclient.patch
new file mode 100644
index 000000000000..273915a64b3a
--- /dev/null
+++ b/sys-apps/baselayout/files/baselayout-1.12.0_pre3-dhclient.patch
@@ -0,0 +1,15 @@
+--- lib/rcscripts/net.modules.d/dhclient 2005-07-29 19:48:12.000000000 +0200
++++ lib/rcscripts/net.modules.d/dhclient 2005-07-29 19:47:50.000000000 +0200
+@@ -149,11 +149,10 @@ dhclient_start() {
+ # Send our hostname by editing cffile
+ if ${edit} && [[ -e ${cffile} && ${d} != *" nosendhost "* ]] ; then
+ local hostname=$( hostname )
+- hostname="fu2"
+ if [[ ${hostname} != "(none)" && ${hostname} != "localhost" ]]; then
+ sed -i '/^[ \t]*send[ \t]*host-name[ \t]*/d' "${cffile}"
+ if [[ -s ${cffile} ]]; then
+- sed -i '1 isend host-name "'"${hostname}"'"' "${cffile}"
++ sed -i '1 isend host-name "'"${hostname}"'";' "${cffile}"
+ else
+ echo "send host-name \"${hostname}\";" > "${cffile}"
+ fi
diff --git a/sys-apps/baselayout/files/digest-baselayout-1.12.0_pre3-r1 b/sys-apps/baselayout/files/digest-baselayout-1.12.0_pre3-r1
new file mode 100644
index 000000000000..b6d2b1c9db22
--- /dev/null
+++ b/sys-apps/baselayout/files/digest-baselayout-1.12.0_pre3-r1
@@ -0,0 +1 @@
+MD5 97178263665d10775d8d6695e0720d63 baselayout-1.12.0_pre3.tar.bz2 169107