head	1.18;
access;
symbols
	RELEASE_8_3_0:1.17
	RELEASE_9_0_0:1.17
	RELEASE_7_4_0:1.17
	RELEASE_8_2_0:1.17
	RELEASE_6_EOL:1.16
	RELEASE_8_1_0:1.16
	RELEASE_7_3_0:1.16
	RELEASE_8_0_0:1.16
	RELEASE_7_2_0:1.14
	RELEASE_7_1_0:1.14
	RELEASE_6_4_0:1.14
	RELEASE_5_EOL:1.14
	RELEASE_7_0_0:1.14
	RELEASE_6_3_0:1.14
	PRE_XORG_7:1.13
	RELEASE_4_EOL:1.12
	RELEASE_6_2_0:1.12
	RELEASE_6_1_0:1.10
	RELEASE_5_5_0:1.10
	RELEASE_6_0_0:1.10
	RELEASE_5_4_0:1.10
	RELEASE_4_11_0:1.10
	RELEASE_5_3_0:1.10
	RELEASE_4_10_0:1.10
	RELEASE_5_2_1:1.7
	RELEASE_5_2_0:1.7
	RELEASE_4_9_0:1.5
	RELEASE_5_1_0:1.4
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.1;
locks; strict;
comment	@# @;


1.18
date	2012.11.17.06.02.57;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2010.12.04.07.33.59;	author ade;	state Exp;
branches;
next	1.16;

1.16
date	2009.08.22.00.38.19;	author amdmi3;	state Exp;
branches;
next	1.15;

1.15
date	2009.08.02.19.36.03;	author mezz;	state Exp;
branches;
next	1.14;

1.14
date	2007.10.18.12.52.45;	author ale;	state Exp;
branches;
next	1.13;

1.13
date	2007.01.29.23.51.55;	author kris;	state Exp;
branches;
next	1.12;

1.12
date	2006.07.05.02.30.57;	author linimon;	state Exp;
branches;
next	1.11;

1.11
date	2006.05.22.19.43.26;	author ale;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.09.11.43.36;	author ale;	state Exp;
branches;
next	1.9;

1.9
date	2004.01.18.10.50.15;	author ale;	state Exp;
branches;
next	1.8;

1.8
date	2004.01.14.19.04.28;	author ale;	state Exp;
branches;
next	1.7;

1.7
date	2003.11.04.11.54.17;	author edwin;	state Exp;
branches;
next	1.6;

1.6
date	2003.10.16.02.07.40;	author kris;	state Exp;
branches;
next	1.5;

1.5
date	2003.06.06.19.04.58;	author nork;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.28.22.53.01;	author kris;	state Exp;
branches;
next	1.3;

1.3
date	2003.02.21.14.01.29;	author knu;	state Exp;
branches;
next	1.2;

1.2
date	2002.11.16.04.55.56;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.31.14.15.50;	author petef;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Switch exporter over
@
text
@# New ports collection makefile for:	php-screw
# Date created:         Wed May 22 12:21:01 CET 2002
# Whom:                 Alex Dupre <sysadmin@@alexdupre.com>
#
# $FreeBSD: head/www/php-screw/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	php-screw
PORTVERSION=	1.5
CATEGORIES=	www security
MASTER_SITES=	SF/${PORTNAME}/OldFiles
DISTNAME=	php_screw-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ale@@FreeBSD.org
COMMENT=	A PHP script encryption tool

PKGMESSAGE=	${WRKDIR}/pkg-message

CRYPTKEY?=	11152, 368, 192, 1281, 62

USE_AUTOTOOLS=	libtool
USE_PHP=	zlib
USE_PHPIZE=	yes
IGNORE_WITH_PHP=4

CONFIGURE_ARGS+=--enable-php_screw=shared

pre-everything::
	@@${ECHO} ""
	@@${ECHO} "To achieve real security, define your own encryption"
	@@${ECHO} "seed key (CRYPTKEY); longer is better."
	@@${ECHO} ""
	@@${ECHO} "make CRYPTKEY=\"234, 84, 39664, 771, 9853\""
	@@${ECHO} ""

post-patch:
	@@${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}/tools; ${SETENV} ${MAKE_ENV} ${MAKE} \
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})

post-build:
	@@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
		${.CURDIR}/pkg-message > ${PKGMESSAGE}
