2002-05-31 16:15:51 +02:00
|
|
|
# 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
|
2004-01-14 20:04:28 +01:00
|
|
|
PORTVERSION= 1.3
|
2002-05-31 16:15:51 +02:00
|
|
|
CATEGORIES= www security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= php_screw-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-01-18 11:50:15 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= A PHP script encryption tool
|
2002-05-31 16:15:51 +02:00
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2002-11-16 05:55:56 +01:00
|
|
|
CRYPTKEY?= 11152, 368, 192, 1281, 62
|
2002-05-31 16:15:51 +02:00
|
|
|
|
2004-02-09 12:43:38 +01:00
|
|
|
USE_PHP= yes
|
2003-06-06 21:04:58 +02:00
|
|
|
USE_PHPIZE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-php_screw=shared
|
2002-05-31 16:15:51 +02:00
|
|
|
|
2003-02-28 23:53:02 +01:00
|
|
|
pre-everything::
|
2002-05-31 16:15:51 +02:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "To achieve real security, define your own encryption"
|
|
|
|
@${ECHO} "seed key (CRYPTKEY); longer is better."
|
|
|
|
@${ECHO} ""
|
2002-11-16 05:55:56 +01:00
|
|
|
@${ECHO} "make CRYPTKEY=\"234, 84, 39664, 771, 9853\""
|
2002-05-31 16:15:51 +02:00
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
post-patch:
|
2002-11-16 05:55:56 +01:00
|
|
|
@${ECHO} "short pm9screw_mycryptkey[] = { ${CRYPTKEY} };" > \
|
|
|
|
${WRKSRC}/my_screw.h
|
2002-05-31 16:15:51 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} \
|
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
|
2002-11-16 05:55:56 +01:00
|
|
|
@(cd ${BUILD_WRKSRC}/tools; ${SETENV} ${MAKE_ENV} ${MAKE} \
|
2002-05-31 16:15:51 +02:00
|
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
|
|
|
|
|
|
|
|
post-build:
|
2003-06-06 21:04:58 +02:00
|
|
|
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
|
2002-05-31 16:15:51 +02:00
|
|
|
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
do-install:
|
2003-06-06 21:04:58 +02:00
|
|
|
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
|
2002-05-31 16:15:51 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/modules/php_screw.so \
|
2003-06-06 21:04:58 +02:00
|
|
|
${PREFIX}/lib/php/${PHP_EXT_DIR}
|
2002-11-16 05:55:56 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${PREFIX}/bin
|
2002-05-31 16:15:51 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2004-02-09 12:43:38 +01:00
|
|
|
.include <bsd.port.mk>
|