Subject: package upgrade notify, 1st shot
To: None <pkgsrc-wip-discuss@lists.sourceforge.net, tech-pkg@NetBSD.org>
From: iMil <imil@home.imil.net>
List: tech-pkg
Date: 10/21/2004 17:35:35
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
here comes a first approach for a "package upgrade needed" notifier. It is
in its very early stages I guess but as I hope it will be used by
mainteners, I'd like it to be rather well adapted to your needs.
So please feedback on what you'd like to add / modify as it is.
Installation notes and use:
you'll need perl, Net::FTP, LWP::UserAgent and HTTP::Request::Common
create the /usr/pkg/etc/pkg_notify.list file containing the package list
you want to be informed on, following this format :
$ cat /usr/pkg/etc/pkg_notify.list
wip/p5-Mail-Webmail-Gmail
wip/p5-WWW-Curl
net/wimon
archivers/foo
LOCALBASE and pkgsrc base directory are hardcoded as, respectively,
/usr/pkg and /usr/pkgsrc, if you use a different hierarchy you may want to
change them. Yes I will handle this :)
I mainly need you to check the behaviour on strangely named / versionned
packages you maintain, by now I assume an archive has the following format
:
$dist([^\/]+)$extract_sufx
with $dist = $1 from (.+)($major[\._]$minor.*)
and ($major, $minor) = split(/\./, $pkgversion)
and $pkgversion =~ s/.+\-([0-9_\.]+)[nb0-9]*$/$1/ # issued from PKGNAME
If you want to give it a try, the tool is available here:
http://imil.net/NetBSD/pkg_notify
Of course it is subject to eavy changes..
Hope to hear from you soon
regards,
- -------------------------
iMil <imil@home.imil.net> _
http://gcu-squad.org ASCII ribbon campaign ( )
- against HTML email X
& vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)
iD8DBQFBd9dKFG3BlGWyzUIRAoQJAJ0cInLmbOLFqU5cZJhVVyo64IXd8wCfRV05
dHaa+GP7NoWVeszKATiyxKQ=
=NjLA
-----END PGP SIGNATURE-----