Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] version-check script

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Glenn Shannon" <warlock AT cyberlok.org>
  • To: "M.L." <mlubrano AT sourcemage.org>, "Andrew" <afrayedknot AT thefrayedknot.armory.com>, <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] version-check script
  • Date: Mon, 28 Apr 2003 00:49:19 -0700

Wow that looks totally usable, ML, thanks!

Been having one heck of a time trying to figure out how to setup auto-alerts
to let me know when a spell's homepage or specific url changes.

Will check it out and hopefully this works a bit better than the nightmare
of a bash script I was cooking.
----- Original Message -----
From: "M.L." <mlubrano AT sourcemage.org>
To: "Andrew" <afrayedknot AT thefrayedknot.armory.com>;
<sm-discuss AT lists.ibiblio.org>
Sent: Monday, April 28, 2003 12:32 AM
Subject: Re: [SM-Discuss] version-check script


> On Sun, 27 Apr 2003 20:37:23 -0700, Andrew wrote
> > not sure if you know this or not, but i think dufflebunk has a similiar
> > script, maybe you could look at it also...
> >
>
> Hi,
>
> I guess the duff'script is linked in the wiki (and certainly on his home
page).
> Then I have one on http://perso.compaqnet.fr/linuxxunil with filtering &
email
> reports (to make it a cron job)
>
> Bye,
> Mat.
>
> > On Sun, Apr 27, 2003 at 08:34:48PM -0700, Marc Greene wrote:
> > > I've noticed a lot of packages are getting behind, and also that it
> > > takes a good deal of work to keep up with maintaining current versions
in
> > > the grimoire. In the effort to keep my own box current, I've come up
with
> > > a script that speeds and simplifies the process of keeping a grimoire
> > > section in sync with new versions on the servers. My orginal intent
was
> > > to have something fully automated that would return a list of any
> > > packages that had upgrades available, but I couldn't see quite how to
do
> > > that. This is an interactive script that pulls enough info out of the
> > > DETAILS file to grep the directory listing for new potential new
> > > versions. Below is what it looks like when it's running, and I've
> > > attached a sample status file it creates for a section
(section.status,
> > > in this case net), along with the script. It's not perfect, and I'm
sure
> > > whoever uses it will be able to improve it. This script turns up a lot
of
> > > new versions, and I don't have time to submit bug reports for all of
> > > them, so hopefully this will save the gurus a bit of time, or at least
> > > help keep things more up to date :)
> > >
> > > Here is a sample of the output as it runs:
> > >
> > > status - http://www.the-den.org/status
> > > 13. http://www.the-den.org/status/status-1.0.tar.gz
> > > 14. http://www.the-den.org/status/status-1.1.tar.gz
> > > 15. http://www.the-den.org/status/status-1.2.tar.gz
> > > 16. http://www.the-den.org/status/status-1.3.tar.gz
> > > 17. http://www.the-den.org/status/status-1.4.tar.gz
> > > 18. http://www.the-den.org/status/status-1.5.tar.gz
> > > 19. http://www.the-den.org/status/status-1.5a.tar.gz
> > > 20. http://www.the-den.org/status/status-1.6.1.tar.gz
> > > 21. http://www.the-den.org/status/status-1.6.tar.gz
> > > 22. http://www.the-den.org/status/status-current.tar.gz
> > >
> > > Enter new version or 'Enter' for none (We have: status-1.5a.tar.gz):
> > > status-1.6.1.tar.gz
> > >
> > > You still have to examine the listing to see if there are new
versions,
> > > but it's a lot faster than 'gaze html' then hitting web sites. Anyway
the
> > > rest should be pretty self exlpanatory from the script and output file
> > > (net.status).
> > >
> > > Marc
> > > if [ $1 ] && [ -d /var/lib/sorcery/codex/devel/$1 ] ; then
> > > :
> > > else
> > > echo "Usage: $0 SECTION"
> > > echo "e.g. $0 utils"
> > > exit
> > > fi
> > > [ $EDITOR ] || EDITOR=pico
> > > SECTION=$1
> > > >$SECTION.status
> > > . /etc/sorcery/config &>/dev/null
> > > find /var/lib/sorcery/codex/devel/$SECTION -name DETAILS >DETAILSlist
> > > echo -n "Edit list of spells to check? [y/N] "
> > > read ANS
> > > if [ "$ANS" = "y" ] || [ "$ANS" = "Y" ] ; then
> > > $EDITOR DETAILSlist
> > > fi
> > > for i in `cat DETAILSlist` ; do
> > > . $i &>/dev/null ; . $i $>/dev/null
> > > echo -n "$SPELL - "
> > > if echo $SOURCE_URL |grep SOURCE &>/dev/null; then
> > > SERVER=`echo $SOURCE_URL |sed "s:\\$SOURCE::"`
> > > else
> > > SERVER=`echo $SOURCE_URL |sed "s:/[^/]*$::"`
> > > fi
> > > echo "$SERVER"
> > > EXT=`echo $SOURCE | sed "s/^.*[^A-Za-z0-9]//"`
> > > SRC=`echo $SOURCE | tr -d '[0-9]' |cut -d "." -f 1`
> > > if lynx -dump $SERVER >.tmplist ; then
> > > if grep "$SRC-.*$EXT$" .tmplist |grep "^ *[0-9]" ||
> > > grep "$SRC.*$EXT$" .tmplist |grep "^ *[0-9]" ||
> > > grep "$SPELL.*$EXT$" .tmplist |grep "^ *[0-9]"; then
> > > rm .tmplist
> > > echo
> > > echo -n "Enter new version or 'Enter' for none (We have: $SOURCE):
"
> > > read ANS
> > > if [ $ANS ] ; then
> > > echo "NEW: $SPELL - $ANS" >>$SECTION.status
> > > echo
> > > fi
> > > else
> > > rm .tmplist
> > > echo "NOT FOUND: $SPELL - $SERVER" >>$SECTION.status
> > > echo
> > > fi
> > > else
> > > echo "NO ACCESS: $SPELL - $SERVER" >>$SECTION.status
> > > echo
> > > fi
> > > done
> > > echo "Done. The information is in $SECTION.status"
> >
> > > NOT FOUND: gq - http://biot.com/gq/download
> > > NOT FOUND: nc - http://www.atstake.com/research/tools
> > > NEW: agt - agt-1.08.tar.gz
> > > NEW: mtr - mtr-0.53.tar.gz
> > > NEW: dhcp - dhcp-3.0.1rc11.tar.gz
> > > NEW: nast - nast-0.1.7.tar.gz
> > > NEW: mrtg - 2.9.29.tar.gz
> > > NEW: nmap - nmap-3.26.tar.bz2
> > > NOT FOUND: noip - http://www.no-ip.com/client/linux
> > > NEW: nsat - nsat-1.5.tgz
> > > NEW: yp-tools - yp-tools-2.8.tar.bz2
> > > NEW: jnettop - jnettop-0.8.tar.gz
> > > NEW: nfs-utils - nfs-utils-1.0.3.tar.gz
> > > NO ACCESS: dictd - ftp://ftp.dict.org/pub/dict
> > > NOT FOUND: grnet - http://grsecurity.net
> > > NEW: lcrzo - lcrzo-4.17.0-src.tgz
> > > NOT FOUND: lrzsz - http://www.ohse.de/uwe/releases
> > > NEW: zebra - zebra-0.93b.tar.gz
> > > NEW: dnsmasq - dnsmasq-1.12.tar.gz
> > > NEW: lcrzoex - lcrzoex-4.17.0-src.tgz
> > > NOT FOUND: gridentd - http://grsecurity.net
> > > NEW: fwbuilder - fwbuilder-1.0.9.tar.gz
> > > NEW: rrdtool - rrdtool-1.0.42.tar.gz
> > > NEW: icmpchat - icmpchat-0.5.1.tar.gz
> > > NEW: maradns - maradns-1.0.17.tar.bz2
> > > NEW: etherape - etherape-0.9.0.tar.gz
> > > NO ACCESS: ddclient - http://burry.ca:4141/ddclient
> > > NOT FOUND: grsparse - http://grsecurity.net
> > > NOT FOUND: portsentry - http://www.psionic.com/downloads
> > > NOT FOUND: minicom - http://www.netsonic.fi/~walker
> > > NOT FOUND: chrony - http://www.netsonic.fi/~walker
> > > NEW: stunnel - stunnel-4.04.tar.gz
> > > NEW: dhcpcd - dhcpcd-1.3.22-pl4.tar.gz
> > > NOT FOUND: ettercap - http://ettercap.sourceforge.net/download
> > > NEW: netdude - netdude-0.3.3.tar.gz
> > > NEW: gspoof - gspoof-2.1.1.tar.gz
> > > NEW: shorewall - shorewall-1.4.2.tgz
> > > NEW: net-snmp - net-snmp-5.0.8.tar.gz
> > > NEW: status - status-1.6.1.tar.gz
> > > NOT FOUND: netwatch - http://www.slctech.org/~mackay
> > > NEW: oidentd - oidentd-2.0.6.tar.gz
> > > NOT FOUND: xprobe - http://www.sys-security.com/archive/tools/X
> > > NOT FOUND: arpoison - http://web.syr.edu/~sabuer/arpoison
> > > NEW: firestarter - firestarter-0.9.1-2.tar.gz
> > > NOT FOUND: eciadsl-usermode - http://eciadsl.flashtux.org
> > > NOT FOUND: yatunnel - http://irccrew.org/~cras
> > > NEW: xtraceroute - xtraceroute-0.9.1.tar.gz
> > > NOT FOUND: eciadsl-synch - http://eciadsl.flashtux.org
> >
> > > _______________________________________________
> > > SM-Discuss mailing list
> > > SM-Discuss AT lists.ibiblio.org
> > > http://lists.ibiblio.org/mailman/listinfo/sm-discuss
> >
> > _______________________________________________
> > SM-Discuss mailing list
> > SM-Discuss AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
>
> //
> // M.L.
> // ICQ #23832402 ; Linux User #36502
> //
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
>
>





Archive powered by MHonArc 2.6.24.

Top of Page