summaryrefslogtreecommitdiff
path: root/sysutils/shc
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-09-30 09:41:49 +0000
committergrant <grant@pkgsrc.org>2004-09-30 09:41:49 +0000
commit124465c371f71bd3fdb02baadc09a527e09eb621 (patch)
tree171b08f5ad294db4eac1be26b233f1725b1e6b38 /sysutils/shc
parented5f2a34cda64199b35c1d8b7c43d0e3fef70f39 (diff)
downloadpkgsrc-124465c371f71bd3fdb02baadc09a527e09eb621.tar.gz
Initial import of shc-3.7 into the NetBSD packages collection.
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.
Diffstat (limited to 'sysutils/shc')
-rw-r--r--sysutils/shc/DESCR8
-rw-r--r--sysutils/shc/Makefile17
-rw-r--r--sysutils/shc/PLIST3
-rw-r--r--sysutils/shc/distinfo5
-rw-r--r--sysutils/shc/patches/patch-aa36
5 files changed, 69 insertions, 0 deletions
diff --git a/sysutils/shc/DESCR b/sysutils/shc/DESCR
new file mode 100644
index 00000000000..4dc54391dbb
--- /dev/null
+++ b/sysutils/shc/DESCR
@@ -0,0 +1,8 @@
+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.
diff --git a/sysutils/shc/Makefile b/sysutils/shc/Makefile
new file mode 100644
index 00000000000..44fd52740b9
--- /dev/null
+++ b/sysutils/shc/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/09/30 09:41:49 grant Exp $
+#
+
+DISTNAME= shc-3.7
+CATEGORIES= sysutils
+MASTER_SITES= http://www.datsi.fi.upm.es/~frosal/sources/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.datsi.fi.upm.es/~frosal/
+COMMENT= Shell script to C compiler
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/shc ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/shc.1 ${PREFIX}/man/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/shc/PLIST b/sysutils/shc/PLIST
new file mode 100644
index 00000000000..0a171dfd98b
--- /dev/null
+++ b/sysutils/shc/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/09/30 09:41:49 grant Exp $
+bin/shc
+man/man1/shc.1
diff --git a/sysutils/shc/distinfo b/sysutils/shc/distinfo
new file mode 100644
index 00000000000..7e9145d4aee
--- /dev/null
+++ b/sysutils/shc/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/09/30 09:41:49 grant Exp $
+
+SHA1 (shc-3.7.tgz) = ad0532dd16ee4d34ea2485552cef07eeebfd0fcd
+Size (shc-3.7.tgz) = 18942 bytes
+SHA1 (patch-aa) = 1b09da15c37374a87b94085d4b49977b4fd12db7
diff --git a/sysutils/shc/patches/patch-aa b/sysutils/shc/patches/patch-aa
new file mode 100644
index 00000000000..54c3a092c99
--- /dev/null
+++ b/sysutils/shc/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/09/30 09:41:49 grant Exp $
+
+--- Makefile.orig 2003-06-20 01:56:58.000000000 +1000
++++ Makefile
+@@ -4,24 +4,24 @@
+ INSTALL_PATH = /usr/local
+
+ # For SCO
+-CFLAGS = -b elf -O -D_SVID
++#CFLAGS = -b elf -O -D_SVID
+
+ # For IRIX
+-CFLAGS = -xansi -fullwarn -O3 -g0
++#CFLAGS = -xansi -fullwarn -O3 -g0
+
+ # For Solaris
+-CFLAGS = -fast -xO4 -s -v -Xa
++#CFLAGS = -fast -xO4 -s -v -Xa
+
+ # For HPUX
+-CFLAGS = -Wall -O -Ae
++#CFLAGS = -Wall -O -Ae
+
+ # For OSF1
+-CFLAGS = -w -verbose -fast -std1 -g0
++#CFLAGS = -w -verbose -fast -std1 -g0
+
+ # For GNU C compiler
+-CFLAGS = -Wall -O6 -pedantic
++#CFLAGS = -Wall -O6 -pedantic
+
+-SHELL = /bin/sh
++#SHELL = /bin/sh
+
+ all: shc ask_for_test
+