Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] openntpd: add SysV initscript and user
Date: Sun, 22 Jun 2014 19:23:19 +0200	[thread overview]
Message-ID: <20140622172319.GA21768@free.fr> (raw)
In-Reply-To: <1402486395-15125-1-git-send-email-gustavo@zacarias.com.ar>

Gustavo, All

On 2014-06-11 08:33 -0300, Gustavo Zacarias spake thusly:
> Add the _ntp user that the daemon requires to work in any way.
> Add a SysV-style initscript as well, but not with '-s' (set time
> immediately after startup) because it can make the boot process stall
> for a few seconds if there's no proper network connectivity/dns setup.
> Make ntp and openntpd mutually exclusive since they overstep each other.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
[--SNIP--]
> diff --git a/package/openntpd/openntpd.mk b/package/openntpd/openntpd.mk
> index f0e4f19..0fe6179 100644
> --- a/package/openntpd/openntpd.mk
> +++ b/package/openntpd/openntpd.mk
> @@ -10,4 +10,13 @@ OPENNTPD_CONF_OPT = --with-builtin-arc4random --disable-strip
>  OPENNTPD_LICENSE = MIT-like, BSD-2c, BSD-3c
>  OPENNTPD_LICENSE_FILES = LICENCE
>  
> +define OPENNTPD_INSTALL_INIT_SYSV
> +	$(INSTALL) -m 0755 -D package/openntpd/S49ntp \
> +		$(TARGET_DIR)/etc/init.d/S49ntp
> +endef
> +
> +define OPENNTPD_USERS
> +_ntp -1 _ntp -1 * - - - Network Time Protocol daemon

Any reason why you name the user and group with a leading '_' ?

Regards,
Yann E. MORIN.

> +endef
> +
>  $(eval $(autotools-package))
> -- 
> 1.8.5.5
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2014-06-22 17:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-11 11:33 [Buildroot] [PATCH] openntpd: add SysV initscript and user Gustavo Zacarias
2014-06-22 17:23 ` Yann E. MORIN [this message]
2014-06-22 22:32   ` Gustavo Zacarias
2014-06-22 22:37     ` Yann E. MORIN
2014-06-22 22:43       ` Gustavo Zacarias
2014-06-23 16:38         ` Arnout Vandecappelle
2014-07-08 12:18 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140622172319.GA21768@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox