Ticket #1322: Portfile

File Portfile, 1.2 KB (added by blb@…, 21 years ago)

Portfile

Line 
1# $Id: $
2PortSystem              1.0
3name                    cidr
4version                 2.3.2
5categories              net
6maintainers             blb@pobox.com
7description             RFC 1878 subnet helper
8long_description \
9cidr is a utility for determining the network address and broadcast \
10address for a CIDR subnet.  It takes as input an ip address and netmask \
11in binary, dotted-quad, hexadecimal, decimal or prefix formats.  It \
12outputs the network address, broadcast address, and a count (and \
13optionally 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
17master_sites    http://distfiles.opendarwin.org/
18platforms               darwin
19checksums               md5 b349453a0196fddd3ffa0af5fbbacf54
20
21use_configure   no
22
23destroot {
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