mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jon Ringle <jon@ringle.org>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to update another packet at install
Date: Sat, 22 Oct 2011 15:24:33 -0400	[thread overview]
Message-ID: <CAMwGMjyg4n_RptgfTxtvX7ZcNmedao6LKA02HmMfrQHROZ2T1g@mail.gmail.com> (raw)
In-Reply-To: <CAGHsZCMUdUX1sb3SS0O3Jw+wCZWoT7qsU6wArMA2QjPaPOHDGg@mail.gmail.com>

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

  reply	other threads:[~2011-10-22 19:24 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 [this message]
2011-10-22 19:50   ` Robert Schwebel
2011-10-24 20:49   ` Philippe Corbes
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=CAMwGMjyg4n_RptgfTxtvX7ZcNmedao6LKA02HmMfrQHROZ2T1g@mail.gmail.com \
    --to=jon@ringle.org \
    --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