Skip to content
Permalink
Browse files

whatmask: Various enchancements

 - Add license and install license file
 - Add modern checksums
 - Improve long_description
 - No longer override destroot
  • Loading branch information...
mf2k authored and Schima committed Jul 11, 2019
1 parent 3520e65 commit d9ba195e4f7e9546d92753e1b2d886ced3ddfcac
Showing with 23 additions and 22 deletions.
  1. +23 −22 net/whatmask/Portfile
@@ -6,37 +6,38 @@ name whatmask
version 1.2
platforms darwin
categories net
license GPL-2+
maintainers nomaintainer

description Easily convert between three common subnet mask notations
long_description \
Notations supported: \
\
Name Example\
--------------------------------- \
CIDR /24 \
Netmask 255.255.255.0 \
Wilcard Bits 0.0.0.255 \
\
Notations supported:\n\
\n\
Name\t\t\tExample\n\
---------------------------------\n\
CIDR\t\t\t/24\n\
Netmask\t\t\t255.255.255.0\n\
Wilcard Bits\t\t0.0.0.255\n\
\n\
The above notations are all identical. CIDR notation commonly has a "/" in \
of the number (representing the number of bits). Whatmask can accept \
notations with or without a slash. This notation is used more and more. \
A lot of popular routers and software supprt this notation. \
\
notation is pretty much the standard old-school way of doing it. It is \
by most systems (Un*x, Win, Mac, etc.). \
\
bits are similar to the netmask, but they are the logical not of the. \
This notation is used by a number of popular routers.
front of the number (representing the number of bits). Whatmask can accept \
these notations with or without a slash.\n\
\n\
Netmask notation is pretty much the standard old-school way of doing it.\n\
\n\
Wilcard bits are similar to the netmask, but they are the logical not of the \
netmask. This notation is used by a number of popular routers.

homepage http://www.laffeycomputer.com/whatmask.html
master_sites http://downloads.laffeycomputer.com/current_builds/whatmask/

checksums md5 26aeff74dbba70262ccd426e681dcf4a
checksums md5 26aeff74dbba70262ccd426e681dcf4a \
rmd160 5863edc9fe0e3f98b5ff03e79117e44080e58033 \
sha256 7dca0389e22e90ec1b1c199a29838803a1ae9ab34c086a926379b79edb069d89 \
size 170183

use_configure yes
configure.args --mandir=${prefix}/share/man

destroot {
system "cd ${worksrcpath} && \
install ${name} ${destroot}${prefix}/bin"
post-destroot {
xinstall -m 755 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/
}

0 comments on commit d9ba195

Please sign in to comment.
You can’t perform that action at this time.