Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] dhcp: add dhclient.service
@ 2014-12-17  3:03 Chen Qi
  2014-12-17  3:03 ` [PATCH 1/1] " Chen Qi
  2014-12-17  7:22 ` [PATCH 0/1] " ChenQi
  0 siblings, 2 replies; 4+ messages in thread
From: Chen Qi @ 2014-12-17  3:03 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 68ddb28a68ceb59cd1ed322c16143827ce1ac712:

  distrodata_class: checkpkg make usage of latest_versionstring methods in bitbake fetcher (2014-11-28 13:59:52 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/systemd-dhclient
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/systemd-dhclient

Chen Qi (1):
  dhcp: add dhclient.service

 meta/recipes-connectivity/dhcp/dhcp.inc               | 11 ++++++++---
 meta/recipes-connectivity/dhcp/files/dhclient.service | 15 +++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-connectivity/dhcp/files/dhclient.service

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] dhcp: add dhclient.service
  2014-12-17  3:03 [PATCH 0/1] dhcp: add dhclient.service Chen Qi
@ 2014-12-17  3:03 ` Chen Qi
  2014-12-17  7:22 ` [PATCH 0/1] " ChenQi
  1 sibling, 0 replies; 4+ messages in thread
From: Chen Qi @ 2014-12-17  3:03 UTC (permalink / raw)
  To: openembedded-core

Add dhclient.service. This service file mainly comes from meta-systemd,
with a few modifications.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-connectivity/dhcp/dhcp.inc               | 11 ++++++++---
 meta/recipes-connectivity/dhcp/files/dhclient.service | 15 +++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-connectivity/dhcp/files/dhclient.service

diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index 4949e02..b975d40 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -17,17 +17,20 @@ SRC_URI = "ftp://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \
            file://init-relay file://default-relay \
            file://init-server file://default-server \
            file://dhclient.conf file://dhcpd.conf \
-           file://dhcpd.service file://dhcrelay.service"
+           file://dhcpd.service file://dhcrelay.service file://dhclient.service"
 
 inherit autotools systemd
 
-SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay"
+SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay ${PN}-client"
 SYSTEMD_SERVICE_${PN}-server = "dhcpd.service"
 SYSTEMD_AUTO_ENABLE_${PN}-server = "disable"
 
 SYSTEMD_SERVICE_${PN}-relay = "dhcrelay.service"
 SYSTEMD_AUTO_ENABLE_${PN}-relay = "disable"
 
+SYSTEMD_SERVICE_${PN}-client = "dhclient.service"
+SYSTEMD_AUTO_ENABLE_${PN}-client = "disable"
+
 TARGET_CFLAGS += "-D_GNU_SOURCE"
 EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \
                 --with-srv6-lease-file=${localstatedir}/lib/dhcp/dhcpd6.leases \
@@ -64,8 +67,10 @@ do_install_append () {
 	install -d ${D}${systemd_unitdir}/system
 	install -m 0644 ${WORKDIR}/dhcpd.service ${D}${systemd_unitdir}/system
 	install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system
+	install -m 0644 ${WORKDIR}/dhclient.service ${D}${systemd_unitdir}/system
 	sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/dhcpd.service ${D}${systemd_unitdir}/system/dhcrelay.service
-	sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcpd.service
+	sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcpd.service ${D}${systemd_unitdir}/system/dhclient.service
+	sed -i -e 's,@BASE_SBINDIR@,${base_sbindir},g' ${D}${systemd_unitdir}/system/dhclient.service
 }
 
 PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell"
diff --git a/meta/recipes-connectivity/dhcp/files/dhclient.service b/meta/recipes-connectivity/dhcp/files/dhclient.service
new file mode 100644
index 0000000..d3d9785
--- /dev/null
+++ b/meta/recipes-connectivity/dhcp/files/dhclient.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Dynamic Host Configuration Protocol (DHCP)
+Wants=network.target
+Before=network.target
+After=systemd-udevd.service
+
+[Service]
+Type=forking
+PIDFile=/var/run/dhclient.pid
+EnvironmentFile=-@SYSCONFDIR@/default/dhcp-client
+ExecStart=@BASE_SBINDIR@/dhclient -cf @SYSCONFDIR@/dhcp/dhclient.conf -q -lf /var/lib/dhcp/dhclient.leases $INTERFACES
+
+[Install]
+WantedBy=multi-user.target
+
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] dhcp: add dhclient.service
  2014-12-17  3:03 [PATCH 0/1] dhcp: add dhclient.service Chen Qi
  2014-12-17  3:03 ` [PATCH 1/1] " Chen Qi
@ 2014-12-17  7:22 ` ChenQi
  1 sibling, 0 replies; 4+ messages in thread
From: ChenQi @ 2014-12-17  7:22 UTC (permalink / raw)
  To: openembedded-core

Please ignore this one.
This one doesn't take nfs boot into consideration.

V2 will be sent.

Regards,
Chen Qi

On 12/17/2014 11:03 AM, Chen Qi wrote:
> The following changes since commit 68ddb28a68ceb59cd1ed322c16143827ce1ac712:
>
>    distrodata_class: checkpkg make usage of latest_versionstring methods in bitbake fetcher (2014-11-28 13:59:52 +0000)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib ChenQi/systemd-dhclient
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/systemd-dhclient
>
> Chen Qi (1):
>    dhcp: add dhclient.service
>
>   meta/recipes-connectivity/dhcp/dhcp.inc               | 11 ++++++++---
>   meta/recipes-connectivity/dhcp/files/dhclient.service | 15 +++++++++++++++
>   2 files changed, 23 insertions(+), 3 deletions(-)
>   create mode 100644 meta/recipes-connectivity/dhcp/files/dhclient.service
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 0/1] dhcp: add dhclient.service
@ 2017-07-20  7:33 Chen Qi
  0 siblings, 0 replies; 4+ messages in thread
From: Chen Qi @ 2017-07-20  7:33 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 57f606b12b339c82e6981d7ac32450c00d787085:

  libgcrypt: upgrade to 1.7.8 (2017-07-19 15:13:40 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/dhclient_service
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/dhclient_service

Chen Qi (1):
  dhcp: add dhclient.service

 meta/recipes-connectivity/dhcp/dhcp.inc            | 21 ++++++++++--
 .../dhcp/files/dhclient-systemd-wrapper            | 39 ++++++++++++++++++++++
 .../dhcp/files/dhclient.service                    | 13 ++++++++
 3 files changed, 70 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-connectivity/dhcp/files/dhclient-systemd-wrapper
 create mode 100644 meta/recipes-connectivity/dhcp/files/dhclient.service

-- 
1.9.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-20  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17  3:03 [PATCH 0/1] dhcp: add dhclient.service Chen Qi
2014-12-17  3:03 ` [PATCH 1/1] " Chen Qi
2014-12-17  7:22 ` [PATCH 0/1] " ChenQi
  -- strict thread matches above, loose matches on Subject: below --
2017-07-20  7:33 Chen Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox