From mboxrd@z Thu Jan  1 00:00:00 1970
Return-path: <ptxdist-bounces@pengutronix.de>
Received: from mout.gmx.net ([212.227.15.19])
	by metis.ext.pengutronix.de with esmtp (Exim 4.72)
	(envelope-from <MarkusWolters@gmx.de>) id 1VONZK-0006XP-BG
	for ptxdist@pengutronix.de; Tue, 24 Sep 2013 10:02:03 +0200
Received: from 3capp-gmx-bs41.server.lan ([172.19.170.93]) by
	mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id
	0M3gWF-1VflvY0ByD-00rKbc for <ptxdist@pengutronix.de>; Tue, 24 Sep 2013
	10:01:57 +0200
MIME-Version: 1.0
Message-ID: <trinity-4b788007-fc45-41ff-8c3b-9dee2a93c1d7-1380009716862@3capp-gmx-bs41>
From: "Markus Wolters" <MarkusWolters@gmx.de>
Date: Tue, 24 Sep 2013 10:01:57 +0200 (CEST)
References: <trinity-b725d346-6ce6-4378-bf05-4acf07646d4a-1378882526182@3capp-gmx-bs34>
	<20130911083342.GH26086@pengutronix.de>
	<trinity-05aa3a84-8cf5-4971-b070-45d701b1fa41-1378890962470@3capp-gmx-bs31>
	<D415CD2EC4182C4EAB90A76B7D9F16DCCF69949B@EX-DAG01.eckelmann.group>
	<trinity-93b7976e-bc44-4ec0-befc-003a8d70ed1a-1379314656590@3capp-gmx-bs22>,
	<20130916082345.GF14466@pengutronix.de>,
	<trinity-2cdba3c2-f4fd-4044-865e-652fc397a088-1379320573765@3capp-gmx-bs02>,
	<trinity-baad43c9-e299-4d87-bb54-698c15cf0236-1379332999405@3capp-gmx-bs02>
Subject: Re: [ptxdist] How to add opkg/ipkg post install scripts to package?
Reply-To: ptxdist@pengutronix.de
List-Id: PTXdist Development Mailing List <ptxdist.pengutronix.de>
List-Unsubscribe: <http://metis.pengutronix.de/cgi-bin/mailman/options/ptxdist>, 
	<mailto:ptxdist-request@pengutronix.de?subject=unsubscribe>
List-Archive: <http://metis.pengutronix.de/pipermail/ptxdist>
List-Post: <mailto:ptxdist@pengutronix.de>
List-Help: <mailto:ptxdist-request@pengutronix.de?subject=help>
List-Subscribe: <http://metis.pengutronix.de/cgi-bin/mailman/listinfo/ptxdist>, 
	<mailto:ptxdist-request@pengutronix.de?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1061577577=="
Sender: ptxdist-bounces@pengutronix.de
Errors-To: ptxdist-bounces@pengutronix.de
To: ptxdist@pengutronix.de

--===============1061577577==
Content-Type: text/html; charset=UTF-8

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>My postinst script is working now, but I have to ask another question. As the most commands executed in the script require a running target (e.g. access to sdcard), how can I prevent the script from beeing executed at ptxdists targetinstall time on build host?
<div>
<div>&nbsp;</div>

<div>Regards,</div>

<div>Markus</div>

<div>&nbsp;</div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Montag, 16. September 2013 um 14:03 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Markus Wolters&quot; &lt;MarkusWolters@gmx.de&gt;<br/>
<b>An:</b>&nbsp;ptxdist@pengutronix.de<br/>
<b>Betreff:</b>&nbsp;Re: [ptxdist] How to add opkg/ipkg post install scripts to package?</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>I have forgotten to mention that I&#39;m using ptxdist Version &quot;ptxdist-2012.03.0&quot;. Maybe something changed since this release?</div>

<div>&nbsp;</div>

<div>Markus</div>

<div>&nbsp;
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b>&nbsp;Montag, 16. September 2013 um 10:36 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Markus Wolters&quot; &lt;MarkusWolters@gmx.de&gt;<br/>
<b>An:</b>&nbsp;ptxdist@pengutronix.de<br/>
<b>Betreff:</b>&nbsp;Re: [ptxdist] How to add opkg/ipkg post install scripts to package?</div>

<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Hi Michael,</div>

<div>&nbsp;</div>

<div>that&#39;s what I meant when I wrote:</div>

<div>&gt; If I extract the files<br/>
&gt; from ipk, there is no postinst file included</div>

<div>
<div>;-)</div>

<div>&nbsp;</div>

<div>There is no postinst script in the tar-ball.</div>

<div>&nbsp;</div>

<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b>&nbsp;Montag, 16. September 2013 um 10:23 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Michael Olbrich&quot; &lt;m.olbrich@pengutronix.de&gt;<br/>
<b>An:</b>&nbsp;ptxdist@pengutronix.de<br/>
<b>Betreff:</b>&nbsp;Re: [ptxdist] How to add opkg/ipkg post install scripts to package?</div>

<div>Hi,<br/>
<br/>
On Mon, Sep 16, 2013 at 08:57:36AM +0200, Markus Wolters wrote:<br/>
&gt; unfortunately I&#39;m not able to get it work. My foo.postinst only contains an<br/>
&gt; echo &quot;something&quot; and exit 0. Rights are rx for everyone. If I extract the files<br/>
&gt; from ipk, there is no postinst file included and no script gets executed on<br/>
&gt; install/upgrade. Any ideas what&#39;s going wrong?<br/>
<br/>
Take a closer look at the ipkg. It is a zip file that contains 2 tar-balls.<br/>
The postinst script should be in the control tar-ball.<br/>
<br/>
Michael<br/>
<br/>
--<br/>
Pengutronix e.K. &#124; &#124;<br/>
Industrial Linux Solutions &#124; <a href="http://www.pengutronix.de/" target="_blank">http://www.pengutronix.de/</a> &#124;<br/>
Peiner Str. 6-8, 31137 Hildesheim, Germany &#124; Phone: +49-5121-206917-0 &#124;<br/>
Amtsgericht Hildesheim, HRA 2686 &#124; Fax: +49-5121-206917-5555 &#124;<br/>
<br/>
--<br/>
ptxdist mailing list<br/>
ptxdist@pengutronix.de</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>


--===============1061577577==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
ptxdist mailing list
ptxdist@pengutronix.de

--===============1061577577==--