Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2002 11:52:14 +0100 (CET)
From:      Alex Dupre <sysadmin@alexdupre.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45188: [Maintainer Update] Port: www/php-screw
Message-ID:  <200211101052.gAAAqEN7020677@vaio.alexdupre.com>

next in thread | raw e-mail | index | archive | help

>Number:         45188
>Category:       ports
>Synopsis:       [Maintainer Update] Port: www/php-screw
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 10 03:00:13 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alex Dupre
>Release:        FreeBSD 4.5-ALEXDUPRE i386
>Organization:
>Environment:
System: FreeBSD vaio.alexdupre.com 4.5-ALEXDUPRE FreeBSD 4.5-ALEXDUPRE #0: Fri Apr 12 14:12:57 CEST 2002 alex@vaio.alexdupre.com:/usr/obj/usr/src/sys/VAIO i386


	
>Description:
Upgrade to 1.2.1 release
	
>How-To-Repeat:
	
>Fix:

	

--- php-screw.diff begins here ---
diff -ruN php-screw.orig/Makefile php-screw/Makefile
--- php-screw.orig/Makefile	Sat Nov  9 15:06:44 2002
+++ php-screw/Makefile	Sun Nov 10 11:42:02 2002
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	php-screw
-PORTVERSION=	1.1
+PORTVERSION=	1.2.1
 CATEGORIES=	www security
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,6 +15,8 @@
 
 MAINTAINER=	sysadmin@alexdupre.com
 
+PORTCOMMENT=	A PHP script encryption tool
+
 BUILD_DEPENDS=	aclocal:${PORTSDIR}/devel/automake \
 		autoconf:${PORTSDIR}/devel/autoconf \
 		phpize:${PORTSDIR}/www/mod_php4
@@ -23,8 +25,7 @@
 
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-CRYPTKEY?=	abcdefg
-PATTERN?=	PAT1
+CRYPTKEY?=	11152, 368, 192, 1281, 62
 
 USE_LIBTOOL=	yes
 
@@ -35,9 +36,8 @@
 	@${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} "make CRYPTKEY=\"234, 84, 39664, 771, 9853\""
 	@${ECHO} ""
 
 post-extract:
@@ -45,15 +45,13 @@
 	@(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
+	@${ECHO} "short pm9screw_mycryptkey[] = { ${CRYPTKEY} };" > \
+		${WRKSRC}/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} \
+	@(cd ${BUILD_WRKSRC}/tools; ${SETENV} ${MAKE_ENV} ${MAKE} \
 		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
 
 post-build:
@@ -63,9 +61,7 @@
 	@${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
+	@${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${PREFIX}/bin
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
diff -ruN php-screw.orig/distinfo php-screw/distinfo
--- php-screw.orig/distinfo	Sat Nov  9 15:06:44 2002
+++ php-screw/distinfo	Sat Nov  9 15:07:09 2002
@@ -1 +1 @@
-MD5 (php_screw-1.1.tgz) = 60ac37dead8278c15db84d3054d19f4d
+MD5 (php_screw-1.2.1.tgz) = f53c28e0450bd1435f343c901a14f9fe
diff -ruN php-screw.orig/files/patch-extension::Makefile php-screw/files/patch-extension::Makefile
--- php-screw.orig/files/patch-extension::Makefile	Sat Nov  9 15:06:44 2002
+++ php-screw/files/patch-extension::Makefile	Thu Jan  1 01:00:00 1970
@@ -1,19 +0,0 @@
-$FreeBSD: ports/www/php-screw/files/patch-extension::Makefile,v 1.1 2002/05/31 14:15:51 petef Exp $
-
---- 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 -ruN php-screw.orig/files/patch-tools::Makefile php-screw/files/patch-tools::Makefile
--- php-screw.orig/files/patch-tools::Makefile	Thu Jan  1 01:00:00 1970
+++ php-screw/files/patch-tools::Makefile	Sat Nov  9 15:08:55 2002
@@ -0,0 +1,11 @@
+--- tools/Makefile.orig	Sat Nov  9 15:08:17 2002
++++ tools/Makefile	Sat Nov  9 15:08:33 2002
+@@ -1,7 +1,7 @@
+ all: screw
+ 
+ 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 -ruN php-screw.orig/pkg-comment php-screw/pkg-comment
--- php-screw.orig/pkg-comment	Sat Nov  9 15:06:44 2002
+++ php-screw/pkg-comment	Thu Jan  1 01:00:00 1970
@@ -1 +0,0 @@
-A PHP script encryption tool
diff -ruN php-screw.orig/pkg-message php-screw/pkg-message
--- php-screw.orig/pkg-message	Sat Nov  9 15:06:44 2002
+++ php-screw/pkg-message	Sun Nov 10 11:19:53 2002
@@ -5,6 +5,5 @@
 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 -ruN php-screw.orig/pkg-plist php-screw/pkg-plist
--- php-screw.orig/pkg-plist	Sat Nov  9 15:06:44 2002
+++ php-screw/pkg-plist	Sun Nov 10 11:14:16 2002
@@ -1,3 +1,2 @@
 bin/screw
 lib/php/extensions/php_screw.so
-lib/php/extensions/php_screw_ext.so
--- php-screw.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211101052.gAAAqEN7020677>