[oe-commits] org.oe.dev dhcp_3.0.2.bb : patch to add dbus support needed for NetworkManager/dhcdbd
xora commit
openembedded-commits at lists.openembedded.org
Sat Oct 21 21:06:05 UTC 2006
dhcp_3.0.2.bb : patch to add dbus support needed for NetworkManager/dhcdbd
usage (shouldnt interfere with normal opps) thanks to gentoo.
Add RDEPENDS_dhcp-client = "bash" as dhclient-script is bash only until
someone wants to clean it for busybox
Author: xora at openembedded.org
Branch: org.openembedded.dev
Revision: c50b6f0c5d8fecd5d2fec18456660afc2afb61db
ViewMTN: http://monotone.openembedded.org/revision.psp?id=c50b6f0c5d8fecd5d2fec18456660afc2afb61db
Files:
1
packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch
packages/dhcp/dhcp_3.0.2.bb
Diffs:
#
# mt diff -r46b07c78864648b21e7b885096464b61a30fa717 -rc50b6f0c5d8fecd5d2fec18456660afc2afb61db
#
#
#
# add_file "packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch"
# content [74760ca00712ff529e6b97457408515098563f88]
#
# patch "packages/dhcp/dhcp_3.0.2.bb"
# from [7f16ec3d1886bd9f370ab6dbac0aff2c1c274d71]
# to [8fcdb24e1ff3a15f391b9599fd92cb05bb6f6894]
#
============================================================
--- packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch 74760ca00712ff529e6b97457408515098563f88
+++ packages/dhcp/files/dhcp-3.0.3-dhclient-dbus.patch 74760ca00712ff529e6b97457408515098563f88
@@ -0,0 +1,84 @@
+--- client/scripts/bsdos
++++ client/scripts/bsdos
+@@ -47,6 +47,11 @@
+ . /etc/dhcp/dhclient-exit-hooks
+ fi
+ # probably should do something with exit status of the local script
++ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ dbus-send --system --dest=com.redhat.dhcp \
++ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
++ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
++ fi
+ exit $exit_status
+ }
+
+--- client/scripts/freebsd
++++ client/scripts/freebsd
+@@ -57,6 +57,11 @@
+ . /etc/dhcp/dhclient-exit-hooks
+ fi
+ # probably should do something with exit status of the local script
++ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ dbus-send --system --dest=com.redhat.dhcp \
++ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
++ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
++ fi
+ exit $exit_status
+ }
+
+--- client/scripts/linux
++++ client/scripts/linux
+@@ -69,6 +69,11 @@
+ . /etc/dhcp/dhclient-exit-hooks
+ fi
+ # probably should do something with exit status of the local script
++ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ dbus-send --system --dest=com.redhat.dhcp \
++ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
++ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
++ fi
+ exit $exit_status
+ }
+
+--- client/scripts/netbsd
++++ client/scripts/netbsd
+@@ -47,6 +47,11 @@
+ . /etc/dhcp/dhclient-exit-hooks
+ fi
+ # probably should do something with exit status of the local script
++ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ dbus-send --system --dest=com.redhat.dhcp \
++ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
++ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
++ fi
+ exit $exit_status
+ }
+
+--- client/scripts/openbsd
++++ client/scripts/openbsd
+@@ -47,6 +47,11 @@
+ . /etc/dhcp/dhclient-exit-hooks
+ fi
+ # probably should do something with exit status of the local script
++ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ dbus-send --system --dest=com.redhat.dhcp \
++ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
++ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
++ fi
+ exit $exit_status
+ }
+
+--- client/scripts/solaris
++++ client/scripts/solaris
+@@ -47,6 +47,11 @@
+ . /etc/dhcp/dhclient-exit-hooks
+ fi
+ # probably should do something with exit status of the local script
++ if [ x$dhc_dbus != x -a $exit_status -eq 0 ]; then
++ dbus-send --system --dest=com.redhat.dhcp \
++ --type=method_call /com/redhat/dhcp/$interface com.redhat.dhcp.set \
++ 'string:'"`env | grep -Ev '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`"
++ fi
+ exit $exit_status
+ }
+
============================================================
--- packages/dhcp/dhcp_3.0.2.bb 7f16ec3d1886bd9f370ab6dbac0aff2c1c274d71
+++ packages/dhcp/dhcp_3.0.2.bb 8fcdb24e1ff3a15f391b9599fd92cb05bb6f6894
@@ -1,11 +1,12 @@ LICENSE = "BSD"
SECTION = "console/network"
DESCRIPTION = "Internet Software Consortium DHCP package"
HOMEPAGE = "http://www.isc.org/"
LICENSE = "BSD"
-PR = "r2"
+PR = "r3"
SRC_URI = "ftp://ftp.isc.org/isc/dhcp/dhcp-3.0-history/dhcp-${PV}.tar.gz \
file://noattrmode.patch;patch=1 \
file://fixincludes.patch;patch=1 \
+ file://dhcp-3.0.3-dhclient-dbus.patch;patch=1;pnum=0 \
file://init-relay file://default-relay \
file://init-server file://default-server \
file://dhclient.conf file://dhcpd.conf"
@@ -38,7 +39,10 @@ FILES_dhcp-relay = "${sbindir}/dhcrelay
PACKAGES = "dhcp-server dhcp-client dhcp-relay dhcp-omshell dhcp-dev dhcp-doc"
FILES_dhcp-server = "${sbindir}/dhcpd /etc/init.d/dhcp-server /etc/default/dhcp-server /etc/dhcp/dhcpd.conf"
FILES_dhcp-relay = "${sbindir}/dhcrelay /etc/init.d/dhcp-relay /etc/default/dhcp-relay"
+
FILES_dhcp-client = "/sbin/ /etc/dhcp/dhclient.conf"
+RDEPENDS_dhcp-client = "bash"
+
FILES_dhcp-omshell = "${bindir}/omshell"
CONFFILES_dhcp-server_nylon = "/etc/dhcp/dhcpd.conf"
More information about the Openembedded-commits
mailing list