do-install:
	@@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
	@@${INSTALL_DATA} ${WRKSRC}/modules/php_screw.so \
		${PREFIX}/lib/php/${PHP_EXT_DIR}
	@@${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${PREFIX}/bin

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.17
log
@Sync to new bsd.autotools.mk
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d22 1
a22 1
USE_AUTOTOOLS=	libtool:22
@


1.15
log
@-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
@
text
@d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
@


1.14
log
@Update to 1.5 release. Now it works with PHP5.
@
text
@d23 1
a23 1
USE_AUTOTOOLS=	libtool:15
@


1.13
log
@Use libtool port instead of included version to avoid a.out objformat botch
@
text
@d9 1
a9 1
PORTVERSION=	1.3
d24 1
a24 1
USE_PHP=	yes
d26 1
a26 2
IGNORE_WITH_PHP=5
DEFAULT_PHP_VER=4
@


1.12
log
@Change all bogus uses of BROKEN to IGNORE.  See CHANGES 20060705.

PR:		ports/92445
Hat:		portmgr
@
text
@d23 1
@


1.11
log
@Mark BROKEN with php5.
@
text
@d25 1
a25 1
BROKEN_WITH_PHP=5
@


1.10
log
@Remove lang/php4/bsd.php.mk and switch every ports depending on PHP to
use Mk/bsd.php.mk.

Approved by:	nork (mentor/implicitly)
@
text
@d25 2
@


1.9
log
@Switch to my @@FreeBSD.org email address.

Approved by:	nork (mentor)
@
text
@d23 1
a27 3
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/php4/bsd.php.mk"

d58 1
a58 1
.include <bsd.port.post.mk>
@


1.8
log
@Update to 1.3 release.

Approved by:	nork (mentor/implicitly)
@
text
@d16 1
a16 1
MAINTAINER=	sysadmin@@alexdupre.com
@


1.7
log
@[patch] Fix compiler error in www/php-screw

	php-screw is not C99 compatible: the author use "exit()"
	while C99 forbid.

PR:		56222
Submitted by:	"Kang Liu" <liukang@@bjpu.edu.cn>
Approved by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d9 1
a9 1
PORTVERSION=	1.2.1
d28 1
a28 1
.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
@


1.6
log
@BROKEN on 5.x: does not compile
@
text
@a29 4
.if ${OSVERSION} >= 501000
BROKEN=		"Does not compile"
.endif

@


1.5
log
@Unbreak build with new php 4.3.2,  and  Various fixes.

PR:		ports/52801
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d30 4
@


1.4
log
@Use pre-everything:: instead of pre-everything: to avoid conflict with
targets in bsd.port.mk
@
text
@a18 6
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

d23 3
a25 1
USE_LIBTOOL=	yes
d27 2
a28 2
CONFIGURE_ARGS+=--enable-php_screw=shared \
		--with-php-config=${PREFIX}/bin/php-config
a37 4
post-extract:
	@@${ECHO_MSG} "===>  PHPizing for ${PORTNAME}-${PORTVERSION}"
	@@(cd ${WRKSRC}; ${LOCALBASE}/bin/phpize)

d49 1
a49 1
	@@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \
d52 1
a52 1
	@@${MKDIR} ${PREFIX}/lib/php/extensions
d54 1
a54 1
		${PREFIX}/lib/php/extensions
d60 1
a60 1
.include <bsd.port.mk>
@


1.3
log
@De-pkg-comment.
@
text
@d34 1
a34 1
pre-everything:
@


1.2
log
@Maintainer update to version 1.2.1

PR:		ports/45188
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d17 1
@


1.1
log
@Add php-screw 1.1, a PHP script encryption tool.

PR:		38412
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d9 1
a9 1
PORTVERSION=	1.1
d26 1
a26 2
CRYPTKEY?=	abcdefg
PATTERN?=	PAT1
a36 1
	@@${ECHO} "Optionally customize the file pattern (PATTERN)."
d38 1
a38 1
	@@${ECHO} "make CRYPTKEY=MyLongKey PATTERN=MYPAT"
d46 2
a47 4
	@@${ECHO} "#define PM9SCREW_MYCRYPTKEY_1   \"${CRYPTKEY}\"" > \
		${WRKSRC}/extension/my_screw.h
	@@${ECHO} "#define PM9SCREW_MYPATTERN_1   \"${PATTERN}\"" >> \
		${WRKSRC}/extension/my_screw.h
d52 1
a52 1
	@@(cd ${BUILD_WRKSRC}/extension; ${SETENV} ${MAKE_ENV} ${MAKE} \
d62 1
a62 3
	@@${INSTALL_DATA} ${WRKSRC}/extension/php_screw_ext.so \
		${PREFIX}/lib/php/extensions
	@@${INSTALL_PROGRAM} ${WRKSRC}/extension/screw ${PREFIX}/bin
@

