pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/shc Initial import of shc-3.7 into the NetBSD...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b508d671c1ed
branches:  trunk
changeset: 481254:b508d671c1ed
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Sep 30 09:41:49 2004 +0000

description:
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:

 sysutils/shc/DESCR            |   8 ++++++++
 sysutils/shc/Makefile         |  17 +++++++++++++++++
 sysutils/shc/PLIST            |   3 +++
 sysutils/shc/distinfo         |   5 +++++
 sysutils/shc/patches/patch-aa |  36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 69 insertions(+), 0 deletions(-)

diffs (89 lines):

diff -r debee31aaa6f -r b508d671c1ed sysutils/shc/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/shc/DESCR        Thu Sep 30 09:41:49 2004 +0000
@@ -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 -r debee31aaa6f -r b508d671c1ed sysutils/shc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/shc/Makefile     Thu Sep 30 09:41:49 2004 +0000
@@ -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@localhost
+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 -r debee31aaa6f -r b508d671c1ed sysutils/shc/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/shc/PLIST        Thu Sep 30 09:41:49 2004 +0000
@@ -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 -r debee31aaa6f -r b508d671c1ed sysutils/shc/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/shc/distinfo     Thu Sep 30 09:41:49 2004 +0000
@@ -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 -r debee31aaa6f -r b508d671c1ed sysutils/shc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/shc/patches/patch-aa     Thu Sep 30 09:41:49 2004 +0000
@@ -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
+ 



Home | Main Index | Thread Index | Old Index