ntp : Add cap to default PACKAGECONFIG options.
authorPhilip Balister <philip@balister.org>
Wed, 23 Apr 2014 18:30:29 +0000 (11:30 -0700)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:37:21 +0000 (08:37 -0800)
If ntp is built without libcap, it refuses to start with the following
message:

Starting ntpd: /usr/sbin/ntpd: The ``user'' option has been disabled -- built
without --enable-clockctl or --enable-linuxcaps
ntpd - NTP daemon program - Ver. 4.2.6p5
USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...

By adding cap to the PACKAGECONFIG the default runs. In the
future, someone could add an option for using clockctl.

(From meta-openembedded rev: fdea5d0942e2d705314e37e339d3c038bb6f4bee)

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-networking/recipes-support/ntp/ntp.inc

index 9c3e0d1..9861fd8 100644 (file)
@@ -36,7 +36,7 @@ USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ntp \
                        --shell /bin/false --user-group ntp"
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "cap"
 PACKAGECONFIG[openssl] = "--with-openssl-libdir=${STAGING_LIBDIR} \
                           --with-openssl-incdir=${STAGING_INCDIR} \
                           --with-crypto, \