diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-15 18:37:30 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-10-15 18:37:30 +0800 |
commit | 8e946d48da897bfe2eb79fbca69778f1dba66832 (patch) | |
tree | d050c6d5e5d9cb627948a3e8c2bc21adb8b7e884 /www/phprecipebook | |
parent | 64e26ac005c8edbc755b14062dec385fbdb3f5f9 (diff) | |
download | freebsd-ports-gnome-8e946d48da897bfe2eb79fbca69778f1dba66832.tar.gz freebsd-ports-gnome-8e946d48da897bfe2eb79fbca69778f1dba66832.tar.zst freebsd-ports-gnome-8e946d48da897bfe2eb79fbca69778f1dba66832.zip |
- Add NO_ARCH
- Switch to options helpers
- Fix owner/group handling
Approved by: portmgr blanket
Diffstat (limited to 'www/phprecipebook')
-rw-r--r-- | www/phprecipebook/Makefile | 19 | ||||
-rw-r--r-- | www/phprecipebook/pkg-plist | 5 |
2 files changed, 9 insertions, 15 deletions
diff --git a/www/phprecipebook/Makefile b/www/phprecipebook/Makefile index e7fccb0fc16d..2487d3d33ddc 100644 --- a/www/phprecipebook/Makefile +++ b/www/phprecipebook/Makefile @@ -14,26 +14,20 @@ LICENSE_FILE= ${WRKSRC}/docs/LICENSE.TXT WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes +NO_ARCH= yes USES= tar:tgz USE_PHP= xml WANT_PHP_WEB= yes SUB_FILES= pkg-message +PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND= MYSQL PGSQL OPTIONS_DEFAULT= MYSQL -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MMYSQL} -USE_PHP+= mysql -USE_MYSQL= yes -.endif - -.if ${PORT_OPTIONS:MPGSQL} -USE_PHP+= pgsql -USES+= pgsql -.endif +MYSQL_USE= PHP=mysql MYSQL=yes +PGSQL_USE= PHP=pgsql +PGSQL_USES= pgsql post-extract: @${CHMOD} -R u+w ${WRKSRC} @@ -42,7 +36,4 @@ do-install: ${MV} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} -post-install: - @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST} - .include <bsd.port.mk> diff --git a/www/phprecipebook/pkg-plist b/www/phprecipebook/pkg-plist index 6bdfad09341e..57682c359203 100644 --- a/www/phprecipebook/pkg-plist +++ b/www/phprecipebook/pkg-plist @@ -1,3 +1,5 @@ +@owner %%WWWOWN%% +@group %%WWWGRP%% @sample %%WWWDIR%%/custom_inc.php.sample %%WWWDIR%%/.buildpath %%WWWDIR%%/.project @@ -644,4 +646,5 @@ @dir %%WWWDIR%%/modules/settings @dir %%WWWDIR%%/modules @dir %%WWWDIR%% -@dir www +@owner +@group |