If an update is available then the Debian package is fetched from dl.google.com along with the google-chrome.Slackbuild from the Slackware repository and a package is created. From there it is added to a local repository (using metagen.sh) for installation via slapt-get.
Here's the contents of the README.Slackware:
Code: Select all
Google Chrome auto-updater ========================== This package creates a cron job to automatically check for updated versions of the Google Chrome web browser on a daily basis. To enable the cron job change the 'ENABLED' variable to '1' in the config file /etc/default/google-chrome-update . ENABLED="1" When a new version is detected it is downloaded, packaged and then added to a local repositiory for installation via slapt-get. You can alter the location of the local repository by changing the 'REPO' variable the config file /etc/default/google-chrome-update . REPO="/var/www/packages" To add the local repository to slapt-get you need to append a new 'SOURCE' line to /etc/slapt-get/slapt-getrc. SOURCE=file:///var/www/packages/:CUSTOM All notifications and warnings are logged via syslog and output to the terminal if /etc/cron.daily/google-chrome-update is launched from the command line. If you use this cron job on a system that isn't running 24/7 (e.g. a laptop) you may want to alter the root user's crontab (/var/spool/cron/crontabs/root) to use timestamps instead of fixed times to ensure any missed jobs are run. @daily ID=cron-daily /usr/bin/run-parts /etc/cron.daily 1> /dev/null A complete crontab sample using timestamps for all cron jobs is distributed with this REAME.
http://people.salixos.org/pwatk/package ... me-update/
All the commands used in the script should be present on a basic installation but please check the README (or .dep file) provided just encase.
Acknowledgement goes to ruario for code I reused to extract the version from the Packages.gz file:
http://www.linuxquestions.org/questions ... te-887131/
As of version 0.4 the 'OUTPUT' directory is cleared every time a new update is made available so don't use it for anything else. The default location for this directory is /var/www/packages/salix/google-chrome.