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