CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Wiki.WorkingWithCk4up History

Hide minor edits - Show changes to output

2008-06-24 19:29 by JuergenDaubert -
Changed lines 1-2 from:
[[Public.HomePage | Back to public documentation]]
to:
[[Wiki.HomePage | Back to wiki start page]]
Changed lines 8-9 from:
[[Public.DannyRawlins | Danny Rawlins]]
to:
[[Wiki.DannyRawlins | Danny Rawlins]]
2008-05-15 04:28 by Romster - fix if statement
Changed line 101 from:
> if [ ! "`egrep "^$p.*" /home/romster/.ck4up/ck4up.conf`" ]; then
to:
> if [ -z "`egrep "^$p.*" /home/romster/.ck4up/ck4up.conf`" ]; then
2008-05-15 04:17 by Romster - open all ports in firefox
Added lines 109-120:

----

!! Open all ports I own in firefox.

* '''Warning''' this is madness!

[@
$ 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)
@]

2008-05-14 21:58 by Romster - added how to generate a template
Changed lines 11-12 from:
Ck4up is a utility to monitor web pages for updates. So it's a a lot easier to see when a project releases a new archive to then check and update the Pkgfile.
to:
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.
Added line 14:
Changed lines 47-48 from:
And once that's done you just run ck4up periodically to see if anything has changed.
to:
To initialize for the first time. And once that's done you just run ck4up periodically to see if anything has changed.
Changed lines 51-52 from:
!! How to manage your ck4up.conf file.
to:
!! How to manage your configuration file.
Changed lines 54-55 from:
!! How to check if you have all your ports listed in ck4up.
to:

!! How to quickly generate a template to work with.
Changed lines 69-70 from:
Now run this command to get the list of ports that should be in your ck4up.conf.
to:
Now run this command to generate your configuration file.
Changed lines 73-75 from:
> if [ ! "`egrep "^$p.*" /home/romster/.ck4up/ck4up.conf`" ]; then
> echo "$p is not in ck4up."
> fi
to:
> . $p/Pkgfile
> echo
"$p md5 ${source[0]} @TAR@" >> ~/.ck4up/ck4up.conf
Added lines 79-107:
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.

----

!! How to check if you have all your ports listed in your 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 [ ! "`egrep "^$p.*" /home/romster/.ck4up/ck4up.conf`" ]; then
> echo "$p is not in ck4up."
> fi
> done
$ unset PORTS
@]

2008-05-14 21:30 by Romster - add a description of ck4up
Changed lines 11-13 from:
Bits of code to help you manage and use ck4up.

to:
Ck4up is a utility to monitor web pages for updates. So it's a a lot easier to see when a project releases a new archive to then check and update the Pkgfile.
Changed lines 14-19 from:

----
How to check if you have all your ports listed in
ck4up.

Change directory to where your ports are
.
to:
Install ck4up.
Changed line 17 from:
$ cd ~/var/cwd/remote/ports/crux/contrib
to:
# prt-get depinst ck4up
Changed lines 20-21 from:
Generate a list of your ports. Replace the name of course :P.
to:
Now edit ~/.ck4up/ck4up.conf
Changed line 23 from:
$ PORTS="`grep "# Maintainer: Danny Rawlins" */Pkgfile | awk -F / '{print $1}' | xargs`"
to:
$ $EDITOR ~/.ck4up/ck4up.conf
Changed lines 26-27 from:
Now run this command to get the list of ports that should be in your ck4up.conf.
to:
Here is a example ck4up.conf
Changed lines 29-34 from:
$ for p in $PORTS; do
> if [ ! "`egrep "^$p
.*" /home/romster/.ck4up/ck4up.conf`" ]; then
> echo "$p is not in ck4up
."
> fi
> done
$ unset PORTS
to:
@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@
Added lines 40-77:
Now run.

[@
$ ck4up
@]

And once that's done you just run ck4up periodically to see if anything has changed.

----

!! How to manage your ck4up.conf file.

----
!! How to check if you have all your ports listed in ck4up.

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 [ ! "`egrep "^$p.*" /home/romster/.ck4up/ck4up.conf`" ]; then
> echo "$p is not in ck4up."
> fi
> done
$ unset PORTS
@]

2008-05-14 14:30 by Romster - add category
Added lines 3-4:
Categories: [[!Ports]]
2008-05-14 14:28 by Romster - initial page creation
Added lines 1-41:
[[Public.HomePage | Back to public documentation]]

! Working with ck4up

!!! Author
[[Public.DannyRawlins | Danny Rawlins]]

!!! Description
Bits of code to help you manage and use ck4up.


!! Instructions

----
How to check if you have all your ports listed in ck4up.

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 [ ! "`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.
----