Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 2014 01:41:15 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362235 - in head/www/php-screw: . files
Message-ID:  <201407190141.s6J1fFxO022051@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sat Jul 19 01:41:15 2014
New Revision: 362235
URL: http://svnweb.freebsd.org/changeset/ports/362235
QAT: https://qat.redports.org/buildarchive/r362235/

Log:
  Stagify.

Added:
  head/www/php-screw/files/pkg-message.in
     - copied unchanged from r362234, head/www/php-screw/pkg-message
Deleted:
  head/www/php-screw/pkg-message
Modified:
  head/www/php-screw/Makefile
  head/www/php-screw/pkg-plist

Modified: head/www/php-screw/Makefile
==============================================================================
--- head/www/php-screw/Makefile	Fri Jul 18 22:47:39 2014	(r362234)
+++ head/www/php-screw/Makefile	Sat Jul 19 01:41:15 2014	(r362235)
@@ -11,17 +11,16 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	ports@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
+PLIST_SUB=	PHP_EXTDIR="${PHP_EXT_DIR}"
+SUB_FILES=	pkg-message
 
-CONFIGURE_ARGS+=--enable-php_screw=shared
+CONFIGURE_ARGS+=	--enable-php_screw=shared
 
-NO_STAGE=	yes
 pre-everything::
 	@${ECHO} ""
 	@${ECHO} "To achieve real security, define your own encryption"
@@ -40,16 +39,11 @@ do-build:
 	@(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}
+	@${MKDIR} ${STAGEDIR}${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}
+		${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
+	@${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${STAGEDIR}${PREFIX}/bin
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/php_screw.so
 
 .include <bsd.port.mk>

Copied: head/www/php-screw/files/pkg-message.in (from r362234, head/www/php-screw/pkg-message)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/php-screw/files/pkg-message.in	Sat Jul 19 01:41:15 2014	(r362235, copy of r362234, head/www/php-screw/pkg-message)
@@ -0,0 +1,9 @@
+*****************************************************************************
+
+You have installed the php-screw package.
+
+Edit %%LOCALBASE%%/etc/php.ini and add:
+
+extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/php_screw.so"
+
+*****************************************************************************

Modified: head/www/php-screw/pkg-plist
==============================================================================
--- head/www/php-screw/pkg-plist	Fri Jul 18 22:47:39 2014	(r362234)
+++ head/www/php-screw/pkg-plist	Sat Jul 19 01:41:15 2014	(r362235)
@@ -1,3 +1,2 @@
 bin/screw
 lib/php/%%PHP_EXT_DIR%%/php_screw.so
-@dirrmtry lib/php/%%PHP_EXT_DIR%%



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