Ticket #63972: portfile

File portfile, 3.0 KB (added by RobK88, 3 years ago)

First attempt at a portfile for codegroup program

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4
5name                codegroup
6
7version             4.0
8
9categories          comms
10
11platforms           darwin
12
13license             Public Domain       
14       
15maintainers         RobK88
16
17description         ${name} encodes and decodes arbitrary binary data in five-letter code groups, just like spies use!
18
19long_description    ${name} encodes any file into five-letter code groups, allowing it to be transmitted through any medium, and decodes files containing codegroups into the original input. \
20                    Encoded files contain a 16-bit cyclical redundancy check (CRC) and file size to verify, when decoded, that the message is complete and correct. \
21                    Files being decoded may contain other information before and after the codegroups, allowing in-the-clear annotations to be included. \
22                    \n
23                    \n${name} makes no attempt, on its own, to prevent your message from being read. Cryptographic security should be delegated to a package intended for that purpose, such as pgp. \
24                    ${name} can then be applied to the encrypted binary output, transforming it into easily transmitted text. Text created by ${name} uses only upper case ASCII letters and spaces. \
25                    Unlike files encoded with uuencode or pgp's ASCII armour facility, the output of ${name} can be easily (albeit tediously) read over the telephone, broadcast by shortwave radio to agents in the field, \
26                    or sent by telegram, telex, or Morse code. \
27                    \n
28                                        \nOnly ${name} conforms to the telegraphic convention of all upper case letters, and passes the telephone test of being readable without any modifiers such as capital and lower-case. \
29                                        Avoiding punctuation marks and lower case letters makes the output of ${name} much easier to transmit over a voice or traditional telegraphic link.
30
31homepage            https://www.fourmilab.ch/codegroup/
32
33master_sites        https://www.fourmilab.ch/codegroup/codegroup.zip
34
35checksums           rmd160  d00f22c278df6bcf25dfc123da026dee8d31da4e \
36                    sha256  fe0dfb5b320b97afd0b639c76a796426bcad50a33a05399ecddde0189133b45b \
37                    size    69123
38                   
39use_zip             yes
40
41use_configure           no
42
43test.run            yes
44
45destroot {
46   
47    xinstall -m 755 -d ${destroot}${prefix}/bin
48    xinstall -m 755 ${worksrcpath}/codegroup ${destroot}${prefix}/bin
49   
50    xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
51    xinstall -m 755 ${worksrcpath}/codegroup.1 ${destroot}${prefix}/share/man/man1
52   
53    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
54    xinstall -m 644 ${worksrcpath}/codegroup.html ${destroot}${prefix}/share/doc/${name}
55    xinstall -m 644 ${worksrcpath}/codegroup.jpeg ${destroot}${prefix}/share/doc/${name}
56
57}
58                 
59