source: trunk/dports/net/ipcalc/Portfile

Last change on this file was 153291, checked in by mf2k@…, 12 months ago

ipcalc: Use perl 5.24. Add maintainer. whitespace. (#52309)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 153291 2016-09-28 13:02:53Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           perl5 1.0
5
6name                ipcalc
7version             0.41
8revision            1
9categories          net
10license             GPL-2+
11platforms           darwin
12supported_archs     noarch
13maintainers         gmail.com:xeron.oskom openmaintainer
14
15description         calculates various network masks etc. from given ip-address
16long_description    ipcalc takes an IP address and netmask and calculates the \
17                    resulting broadcast, network, Cisco wildcard mask, and host \
18                    range. By giving a second netmask, you can design sub- and \
19                    supernetworks. It is also intended to be a teaching tool and \
20                    presents the results as easy-to-understand binary values.
21
22homepage            http://jodies.de/ipcalc/
23master_sites        http://jodies.de/ipcalc-archive/
24
25checksums           rmd160  aaa21c1804d7498e2604c907a336c20dc9b4511d \
26                    sha256  dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a
27
28perl5.branches      5.24
29
30depends_lib         port:perl${perl5.major}
31
32configure {
33    reinplace "s|/usr/bin/perl -w|${prefix}/bin/perl -w|g" ${worksrcpath}/ipcalc
34}
35
36build {}
37
38destroot {
39    xinstall -m 755 ${worksrcpath}/ipcalc ${destroot}${prefix}/bin
40    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
41    xinstall -m 644 ${worksrcpath}/changelog \
42        ${destroot}${prefix}/share/doc/${name}
43}
Note: See TracBrowser for help on using the repository browser.