1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name asused |
---|
7 | version 3.72 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | maintainers free.fr:fclaire |
---|
11 | PortGroup perl5 1.0 |
---|
12 | |
---|
13 | description Command-line tool to run a check on the usage of the RIPE Whois DB |
---|
14 | |
---|
15 | long_description Asused is a tool to check and summarise address space \ |
---|
16 | registered in the RIPE database. For a given list of allocations \ |
---|
17 | the tool prints various information concerning the allocations \ |
---|
18 | and the assignments they contain. |
---|
19 | |
---|
20 | homepage http://www.ripe.net/tools/ |
---|
21 | # I was unable to find the source package on RIPE's FTP server ftp://ftp.ripe.net/tools/ so I use a FreeBSD server |
---|
22 | master_sites http://ftp2.za.freebsd.org/pub/FreeBSD/distfiles/ |
---|
23 | |
---|
24 | distname ${name}-${version}_whois_new_query_fix |
---|
25 | |
---|
26 | checksums md5 133dba98ecc836897c8a53846d9d2463 \ |
---|
27 | sha1 c81f54260488b25905f36fe22cf4257f2c6d8dd2 \ |
---|
28 | rmd160 7beb7969ef19871cf0f033e3ff425ac010f470d3 |
---|
29 | |
---|
30 | depends_lib path:[string range ${perl5.bin} [string length ${prefix}/] end]:perl5 |
---|
31 | |
---|
32 | configure.cmd ${perl5.bin} |
---|
33 | configure.env PERL_AUTOINSTALL=--skipdeps |
---|
34 | configure.pre_args Makefile.PL |
---|
35 | configure.args INSTALLDIRS=vendor |
---|
36 | |
---|
37 | set asconf ${prefix}/etc/asused.conf |
---|
38 | |
---|
39 | patchfiles patch-ipv4pack-ipv4pack.pm.diff |
---|
40 | |
---|
41 | post-patch { |
---|
42 | reinplace "s|asused\\.conf|${prefix}/etc/asused\\.conf|g" ${worksrcpath}/asused.PL |
---|
43 | } |
---|
44 | |
---|
45 | post-destroot { |
---|
46 | delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod] |
---|
47 | move ${worksrcpath}/asused.conf ${destroot}${asconf}.${version} |
---|
48 | } |
---|
49 | |
---|
50 | notes " |
---|
51 | |
---|
52 | To use asused, you need to fill a config file with your registry |
---|
53 | information. You can put it into the asused.conf file in the current |
---|
54 | working directory, or into .asusedrc in your home directory. |
---|
55 | Alternatively, you can specify an arbitary file location on the asused |
---|
56 | command line with the --config switch. |
---|
57 | |
---|
58 | The config file should contain: |
---|
59 | |
---|
60 | REGID = your registry ID, as it was assigned by RIPE NCC |
---|
61 | |
---|
62 | ALLOC = a set of strings, each of them should have one allocation |
---|
63 | string in a prefixed notation. |
---|
64 | |
---|
65 | There is a file in this distribution containing example data: |
---|
66 | ${asconf}.${version} |
---|
67 | |
---|
68 | You may test asused on your system with the following command: |
---|
69 | $ asused --config ${asconf}.${version} |
---|
70 | |
---|
71 | " |
---|
72 | |
---|
73 | livecheck.type regex |
---|
74 | livecheck.url http://ftp2.za.freebsd.org/pub/FreeBSD/distfiles/ |
---|
75 | livecheck.regex ${name}-(\[0-9.\]+).*\\.tar.gz |
---|
76 | |
---|