Ticket #26325: Portfile

File Portfile, 2.7 KB (added by fclaire@…, 14 years ago)

deletes perllocal.pod

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