1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name cidr |
---|
4 | version 2.3.2 |
---|
5 | categories net |
---|
6 | maintainers blb@pobox.com |
---|
7 | description RFC 1878 subnet helper |
---|
8 | long_description \ |
---|
9 | cidr is a utility for determining the network address and broadcast \ |
---|
10 | address for a CIDR subnet. It takes as input an ip address and netmask \ |
---|
11 | in binary, dotted-quad, hexadecimal, decimal or prefix formats. It \ |
---|
12 | outputs the network address, broadcast address, and a count (and \ |
---|
13 | optionally a list) of valid host addresses for the corresponding subnet. |
---|
14 | |
---|
15 | # This no longer works, but is here for whatever needs... |
---|
16 | #homepage http://geeksoul.com/robert/cidr.html |
---|
17 | master_sites http://distfiles.opendarwin.org/ |
---|
18 | platforms darwin |
---|
19 | checksums md5 b349453a0196fddd3ffa0af5fbbacf54 |
---|
20 | |
---|
21 | use_configure no |
---|
22 | |
---|
23 | destroot { |
---|
24 | file mkdir "${destroot}/${prefix}/bin" |
---|
25 | file mkdir "${destroot}/${prefix}/share/man/man1" |
---|
26 | file mkdir "${destroot}/${prefix}/share/doc/cidr" |
---|
27 | system "install -m 755 ${worksrcpath}/cidr ${destroot}/${prefix}/bin/" |
---|
28 | system "install -m 644 ${worksrcpath}/cidr.1 ${destroot}/${prefix}/share/man/man1/" |
---|
29 | system "install -m 644 ${worksrcpath}/README ${worksrcpath}/gpl.txt ${worksrcpath}/rfc1878.txt ${destroot}/${prefix}/share/doc/cidr/" |
---|
30 | } |
---|
31 | |
---|