BSD Ports

sysutils/shc 3.8.9 NetBSD

Shell script to C compiler

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
gnu-gpl-v2
Categories
sysutils
Package size
15.2 KiB, 42.5 KiB installed

Description

shc creates a stripped binary executable version of a shell script.

shc itself is not a compiler such as cc, but rather it 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 shell -c option.

In the other systems

SystemPortVersion
NetBSDsysutils/shc3.8.9
FreeBSDmisc/shc4.0.3_1
DragonFlymisc/shc4.0.3_1
MidnightBSDmisc/shc4.0.3

Install

Binary package:

pkgin install shc

From pkgsrc:

cd /usr/pkgsrc/sysutils/shc && make install clean

Dependencies

No port depends on this one.