On Sun, May 16, 2010 at 10:14:07PM +0200, Nicolas P. M. Legrand wrote:
> hello,
> 
> $ cat snapdl/pkg/DESCR                                                        
>                                
> snapdl helps you to find mirrors with snapshots of -current synced with
> the main mirror http://ftp.OpenBSD.org and to download the sets from the
> fastest one.
> 
> it's a small script I was missing while downloading regularly
> snapshots, I find it very useful I wonder if anyone else is
> interested?

I like it! I have a similar script, but I like yours better.

Lets get the port up to scratch for importing. The diff below shows some stuff
you missed. Can anyone see anything else? If not, can I get an OK?

PS. For the next version, ftp support too?

PS(2): At the moment you are scraping the html. Perhaps if you were to
ask the relevent parties, you might be able to have the mirror list in a
better format?

PS(3): Have you spoken to anyone about the possibility of such a tool in base?

diff -urNa snapdl.orig/Makefile snapdl.patched/Makefile
--- snapdl.orig/Makefile        Fri Apr 30 18:51:14 2010
+++ snapdl.patched/Makefile     Mon May 17 00:56:59 2010
@@ -1,11 +1,14 @@
+# $OpenBSD$
+
 COMMENT =              download snapshots of OpenBSD-current
 
 DISTNAME =             snapdl-1.1
-CATEGORIES=misc
+CATEGORIES =           misc
+PKG_ARCH =             *
 
 MAINTAINER =            Nicolas P. M. Legrand <[email protected]>
 
-#ISC
+# ISC
 PERMIT_PACKAGE_CDROM = Yes
 PERMIT_PACKAGE_FTP =   Yes
 PERMIT_DISTFILES_CDROM =Yes
@@ -13,7 +16,8 @@
 
 MASTER_SITES =         http://www.ethelred.fr/stuffs/
 MASTER_SITES0 =         http://devio.us./stuffs/
-EXTRACT_SUFX =         .tar.gz
+
+NO_REGRESS =           Yes
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/snapdl.pl ${PREFIX}/bin/snapdl

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk

Reply via email to