diff --git a/net/self-service-password/Makefile b/net/self-service-password/Makefile index 0c5adb053a27..d9ba59350c0d 100644 --- a/net/self-service-password/Makefile +++ b/net/self-service-password/Makefile @@ -1,45 +1,51 @@ # Created by: Krzysztof Stryjek PORTNAME= self-service-password DISTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= net www MASTER_SITES= http://ltb-project.org/archives/ PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} DISTNAME= ltb-project-${PORTNAME}-${PORTVERSION} MAINTAINER= ports@bsdserwis.com COMMENT= Set of PHP-scripts to change LDAP password over the web LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENCE +RUN_DEPENDS= ${LOCALBASE}/share/smarty3-${PHP_FLAVOR}/Smarty.class.php:www/smarty3@${PHP_FLAVOR} + USES= php:flavors,web USE_PHP= filter hash ldap mbstring openssl phar session -NO_BUILD= yes NO_ARCH= yes +NO_BUILD= yes -CFGDIR= conf -CFGFILE= config.inc.php +SUB_FILES= pkg-message +SUB_LIST+= PKGNAME=${PKGNAME} PLIST_SUB+= SSP_OWN=${WWWOWN} PLIST_SUB+= SSP_GRP=${WWWGRP} -SUB_LIST+= PKGNAME=${PKGNAME} -SUB_FILES= pkg-message +CFGDIR= conf +CFGFILE= config.inc.php .include .if ${PHP_VER} <= 70 # For older php mcrypt is needed USE_PHP+= mcrypt .endif post-extract: @${FIND} ${WRKSRC}/ -name '*.sig' -delete @${MV} ${WRKSRC}/${CFGDIR}/${CFGFILE} ${WRKSRC}/${CFGDIR}/${CFGFILE}.sample + @${REINPLACE_CMD} \ + -e 's;/usr/share/php/smarty3;${PREFIX}/share/smarty3-${PHP_FLAVOR};' \ + ${WRKSRC}/${CFGDIR}/${CFGFILE}.sample do-install: @cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/ .include diff --git a/net/self-service-password/files/pkg-message.in b/net/self-service-password/files/pkg-message.in index fccbd5814d81..8cdd010ea0ac 100644 --- a/net/self-service-password/files/pkg-message.in +++ b/net/self-service-password/files/pkg-message.in @@ -1,42 +1,42 @@ [ { type: install message: < + Options none AllowOverride none Order Deny,Allow Deny from all Allow from 127.0.0.1 .example.com To make Self Service Password available through your web site, I suggest that you add something like the following to nginx.conf: location /ssp/ { - alias %%WWWDIR%%/; + alias %%WWWDIR%%/htdocs/; index index.php; location ~ \.php$ { fastcgi_pass unix:/var/run/php-fpm-www.socket; fastcgi_param HTTPS on; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include fastcgi_params; } } EOM } ]