Skip to content

Commit

Permalink
shc: new port shell script compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
kurthindenburg committed Feb 9, 2017
1 parent 4aaf452 commit 8b21edc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions devel/shc/Portfile
@@ -0,0 +1,31 @@
# -*- 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

PortSystem 1.0
PortGroup github 1.0

github.setup neurobin shc 3.9.3

categories devel
platforms darwin
license GPL-3
maintainers {khindenburg @kurthindenburg} openmaintainer

description Shell Script Compiler
long_description SHC is a generic shell script compiler. It takes a script,\
which is specified on the command line and produces C source code. \
The generated source code is then compiled and linked to produce a stripped\
binary. The compiled binary will still be dependent on the shell specified \
in the first line of the shell code (i.e shebang: #!/bin/sh or such), \
thus shc does not create completely independent binaries. \
shc itself is not a compiler such as cc, it rather encodes and encrypts \
a shell script and generates C source code with the added expiration\
capability. It then uses the system compiler to compile a stripped binary \
which behaves exactly like the original script. Upon execution, the \
compiled binary will decrypt and execute the code with the shells' -c \
option.

checksums rmd160 9390a387be6d3ebd6e6a62981bbb23296372b74e \
sha256 b0c5fd28e734bfaf3bcc320ef78d5857a4a2d4bfc19b9530698a1e134431eb8f

# Do not grab alpha releases
livecheck.regex (\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)${extract.suffix}

0 comments on commit 8b21edc

Please sign in to comment.