# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name asused version 3.72 revision 1 categories net platforms darwin maintainers free.fr:fclaire PortGroup perl5 1.0 description Command-line tool to run a check on the usage of the RIPE Whois DB long_description Asused is a tool to check and summarise address space \ registered in the RIPE database. For a given list of allocations \ the tool prints various information concerning the allocations \ and the assignments they contain. homepage http://www.ripe.net/tools/ # I was unable to find the source package on RIPE's FTP server ftp://ftp.ripe.net/tools/ so I use a FreeBSD server master_sites http://ftp2.za.freebsd.org/pub/FreeBSD/distfiles/ distname ${name}-${version}_whois_new_query_fix checksums md5 133dba98ecc836897c8a53846d9d2463 \ sha1 c81f54260488b25905f36fe22cf4257f2c6d8dd2 \ rmd160 7beb7969ef19871cf0f033e3ff425ac010f470d3 depends_lib port:perl5 configure.cmd ${perl5.bin} configure.env PERL_AUTOINSTALL=--skipdeps configure.pre_args Makefile.PL configure.args INSTALLDIRS=vendor set asconf ${prefix}/etc/asused.conf patchfiles patch-ipv4pack-ipv4pack.pm.diff post-patch { reinplace "s|asused\\.conf|${prefix}/etc/asused\\.conf|g" ${worksrcpath}/asused.PL } post-destroot { delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod] move ${worksrcpath}/asused.conf ${destroot}${asconf}.${version} } notes " To use asused, you need to fill a config file with your registry\ information. You can put it into the asused.conf file in the current\ working directory, or into .asusedrc in your home directory.\ Alternatively, you can specify an arbitary file location on the asused\ command line with the --config switch. The config file should contain: REGID = your registry ID, as it was assigned by RIPE NCC ALLOC = a set of strings, each of them should have one allocation\ string in a prefixed notation. There is a file in this distribution containing example data: ${asconf}.${version} You may test asused on your system with the following command: $ asused --config ${asconf}.${version} " livecheck.type regex livecheck.url http://ftp2.za.freebsd.org/pub/FreeBSD/distfiles/ livecheck.regex ${name}-(\[0-9.\]+).*\\.tar.gz