mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Philippe Corbes <philippe.corbes@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to update another packet at install
Date: Mon, 24 Oct 2011 22:49:06 +0200	[thread overview]
Message-ID: <CAGHsZCOWA43sG28WyvhmFxNB=wcFcHGmeEm42NtoH4GTDiJ6NA@mail.gmail.com> (raw)
In-Reply-To: <CAMwGMjyg4n_RptgfTxtvX7ZcNmedao6LKA02HmMfrQHROZ2T1g@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2817 bytes --]

Jon,

First, thank you for you mail.
I updated the pekwm-clearlooks.make file. But nothing, no error, no worning,
nothing. It's like if this code is not executed.
Here is the code. What do you tink about this?
#
----------------------------------------------------------------------------
# Target-Install
#
----------------------------------------------------------------------------

PEKWM_CLEARLOOKS_INSTALL_DIR := $(call remove_quotes,
$(PTXCONF_PEKWM_INSTALL_CONFIG_IN_DIR))

$(STATEDIR)/pekwm-clearlooks.targetinstall:
    @$(call targetinfo)

    @$(call install_init, pekwm-clearlooks)
    @$(call install_fixup, pekwm-clearlooks,PRIORITY,optional)
    @$(call install_fixup, pekwm-clearlooks,SECTION,base)
    @$(call install_fixup, pekwm-clearlooks,AUTHOR,"Philippe Corbes <
philippe.corbes@gmail.com>")
    @$(call install_fixup, pekwm-clearlooks,DESCRIPTION,missing)

    @$(call install_copy, pekwm, 0, 0, 0644, -, \
        /usr/share/pekwm/themes/default/theme)
    @cd $(PEKWM_CLEARLOOKS_PKGDIR) && \
    find usr/share/pekwm/themes/Clearlooks -type f | while read file; do \
        $(call install_copy, pekwm-clearlooks, 0, 0, 0644, -, /$$file); \
    done

    @$(call install_finish, pekwm-clearlooks)

    @$(call touch)


#
----------------------------------------------------------------------------
# Target-Postinst
#
----------------------------------------------------------------------------

$(STATEDIR)/pekwm-clearlooks.postinst:
    #!/bin/sh
    case "$1" in
        configure)
        $(call install_replace, pekwm-clearlooks,
$(PEKWM_CLEARLOOKS_INSTALL_DIR).pekwm/config, \
            "usr/share/pekwm/themes/default",
"usr/share/pekwm/themes/Clearlooks" );
        ;;
    esac

# vim: syntax=make


Thank you,
Philippe

2011/10/22 Jon Ringle <jon@ringle.org>

> On Sat, Oct 22, 2011 at 5:57 AM, Philippe Corbes
> <philippe.corbes@gmail.com> wrote:
> >
> > Hello,
> >
> > I need help to solve a problem at packet install.
> >
> > I made a packet. It's a theme for pekwm. It depend of pekwm. But when I
> install this theme, I would like to update the config file of pekwm to use
> this them as default theme.
> >
> > There is may be something to do at "install.post" phase. I dont find how
> to do. Does anybody can help me to solve this?
>
> Create a rules/<packet>.postinst
> The <packet>.postinst script will get called at targetinstall phase
> during building, so you probably want to have your script do nothing
> at this time. The way I handled this is that "configure" will be $1
> when the packet is installed on the target. This is my template for
> <packet>.postinst:
>
>    #! /bin/sh
>
>    case "$1" in
>        configure)
>        # Do stuff when the packet is installed on target
>        ;;
>    esac
>
> Jon
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>

[-- Attachment #1.2: Type: text/html, Size: 3680 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2011-10-24 20:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-22  9:57 Philippe Corbes
2011-10-22 19:24 ` Jon Ringle
2011-10-22 19:50   ` Robert Schwebel
2011-10-24 20:49   ` Philippe Corbes [this message]
2011-10-25 12:04     ` Jon Ringle

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='CAGHsZCOWA43sG28WyvhmFxNB=wcFcHGmeEm42NtoH4GTDiJ6NA@mail.gmail.com' \
    --to=philippe.corbes@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /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