<div dir="ltr"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div><i>(Oops forgot to cc)</i></div><div><i><br></i></div></div></div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mouaad Aallam</b> <span dir="ltr"><<a href="mailto:mouaad@aallam.com">mouaad@aallam.com</a>></span><br>Date: Thu, Jun 30, 2016 at 4:47 PM<br>Subject: Re: [Android-tools-devel] Google Android NDK Installer Package<br>To: Hans-Christoph Steiner <<a href="mailto:hans@at.or.at">hans@at.or.at</a>><br><br><br><div dir="ltr">I found it, it's the postinit script.<div>one thing: should the content of doc dir be in the info list ?</div><div>`find ${DOC_DIR} | sort >> /var/lib/dpkg/info/google-${PKG_NAME}-installer.list`</div></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><i>Mouaad Aallam</i></div></div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Thu, Jun 30, 2016 at 1:28 PM, Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Mouaad Aallam:<br>
<div><div>>><br>
>> And another idea for improvement would be to make `wget` run as the<br>
>> 'nobody' user, so that would mean something like:<br>
>><br>
>>    install -d -m0700 --owner nobody $(DL_DIR)<br>
>><br>
>> and<br>
>><br>
>>    su nobody -s /bin/sh -c "wget --continue $(PKG_SOURCE_URL)"<br>
>><br>
><br>
> changing this not that simple after all, the debian/install (i think)<br>
> creates the folder (to copy makefile and sha1) as root, before the postrm<br>
> script (obviously), i will look for a way to tweak this<br>
><br>
<br>
</div></div>(keeping the list in CC)<br>
<br>
That install command, when run as root, should set the permissions properly.<br>
<span><font color="#888888"><br>
.hc<br>
<br>
</font></span></blockquote></div><br></div></div></div>
</div><br></div>