diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2002-05-31 14:15:51 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2002-05-31 14:15:51 +0000 |
commit | 72fe939d5311e5a48b2843dfa52bc22497804c1f (patch) | |
tree | 9c3c585cd1ca1a60638d64b3024bc7cb48e8e538 /www/php-screw | |
parent | add tuxpuck 0.7.116 (diff) |
Add php-screw 1.1, a PHP script encryption tool.
PR: 38412
Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Notes
Notes:
svn path=/head/; revision=60383
Diffstat (limited to 'www/php-screw')
-rw-r--r-- | www/php-screw/Makefile | 73 | ||||
-rw-r--r-- | www/php-screw/distinfo | 1 | ||||
-rw-r--r-- | www/php-screw/files/patch-extension::Makefile | 19 | ||||
-rw-r--r-- | www/php-screw/pkg-comment | 1 | ||||
-rw-r--r-- | www/php-screw/pkg-descr | 8 | ||||
-rw-r--r-- | www/php-screw/pkg-message | 10 | ||||
-rw-r--r-- | www/php-screw/pkg-plist | 3 |
7 files changed, 115 insertions, 0 deletions
diff --git a/www/php-screw/Makefile b/www/php-screw/Makefile new file mode 100644 index 000000000000..87f4d6573e39 --- /dev/null +++ b/www/php-screw/Makefile @@ -0,0 +1,73 @@ +# New ports collection makefile for: php-screw +# Date created: Wed May 22 12:21:01 CET 2002 +# Whom: Alex Dupre <sysadmin@alexdupre.com> +# +# $FreeBSD$ +# + +PORTNAME= php-screw +PORTVERSION= 1.1 +CATEGORIES= www security +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= php_screw-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= sysadmin@alexdupre.com + +BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ + autoconf:${PORTSDIR}/devel/autoconf \ + phpize:${PORTSDIR}/www/mod_php4 +RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \ + ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 + +PKGMESSAGE= ${WRKDIR}/pkg-message + +CRYPTKEY?= abcdefg +PATTERN?= PAT1 + +USE_LIBTOOL= yes + +CONFIGURE_ARGS+=--enable-php_screw=shared \ + --with-php-config=${PREFIX}/bin/php-config + +pre-everything: + @${ECHO} "" + @${ECHO} "To achieve real security, define your own encryption" + @${ECHO} "seed key (CRYPTKEY); longer is better." + @${ECHO} "Optionally customize the file pattern (PATTERN)." + @${ECHO} "" + @${ECHO} "make CRYPTKEY=MyLongKey PATTERN=MYPAT" + @${ECHO} "" + +post-extract: + @${ECHO_MSG} "===> PHPizing for ${PORTNAME}-${PORTVERSION}" + @(cd ${WRKSRC}; ${LOCALBASE}/bin/phpize) + +post-patch: + @${ECHO} "#define PM9SCREW_MYCRYPTKEY_1 \"${CRYPTKEY}\"" > \ + ${WRKSRC}/extension/my_screw.h + @${ECHO} "#define PM9SCREW_MYPATTERN_1 \"${PATTERN}\"" >> \ + ${WRKSRC}/extension/my_screw.h + +do-build: + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) + @(cd ${BUILD_WRKSRC}/extension; ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) + +post-build: + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \ + ${.CURDIR}/pkg-message > ${PKGMESSAGE} +do-install: + @${MKDIR} ${PREFIX}/lib/php/extensions + @${INSTALL_DATA} ${WRKSRC}/modules/php_screw.so \ + ${PREFIX}/lib/php/extensions + @${INSTALL_DATA} ${WRKSRC}/extension/php_screw_ext.so \ + ${PREFIX}/lib/php/extensions + @${INSTALL_PROGRAM} ${WRKSRC}/extension/screw ${PREFIX}/bin + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/php-screw/distinfo b/www/php-screw/distinfo new file mode 100644 index 000000000000..0393168270f4 --- /dev/null +++ b/www/php-screw/distinfo @@ -0,0 +1 @@ +MD5 (php_screw-1.1.tgz) = 60ac37dead8278c15db84d3054d19f4d diff --git a/www/php-screw/files/patch-extension::Makefile b/www/php-screw/files/patch-extension::Makefile new file mode 100644 index 000000000000..7481ce45c53a --- /dev/null +++ b/www/php-screw/files/patch-extension::Makefile @@ -0,0 +1,19 @@ +$FreeBSD$ + +--- extension/Makefile.orig Wed May 22 12:36:27 2002 ++++ extension/Makefile Wed May 22 12:36:51 2002 +@@ -1,11 +1,11 @@ + all: php_screw_ext.so screw + + php_screw_ext.so: php_screw_ext.c zencode.c +- gcc -fPIC -c php_screw_ext.c zencode.c +- gcc -shared -Wl -o php_screw_ext.so php_screw_ext.o zencode.o -lz ++ ${CC} -fPIC -c php_screw_ext.c zencode.c ++ ${CC} -shared -Wl -o php_screw_ext.so php_screw_ext.o zencode.o -lz + + screw: screw.c zencode.c +- gcc -o screw screw.c zencode.c -lz ++ ${CC} -o screw screw.c zencode.c -lz + + clean: + /bin/rm *.o *.so screw diff --git a/www/php-screw/pkg-comment b/www/php-screw/pkg-comment new file mode 100644 index 000000000000..6548c79db25d --- /dev/null +++ b/www/php-screw/pkg-comment @@ -0,0 +1 @@ +A PHP script encryption tool diff --git a/www/php-screw/pkg-descr b/www/php-screw/pkg-descr new file mode 100644 index 000000000000..18175ee9e0e0 --- /dev/null +++ b/www/php-screw/pkg-descr @@ -0,0 +1,8 @@ +PHP Screw is a PHP script encryption tool. When you are developing a +commercial package using PHP, the script can be distributed as encrypted +up until just before execution, preserving your intellectual property. + +WWW: http://sourceforge.net/projects/php-screw/ + +- Alex Dupre +sysadmin@alexdupre.com diff --git a/www/php-screw/pkg-message b/www/php-screw/pkg-message new file mode 100644 index 000000000000..eea24c5797e1 --- /dev/null +++ b/www/php-screw/pkg-message @@ -0,0 +1,10 @@ +***************************************************************************** + +You have installed the php-screw package. + +Edit %%LOCALBASE%%/etc/php.ini and add: + +zend_extension="%%PREFIX%%/lib/php/extensions/php_screw.so" +zend_extension="%%PREFIX%%/lib/php/extensions/php_screw_ext.so" + +***************************************************************************** diff --git a/www/php-screw/pkg-plist b/www/php-screw/pkg-plist new file mode 100644 index 000000000000..ce8cf072aebf --- /dev/null +++ b/www/php-screw/pkg-plist @@ -0,0 +1,3 @@ +bin/screw +lib/php/extensions/php_screw.so +lib/php/extensions/php_screw_ext.so |