All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Cc: "Eric Bénard" <eric@eukrea.com>
Subject: [meta-oe v2 2/4] atftp: correctly handle init script
Date: Fri,  2 Dec 2011 16:09:56 +0100	[thread overview]
Message-ID: <1322838598-30090-2-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1322838598-30090-1-git-send-email-eric@eukrea.com>

else it's affected to atftp package which is the client
and not the server, but the init file is only in the server
package thus leading to the following log at boot :
Configuring atftp.
update-rc.d: /etc/init.d/atftpd: file does not exist

while at it, there is a cosmetic change from _atftpd
to _${PN}d to make the recipe consistent

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 meta-oe/recipes-extended/atftp/atftp_0.7.bb |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/meta-oe/recipes-extended/atftp/atftp_0.7.bb b/meta-oe/recipes-extended/atftp/atftp_0.7.bb
index c541634..ab14a28 100644
--- a/meta-oe/recipes-extended/atftp/atftp_0.7.bb
+++ b/meta-oe/recipes-extended/atftp/atftp_0.7.bb
@@ -3,6 +3,7 @@ SECTION = "network"
 HOMEPAGE = "http://packages.debian.org/atftp"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f"
+PR = "r1"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg.orig.tar.gz;name=archive \
            ${DEBIAN_MIRROR}/main/a/atftp/atftp_${PV}.dfsg-11.diff.gz;name=patch \
@@ -16,11 +17,12 @@ inherit autotools update-rc.d systemd useradd
 SYSTEMD_PACKAGES = "atftpd-systemd"
 SYSTEMD_SERVICE_atftpd-systemd = "atftpd.service"
 
-INITSCRIPT_NAME = "atftpd"
-INITSCRIPT_PARAMS = "defaults 80"
+INITSCRIPT_PACKAGES = "${PN}d"
+INITSCRIPT_NAME_${PN}d = "atftpd"
+INITSCRIPT_PARAMS_${PN}d = "defaults 80"
 
-USERADD_PACKAGES = "atftpd"
-USERADD_PARAM_atftpd = "--system --no-create-home --shell /bin/false \
+USERADD_PACKAGES = "${PN}d"
+USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \
                         --user-group nobody"
 
 do_install_append() {
-- 
1.7.6.4




  reply	other threads:[~2011-12-02 15:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02 15:09 [meta-oe v2 1/4] pcsc-lite: clean recipe Eric Bénard
2011-12-02 15:09 ` Eric Bénard [this message]
2011-12-02 15:09 ` [meta-oe v2 3/4] add net-snmp-5.7.1 Eric Bénard
2011-12-02 15:09 ` [meta-oe v2 4/4] add nostromo webserver Eric Bénard
2011-12-02 19:16   ` Koen Kooi
2011-12-04 15:14     ` [meta-oe v2] " Eric Bénard
2011-12-04 15:15     ` [meta-oe v2 4/4] " Eric Bénard
2011-12-04 20:02       ` Eric Bénard
2011-12-04 16:20     ` [meta-oe v3] " Eric Bénard
2011-12-04 18:00       ` Koen Kooi
2011-12-04 20:30         ` [meta-oe v4] " Eric Bénard
2011-12-05  7:25           ` Paul Menzel
2011-12-05  9:07             ` Eric Bénard
2011-12-06 14:31               ` Paul Menzel
2011-12-06 14:51                 ` [meta-oe v5] nostromo-1.9.5: add recipe Eric Bénard
2011-12-06 14:59                 ` [meta-oe v4] add nostromo webserver Eric Bénard
2011-12-06 13:22         ` [meta-oe v3] " Eric Bénard
2011-12-06 15:36           ` Koen Kooi
2011-12-06 15:41             ` Eric Bénard

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=1322838598-30090-2-git-send-email-eric@eukrea.com \
    --to=eric@eukrea.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.