Firefox always up to date (autd) - i686 & x86_64

This section is designed for your 'porteus build scripts' which create Porteus modules for your favorite applications. Scripts should work like the well-known 'SlackBuilds' with minimum user interaction.
User avatar
Ed_P
Contributor
Contributor
Posts: 3410
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Firefox always up to date (autd) - i686 & x86_64

Post#31 by Ed_P » 01 Nov 2015, 03:34

tb01 wrote:Off topic #1, how do you generate concise links to individual posts? (eg, viewtopic.php?f=76&t=2022&p=35538#p35528 -vs- viewtopic.php?p=35528&sid=0b225566ecea222ef097a0cce46a1ea5#p35528)
Two ways that I use. 1. I find the posting I wish to link to and copy it before I sign on. 2. I manually delete the sid operand & value when I post a link found when I am signed on.

Such as this sound problem one that I had that you may find useful: viewtopic.php?f=81&t=2926#p20365 :wink:
Ed

tome
Contributor
Contributor
Posts: 577
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Firefox always up to date (autd) - i686 & x86_64

Post#32 by tome » 02 Nov 2015, 22:37

@tb01
break the certificate check? I didn't have that issue and am curious why
Because of another Desktop ->packages -> missing ca-certificates package
Could this have been a permissions setting issue? I didn't see that msg.
No, $where path doesn't exist or is not writable (iso image, xzm module)

tome
Contributor
Contributor
Posts: 577
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Firefox always up to date (autd) - i686 & x86_64

Post#33 by tome » 12 Mar 2017, 17:38

My way to keep firefox module up to date (especially for those who don't use changes= cheatcode).

If you:
1. use firefox module,
2. you have enabled updates in firefox preferences and
3. user has permissions to write firefox updates (e.g. /opt/firefox-esr), then
firefox module can be automatically rebuild every update. One example to achieve this is to add:

Code: Select all

if [ -e /mnt/live/memory/changes/opt/firefox-esr/updates ]; then
src=/opt/firefox-esr
mkdir -p /tmp/new-modules/$src
mount -o bind $src /tmp/new-modules/$src
new="firefox-esr-$(date -I).xzm"
mksquashfs /tmp/new-modules/opt /tmp/$new -noappend -b 256K -comp gzip -Xcompression-level 5 -keep-as-directory
umount /tmp/new-modules/$src
dest=`grep 'firefox-esr-' /mnt/live/tmp/modules | sed -n '1p' | sed 's/\(.*\)\/.*/\1/'`
mv -f /tmp/$new $dest
old=`grep 'firefox-esr-' /mnt/live/tmp/modules | grep -v "$new"`
gvfs-trash -f $old
sync
fi
to '/etc/rc.d/rc.local_shutdown' (or another suitable place).
In above example firefox-esr is used and icons, alias command and launcher are kept outside module. Firefox ESR is an abbreviation of Firefox Extended Support Release - mainly security updates (lesser size of updates).

Post Reply