source: trunk/dports/net/fwknop/Portfile

Last change on this file was 154098, checked in by mojca@…, 11 months ago

fwknop: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 154098 2016-10-20 03:14:46Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup       perl5 1.0
5
6name            fwknop
7version         1.9.12
8revision        5
9conflicts       fwknop-client
10categories      net security
11license         GPL-2
12maintainers     blair
13description     'FireWall KNock OPerator': a port knocker to Linux servers
14homepage        http://www.cipherdyne.org/fwknop/
15platforms       darwin
16
17long_description \
18    fwknop stands for the 'FireWall KNock OPerator', and implements an \
19    authorization scheme called Single Packet Authorization (SPA) that \
20    is based around Netfilter and libpcap.  SPA requires only a single \
21    encrypted packet in order to communicate various pieces of \
22    information including desired access through a Netfilter policy \
23    and/or complete commands to execute on the target system.  By \
24    using Netfilter to maintain a 'default drop' stance, the main \
25    application of this program is to protect services such as OpenSSH \
26    with an additional layer of security in order to make the \
27    exploitation of vulnerabilities (both 0-day and unpatched code) \
28    much more difficult.  The authorization server passively monitors \
29    authorization packets via libcap and hence there is no 'server' to \
30    which to connect in the traditional sense.  Access to a protected \
31    service is only granted after a valid encrypted and non-replayed \
32    packet is monitored.  This port installs the client side script \
33    that you run to gain access to a Linux box.
34
35master_sites    ${homepage}download/
36
37checksums       md5    4e190dfd31921ddcc0aa6ded8cdae6ae \
38                sha1   ece88ad7653bebee46ae348d9854f3e8751f392c \
39                rmd160 6b52cce7efb57409d02e4b97b1724d9ebdbb61fd
40
41use_bzip2       yes
42
43perl5.branches  5.24
44
45depends_lib     port:p${perl5.major}-crypt-cbc \
46                port:p${perl5.major}-crypt-rijndael \
47                port:p${perl5.major}-digest-sha \
48                port:p${perl5.major}-gnupg-interface \
49                port:p${perl5.major}-net-ipv4addr \
50                port:p${perl5.major}-net-ping-external \
51                port:p${perl5.major}-term-readkey \
52                port:p${perl5.major}-unix-syslog
53
54use_configure   no
55build           {}
56
57destroot {
58    system "cd ${worksrcpath} && ${perl5.bin} -w -p -i -e 's:^#!/usr/bin/perl -w$:#!${perl5.bin} -w:' fwknop"
59    system "cd ${worksrcpath} && ${perl5.bin} -w -p -i -e 's:^use lib ./usr/lib/fwknop.;::' fwknop"
60    xinstall -m 755 ${worksrcpath}/fwknop ${destroot}${prefix}/bin
61    xinstall -m 644 ${worksrcpath}/fwknop.8 ${destroot}${prefix}/share/man/man8
62}
Note: See TracBrowser for help on using the repository browser.