Ticket #52309: ipcalc.patch
File ipcalc.patch, 2.8 KB (added by xeron (Ivan Larionov), 8 years ago) |
---|
-
net/ipcalc/Portfile
1 1 # $Id$ 2 2 3 PortSystem 1.0 3 PortSystem 1.0 4 PortGroup perl5 1.0 4 5 5 name 6 version 7 categories net 8 license GPL-2+ 9 platforms darwin 10 maintainers nomaintainer 11 supported_archs noarch 6 name ipcalc 7 version 0.41 8 revision 1 9 categories net 10 license GPL-2+ 11 platforms darwin 12 maintainers nomaintainer 12 13 13 description 14 long_description 15 16 17 18 14 description calculates various network masks etc. from given ip-address 15 long_description ipcalc takes an IP address and netmask and calculates the \ 16 resulting broadcast, network, Cisco wildcard mask, and host \ 17 range. By giving a second netmask, you can design sub- and \ 18 supernetworks. It is also intended to be a teaching tool and \ 19 presents the results as easy-to-understand binary values. 19 20 20 homepage http://jodies.de/ipcalc/ 21 master_sites http://jodies.de/ipcalc-archive/ 22 checksums md5 fb791e9a5220fc8e624d915e18fc4697 \ 23 sha1 b75b498f2fa5ecfa30707a51da63c6a5775829f3 \ 24 rmd160 aaa21c1804d7498e2604c907a336c20dc9b4511d 21 homepage http://jodies.de/ipcalc/ 22 master_sites http://jodies.de/ipcalc-archive/ 25 23 26 depends_run path:bin/perl:perl5 24 checksums rmd160 aaa21c1804d7498e2604c907a336c20dc9b4511d \ 25 sha256 dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a 27 26 28 configure { 29 reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" ${worksrcpath}/ipcalc 27 perl5.branches 5.24 28 29 depends_lib port:perl${perl5.major} 30 31 configure { 32 reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" ${worksrcpath}/ipcalc 30 33 } 31 34 32 build 35 build {} 33 36 34 destroot 35 36 37 38 37 destroot { 38 xinstall -m 755 ${worksrcpath}/ipcalc ${destroot}${prefix}/bin 39 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 40 xinstall -m 644 ${worksrcpath}/changelog \ 41 ${destroot}${prefix}/share/doc/${name} 39 42 }