aboutsummaryrefslogtreecommitdiff
path: root/www/php-screw/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-16 04:55:56 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-16 04:55:56 +0000
commit62f52bc5fee0fc1cc1c2c0e8abe70891c8631a3d (patch)
treee8c500f1efc550f376911611cc0ea3e6858fc70a /www/php-screw/Makefile
parent188591bbe5307b0691d7f19ed5f32d8193ec0565 (diff)
downloadports-62f52bc5fee0fc1cc1c2c0e8abe70891c8631a3d.tar.gz
ports-62f52bc5fee0fc1cc1c2c0e8abe70891c8631a3d.zip
Notes
Diffstat (limited to 'www/php-screw/Makefile')
-rw-r--r--www/php-screw/Makefile20
1 files changed, 7 insertions, 13 deletions
diff --git a/www/php-screw/Makefile b/www/php-screw/Makefile
index 87f4d6573e39..64481ebb74af 100644
--- a/www/php-screw/Makefile
+++ b/www/php-screw/Makefile
@@ -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}
@@ -23,8 +23,7 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \
PKGMESSAGE= ${WRKDIR}/pkg-message
-CRYPTKEY?= abcdefg
-PATTERN?= PAT1
+CRYPTKEY?= 11152, 368, 192, 1281, 62
USE_LIBTOOL= yes
@@ -35,9 +34,8 @@ 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} "make CRYPTKEY=\"234, 84, 39664, 771, 9853\""
@${ECHO} ""
post-extract:
@@ -45,15 +43,13 @@ post-extract:
@(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 +59,7 @@ 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
+ @${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${PREFIX}/bin
post-install:
@${CAT} ${PKGMESSAGE}