From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-gx0-f172.google.com ([209.85.161.172]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RHhBQ-0005t9-IP for ptxdist@pengutronix.de; Sat, 22 Oct 2011 21:24:42 +0200 Received: by ggnv1 with SMTP id v1so5710929ggn.31 for ; Sat, 22 Oct 2011 12:24:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 22 Oct 2011 15:24:33 -0400 Message-ID: From: Jon Ringle Subject: Re: [ptxdist] How to update another packet at install Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sat, Oct 22, 2011 at 5:57 AM, Philippe Corbes 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/.postinst The .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 .postinst: #! /bin/sh case "$1" in configure) # Do stuff when the packet is installed on target ;; esac Jon -- ptxdist mailing list ptxdist@pengutronix.de