Index: ftp/php72-fastdfs/Makefile =================================================================== --- /dev/null +++ ftp/php72-fastdfs/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= fastdfs +DISTVERSION= 5.0.11 +CATEGORIES= ftp +PKGNAMEPREFIX= php72- + +MAINTAINER= daniel@blodan.se +COMMENT= PHP 7.2 module for accessing a FastDFS cluster + +LICENSE= GPLv3+ + +LIB_DEPENDS= libfastcommon.so:devel/libfastcommon \ + libfdfsclient.so:ftp/fastdfs + +USE_GITHUB= yes +GH_ACCOUNT= happyfish100 +GH_PROJECT= fastdfs +GH_TAGNAME= 1e50b4f + +USES= php:ext +IGNORE_WITH_PHP= 56 70 71 +PHP_VER= 72 + +WRKSRC_SUBDIR= php_client + +PHP_MODNAME= fastdfs_client + +.include Index: ftp/php72-fastdfs/distinfo =================================================================== --- /dev/null +++ ftp/php72-fastdfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1502819531 +SHA256 (happyfish100-fastdfs-5.0.11-1e50b4f_GH0.tar.gz) = 42ef67951c55fb416282cd20389dde5709016913debbb87465b9b744fa3dacf9 +SIZE (happyfish100-fastdfs-5.0.11-1e50b4f_GH0.tar.gz) = 336996 Index: ftp/php72-fastdfs/files/patch-config.m4 =================================================================== --- /dev/null +++ ftp/php72-fastdfs/files/patch-config.m4 @@ -0,0 +1,11 @@ +--- config.m4.orig 2016-08-08 07:17:50 UTC ++++ config.m4 +@@ -7,7 +7,7 @@ if test "$PHP_FASTDFS_CLIENT" != "no"; t + PHP_SUBST(FASTDFS_CLIENT_SHARED_LIBADD) + + if test -z "$ROOT"; then +- ROOT=/usr ++ ROOT=/usr/local + fi + + PHP_ADD_INCLUDE($ROOT/include/fastcommon) Index: ftp/php72-fastdfs/pkg-descr =================================================================== --- /dev/null +++ ftp/php72-fastdfs/pkg-descr @@ -0,0 +1,3 @@ +PHP module for accessing a FastDFS cluster + +WWW: https://github.com/happyfish100/fastdfs Index: ftp/php72-fastdfs/pkg-message =================================================================== --- /dev/null +++ ftp/php72-fastdfs/pkg-message @@ -0,0 +1,15 @@ +Before you can start using this module; +- Make sure you have configured client.conf to point to your FastDFS cluster + and that you see the cluster with fdfs_monitor +- Add this to your php.ini file +================================================================== +fastdfs_client.base_path = /var/tmp +fastdfs_client.connect_timeout = 2 +fastdfs_client.network_timeout = 60 +fastdfs_client.log_level = info +fastdfs_client.log_filename = +fastdfs_client.http.anti_steal_secret_key = +fastdfs_client.tracker_group_count = 1 +fastdfs_client.tracker_group0 = /usr/local/etc/fdfs/client.conf +fastdfs_client.use_connection_pool = false +fastdfs_client.connection_pool_max_idle_time = 3600