diff options
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp.inc | 6 | ||||
-rw-r--r-- | meta/recipes-connectivity/dhcp/files/init-server | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc index 9c4233b19d..5703f1e06d 100644 --- a/meta/recipes-connectivity/dhcp/dhcp.inc +++ b/meta/recipes-connectivity/dhcp/dhcp.inc | |||
@@ -24,7 +24,10 @@ SRC_URI = "ftp://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \ | |||
24 | UPSTREAM_CHECK_URI = "ftp://ftp.isc.org/isc/dhcp/" | 24 | UPSTREAM_CHECK_URI = "ftp://ftp.isc.org/isc/dhcp/" |
25 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/" | 25 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/" |
26 | 26 | ||
27 | inherit autotools systemd | 27 | inherit autotools systemd useradd |
28 | |||
29 | USERADD_PACKAGES = "${PN}-server" | ||
30 | USERADD_PARAM_${PN}-server = "--system --no-create-home --home-dir /var/run/${PN} --shell /bin/false --user-group ${PN}" | ||
28 | 31 | ||
29 | SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay" | 32 | SYSTEMD_PACKAGES = "${PN}-server ${PN}-relay" |
30 | SYSTEMD_SERVICE_${PN}-server = "dhcpd.service dhcpd6.service" | 33 | SYSTEMD_SERVICE_${PN}-server = "dhcpd.service dhcpd6.service" |
@@ -39,6 +42,7 @@ EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \ | |||
39 | --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \ | 42 | --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \ |
40 | --with-cli6-lease-file=${localstatedir}/lib/dhcp/dhclient6.leases \ | 43 | --with-cli6-lease-file=${localstatedir}/lib/dhcp/dhclient6.leases \ |
41 | --with-libbind=${STAGING_LIBDIR}/ \ | 44 | --with-libbind=${STAGING_LIBDIR}/ \ |
45 | --enable-paranoia \ | ||
42 | " | 46 | " |
43 | 47 | ||
44 | do_install_append () { | 48 | do_install_append () { |
diff --git a/meta/recipes-connectivity/dhcp/files/init-server b/meta/recipes-connectivity/dhcp/files/init-server index 34c20852b9..5e693adf78 100644 --- a/meta/recipes-connectivity/dhcp/files/init-server +++ b/meta/recipes-connectivity/dhcp/files/init-server | |||
@@ -20,7 +20,7 @@ case "$1" in | |||
20 | echo -n "Starting DHCP server: " | 20 | echo -n "Starting DHCP server: " |
21 | test -d /var/lib/dhcp/ || mkdir -p /var/lib/dhcp/ | 21 | test -d /var/lib/dhcp/ || mkdir -p /var/lib/dhcp/ |
22 | test -f /var/lib/dhcp/dhcpd.leases || touch /var/lib/dhcp/dhcpd.leases | 22 | test -f /var/lib/dhcp/dhcpd.leases || touch /var/lib/dhcp/dhcpd.leases |
23 | start-stop-daemon -S -x /usr/sbin/dhcpd -- -q $INTERFACES | 23 | start-stop-daemon -S -x /usr/sbin/dhcpd -- -q $INTERFACES -user dhcp -group dhcp |
24 | echo "." | 24 | echo "." |
25 | ;; | 25 | ;; |
26 | stop) | 26 | stop) |