From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qy0-f179.google.com ([209.85.216.179]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RIRSN-0007dc-3A for ptxdist@pengutronix.de; Mon, 24 Oct 2011 22:49:16 +0200 Received: by qyk31 with SMTP id 31so5308956qyk.10 for ; Mon, 24 Oct 2011 13:49:06 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 24 Oct 2011 22:49:06 +0200 Message-ID: From: Philippe Corbes 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: multipart/mixed; boundary="===============0410171035==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0410171035== Content-Type: multipart/alternative; boundary=0016e64f45b4cb734104b0118dbe --0016e64f45b4cb734104b0118dbe Content-Type: text/plain; charset=ISO-8859-1 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 > 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 > --0016e64f45b4cb734104b0118dbe Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jon,

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

PEKWM_CLEARLOOKS_INSTALL_DIR :=3D $(c= all remove_quotes, $(PTXCONF_PEKWM_INSTALL_CONFIG_IN_DIR))

$(STATEDIR)/pekwm-clearlooks.targetinstall:
=A0=A0=A0 @$(call target= info)

=A0=A0=A0 @$(call install_init, pekwm-clearlooks)
=A0=A0=A0= @$(call install_fixup, pekwm-clearlooks,PRIORITY,optional)
=A0=A0=A0 @$= (call install_fixup, pekwm-clearlooks,SECTION,base)
=A0=A0=A0 @$(call install_fixup, pekwm-clearlooks,AUTHOR,"Philippe Cor= bes <philippe.corbes@gmail.= com>")
=A0=A0=A0 @$(call install_fixup, pekwm-clearlooks,DES= CRIPTION,missing)

=A0=A0=A0 @$(call install_copy, pekwm, 0, 0, 0644, -, \
=A0=A0=A0 = =A0=A0=A0 /usr/share/pekwm/themes/default/theme)
=A0=A0=A0 @cd $(PEKWM_C= LEARLOOKS_PKGDIR) && \
=A0=A0=A0 find usr/share/pekwm/themes/Cle= arlooks -type f | while read file; do \
=A0=A0=A0 =A0=A0=A0 $(call install_copy, pekwm-clearlooks, 0, 0, 0644, -, /= $$file); \
=A0=A0=A0 done

=A0=A0=A0 @$(call install_finish, pekwm= -clearlooks)

=A0=A0=A0 @$(call touch)


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

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

# vim: syntax=3Dmake


Thank you,
Phili= ppe


--0016e64f45b4cb734104b0118dbe-- --===============0410171035== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0410171035==--