Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe 1/6] mpd: initial add 0.16.7
Date: Mon, 19 Mar 2012 13:54:21 +0100	[thread overview]
Message-ID: <jk7aa6$bjh$1@dough.gmane.org> (raw)
In-Reply-To: <1332103254-3729-1-git-send-email-schnitzeltony@googlemail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 18-03-12 21:40, Andreas Müller schreef:
> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> --- 
> meta-oe/recipes-multimedia/musicpd/mpd/mpd       |   43 +++ 
> meta-oe/recipes-multimedia/musicpd/mpd/mpd.conf  |  420
> ++++++++++++++++++++++ meta-oe/recipes-multimedia/musicpd/mpd_0.16.7.bb |
> 42 +++ 3 files changed, 505 insertions(+), 0 deletions(-) create mode
> 100644 meta-oe/recipes-multimedia/musicpd/mpd/mpd create mode 100644
> meta-oe/recipes-multimedia/musicpd/mpd/mpd.conf create mode 100644
> meta-oe/recipes-multimedia/musicpd/mpd_0.16.7.bb
> 
> diff --git a/meta-oe/recipes-multimedia/musicpd/mpd/mpd
> b/meta-oe/recipes-multimedia/musicpd/mpd/mpd new file mode 100644 index
> 0000000..f71142a --- /dev/null +++
> b/meta-oe/recipes-multimedia/musicpd/mpd/mpd @@ -0,0 +1,43 @@ +#!/bin/sh 
> +DESC="The Music Player Daemon" +DAEMON=/usr/bin/mpd 
> +MPDCONF=/etc/mpd.conf

The above hardcodes $bindir and $sysconfdir, which it shouldn't do.
Furthermore I'd like to stop maintaining our own initsystem in meta-oe and
switch to upstream initscripts as much as possible and include systemd units
by default as well.
The above script is missing LSB headers as well.

> diff --git a/meta-oe/recipes-multimedia/musicpd/mpd_0.16.7.bb
> b/meta-oe/recipes-multimedia/musicpd/mpd_0.16.7.bb new file mode 100644 
> index 0000000..bc07415 --- /dev/null +++
> b/meta-oe/recipes-multimedia/musicpd/mpd_0.16.7.bb @@ -0,0 +1,42 @@ 
> +DESCRIPTION = "Music Player Daemon" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM
> = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" +HOMEPAGE
> ="http://sourceforge.net/projects/musicpd" + +DEPENDS = "alsa-lib
> libsamplerate0 libsndfile1 libvorbis libogg faad2 ffmpeg curl sqlite
> bzip2 \ +           ${@base_conditional('ENTERPRISE_DISTRO', '1', '',
> 'libmad lame libid3tag', d)}" + +SRC_URI = " \ +
> ${SOURCEFORGE_MIRROR}/musicpd/${PN}/${PV}/${PN}-${PV}.tar.bz2 \ +
> file://mpd \ +    file://mpd.conf \ +" + +SRC_URI[md5sum] =
> "3d0e7c36646e80386b32966bd4268e8d" +SRC_URI[sha256sum] =
> "47c10553389752c7fa072cf87c2bd30c552de75819fcf8286f3e7cc14ff0e32e" + 
> +inherit autotools update-rc.d useradd + +USERADD_PACKAGES = "${PN}" 
> +USERADD_PARAM_${PN} = " \ +    --system --no-create-home \ +    --home
> ${localstatedir}/lib/mpd \ +    --groups audio \ +    --user-group mpd" 
> + +INITSCRIPT_NAME = "mpd" +INITSCRIPT_PARAMS = "defaults 95" + 
> +do_install_append() { +    install -d ${D}/${sysconfdir}/init.d +
> install -m 755 ${WORKDIR}/mpd ${D}/${sysconfdir}/init.d +    install -m
> 644 ${WORKDIR}/mpd.conf ${D}/${sysconfdir}/mpd.conf + +    install -d
> ${D}/${localstatedir}/lib/mpd/music +    chown -R mpd
> ${D}/${localstatedir}/lib/mpd +    chmod 775
> ${D}/${localstatedir}/lib/mpd/music + +    install -d
> ${D}/${localstatedir}/lib/mpd/playlists +} + +EXTRA_OECONF =
> "enable_bzip2=yes"

Move EXTRA_OECONF above do_install

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk9nLH0ACgkQMkyGM64RGpGpXgCfYjVyTXG604Idt2RF2RhqwN/a
5oYAoKvt1joz6oRquBIauc4zeLpbNCFn
=9Ewh
-----END PGP SIGNATURE-----




  parent reply	other threads:[~2012-03-19 13:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-18 20:40 [meta-oe 1/6] mpd: initial add 0.16.7 Andreas Müller
2012-03-18 20:40 ` [meta-oe 2/6] libmpd: initial add 11.8.17 Andreas Müller
2012-03-18 20:40 ` [meta-oe 3/6] xfmpc: initial add 0.2.2 Andreas Müller
2012-03-18 20:40 ` [meta-oe 4/6] xfce4-mpc-plugin: initial add 0.4.2 Andreas Müller
2012-03-18 20:40 ` [meta-oe 5/6] xfce4-mixer: initial add 4.8.0 Andreas Müller
2012-03-18 20:40 ` [meta-oe 6/6] task-xfce-extended: add xfmpc, xfce4-mpc-plugin and xfce4-mixer Andreas Müller
2012-03-19 12:54 ` Koen Kooi [this message]
2012-03-19 15:24   ` [meta-oe 1/6] mpd: initial add 0.16.7 Andreas Müller
2012-03-19 19:01     ` Koen Kooi
2012-03-20  8:37       ` Andreas Müller
2012-03-20 17:20         ` Koen Kooi

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='jk7aa6$bjh$1@dough.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox