[74303] trunk/dports/net
raimue at macports.org
raimue at macports.org
Sat Dec 11 08:52:43 PST 2010
Revision: 74303
http://trac.macports.org/changeset/74303
Author: raimue at macports.org
Date: 2010-12-11 08:52:38 -0800 (Sat, 11 Dec 2010)
Log Message:
-----------
net/asused:
New port, closes #26325
Added Paths:
-----------
trunk/dports/net/asused/
trunk/dports/net/asused/Portfile
trunk/dports/net/asused/files/
trunk/dports/net/asused/files/patch-ipv4pack-ipv4pack.pm.diff
Added: trunk/dports/net/asused/Portfile
===================================================================
--- trunk/dports/net/asused/Portfile (rev 0)
+++ trunk/dports/net/asused/Portfile 2010-12-11 16:52:38 UTC (rev 74303)
@@ -0,0 +1,76 @@
+# -*- 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
+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 path:[string range ${perl5.bin} [string length ${prefix}/] end]: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
+
Property changes on: trunk/dports/net/asused/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/net/asused/files/patch-ipv4pack-ipv4pack.pm.diff
===================================================================
--- trunk/dports/net/asused/files/patch-ipv4pack-ipv4pack.pm.diff (rev 0)
+++ trunk/dports/net/asused/files/patch-ipv4pack-ipv4pack.pm.diff 2010-12-11 16:52:38 UTC (rev 74303)
@@ -0,0 +1,11 @@
+--- ipv4pack/ipv4pack.pm.orig 2010-12-05 09:18:51.000000000 +0100
++++ ipv4pack/ipv4pack.pm 2010-12-05 09:19:44.000000000 +0100
+@@ -271,7 +271,7 @@
+
+ # check for a valid range: no CLASS-D and upper (223-255), no 127/8
+ # and no private networks allowed (10/8)
+- return ("", $O_PRIVATERANGE) if ($1 =~ /^10|127$/);
++ return ("", $O_PRIVATERANGE) if ($1 eq "10" || $1 eq "127");
+ return ("", $O_RESERVEDCLASS) if ($1 > 223);
+
+ if ($3 eq '/') { # range is in format quad/prefix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101211/fcd8dbeb/attachment.html>
More information about the macports-changes
mailing list