From 2e247cfda08d50c7a51fe62ec00678fbf13e467a Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Thu, 26 Jan 2017 14:38:32 +0000 Subject: [PATCH] Add php71-fastdfs 5.0.8 (copied from php70-fastdfs) PR: 216494 Submitted by: Daniel Ylitalo --- ftp/Makefile | 1 + ftp/php71-fastdfs/Makefile | 29 +++++++++++++++++++++++++ ftp/php71-fastdfs/distinfo | 3 +++ ftp/php71-fastdfs/files/patch-config.m4 | 11 ++++++++++ ftp/php71-fastdfs/pkg-descr | 3 +++ ftp/php71-fastdfs/pkg-message | 15 +++++++++++++ 6 files changed, 62 insertions(+) create mode 100644 ftp/php71-fastdfs/Makefile create mode 100644 ftp/php71-fastdfs/distinfo create mode 100644 ftp/php71-fastdfs/files/patch-config.m4 create mode 100644 ftp/php71-fastdfs/pkg-descr create mode 100644 ftp/php71-fastdfs/pkg-message diff --git a/ftp/Makefile b/ftp/Makefile index 01db8b4972a6..8bd4840430a5 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -69,6 +69,7 @@ SUBDIR += php70-fastdfs SUBDIR += php70-ftp SUBDIR += php71-curl + SUBDIR += php71-fastdfs SUBDIR += php71-ftp SUBDIR += phpwebftp SUBDIR += plasma-applet-ftpmonitor diff --git a/ftp/php71-fastdfs/Makefile b/ftp/php71-fastdfs/Makefile new file mode 100644 index 000000000000..071a72d63b04 --- /dev/null +++ b/ftp/php71-fastdfs/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= fastdfs +PORTVERSION= 5.0.8 +CATEGORIES= ftp +PKGNAMEPREFIX= php71- + +MAINTAINER= daniel@blodan.se +COMMENT= PHP 7.1 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= 87659981148a362812912b6d4752d281ac05f0b6 + +USES= php:ext +IGNORE_WITH_PHP= 56 70 +PHP_VER= 71 + +WRKSRC_SUBDIR= php_client + +PHP_MODNAME= fastdfs_client + +.include diff --git a/ftp/php71-fastdfs/distinfo b/ftp/php71-fastdfs/distinfo new file mode 100644 index 000000000000..3ba115879eaa --- /dev/null +++ b/ftp/php71-fastdfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1477046089 +SHA256 (happyfish100-fastdfs-5.0.8-87659981148a362812912b6d4752d281ac05f0b6_GH0.tar.gz) = c901415de55cad67fe31678091ce131ad4973bce19770f1a03b0be38ba02662d +SIZE (happyfish100-fastdfs-5.0.8-87659981148a362812912b6d4752d281ac05f0b6_GH0.tar.gz) = 335406 diff --git a/ftp/php71-fastdfs/files/patch-config.m4 b/ftp/php71-fastdfs/files/patch-config.m4 new file mode 100644 index 000000000000..2017cab49190 --- /dev/null +++ b/ftp/php71-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) diff --git a/ftp/php71-fastdfs/pkg-descr b/ftp/php71-fastdfs/pkg-descr new file mode 100644 index 000000000000..d90caa5fc86a --- /dev/null +++ b/ftp/php71-fastdfs/pkg-descr @@ -0,0 +1,3 @@ +PHP module for accessing a FastDFS cluster + +WWW: https://github.com/happyfish100/fastdfs diff --git a/ftp/php71-fastdfs/pkg-message b/ftp/php71-fastdfs/pkg-message new file mode 100644 index 000000000000..993d158f9115 --- /dev/null +++ b/ftp/php71-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