Categories: Ports
Ck4up is a utility to monitor web pages for updates. So it's a lot easier to see when a project releases a new archive to then check and update the Pkgfile.
Install ck4up.
# prt-get depinst ck4up
Now edit ~/.ck4up/ck4up.conf
$ $EDITOR ~/.ck4up/ck4up.conf
Here is a example ck4up.conf
@TAR@ @NAME@-.*?\.tar\.[bg]z2? @SFID@ http://sourceforge.net/project/showfiles.php?group_id= @BERLIOSID@ http://developer.berlios.de/project/showfiles.php?group_id= @GNUID@ http://ftp.gnu.org/gnu/@NAME@/ bmp md5 @SFID@95272 @TAR@ beautifulsoup md5 http://www.crummy.com/software/BeautifulSoup/download/ BeautifulSoup-[0-9.]+ ladspa md5 http://www.ladspa.org/download/ ladspa_sdk_[.0-9]+ ddrescue md5 @GNUID@ @TAR@
Now run.
$ ck4up
To initialize for the first time. And once that's done you just run ck4up periodically to see if anything has changed.
Change directory to where your ports are.
$ cd ~/var/cwd/remote/ports/crux/contrib
Generate a list of your ports. Replace the name of course :P.
$ PORTS="`grep "# Maintainer: Danny Rawlins" */Pkgfile | awk -F / '{print $1}' | xargs`"
Now run this command to generate your configuration file.
$ for p in $PORTS; do > . $p/Pkgfile > echo "$p md5 ${source[0]} @TAR@" >> ~/.ck4up/ck4up.conf > done $ unset PORTS
Note this wont be perfect and some editing will be still required, but this should save some of the pain of creating a very large configuration file.
Change directory to where your ports are.
$ cd ~/var/cwd/remote/ports/crux/contrib
Generate a list of your ports. Replace the name of course :P.
$ PORTS="`grep "# Maintainer: Danny Rawlins" */Pkgfile | awk -F / '{print $1}' | xargs`"
Now run this command to get the list of ports that should be in your ck4up.conf.
$ for p in $PORTS; do > if [ -z "`egrep "^$p.*" /home/romster/.ck4up/ck4up.conf`" ]; then > echo "$p is not in ck4up." > fi > done $ unset PORTS
Now you should know what lines to add to ck4up.conf.
$ firefox $(for n in $(grep "# Maintainer: Danny Rawlins" */Pkgfile | \ awk -F / '{print $1}'); do grep "# URL: " $n/Pkgfile; done | awk -F L:. '{print $2}' | uniq | sort)