From 0602db1835f35f9e8c51b13bcbca9254f8974c44 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 27 Oct 2016 05:49:09 +0000 Subject: New ports: devel/libfastcommon, ftp/fastdfs, ftp/php(56|70)-fastdfs FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. WWW: https://github.com/happyfish100/fastdfs PR: 213311 Submitted by: Daniel Ylitalo --- ftp/php56-fastdfs/Makefile | 28 ++++++++++++++++++++++++++++ ftp/php56-fastdfs/distinfo | 3 +++ ftp/php56-fastdfs/files/patch-config.m4 | 11 +++++++++++ ftp/php56-fastdfs/pkg-descr | 3 +++ ftp/php56-fastdfs/pkg-message | 15 +++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 ftp/php56-fastdfs/Makefile create mode 100644 ftp/php56-fastdfs/distinfo create mode 100644 ftp/php56-fastdfs/files/patch-config.m4 create mode 100644 ftp/php56-fastdfs/pkg-descr create mode 100644 ftp/php56-fastdfs/pkg-message (limited to 'ftp/php56-fastdfs') diff --git a/ftp/php56-fastdfs/Makefile b/ftp/php56-fastdfs/Makefile new file mode 100644 index 000000000000..36010f780e58 --- /dev/null +++ b/ftp/php56-fastdfs/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= php56-fastdfs +PORTVERSION= 5.0.8 +CATEGORIES= ftp + +MAINTAINER= daniel@blodan.se +COMMENT= PHP 5.6 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= 55 70 +PHP_DEFAULT= 5.6 + +WRKSRC_SUBDIR= php_client + +PHP_MODNAME= fastdfs_client + +.include diff --git a/ftp/php56-fastdfs/distinfo b/ftp/php56-fastdfs/distinfo new file mode 100644 index 000000000000..52c7d7a25b56 --- /dev/null +++ b/ftp/php56-fastdfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1477046032 +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/php56-fastdfs/files/patch-config.m4 b/ftp/php56-fastdfs/files/patch-config.m4 new file mode 100644 index 000000000000..2017cab49190 --- /dev/null +++ b/ftp/php56-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/php56-fastdfs/pkg-descr b/ftp/php56-fastdfs/pkg-descr new file mode 100644 index 000000000000..d90caa5fc86a --- /dev/null +++ b/ftp/php56-fastdfs/pkg-descr @@ -0,0 +1,3 @@ +PHP module for accessing a FastDFS cluster + +WWW: https://github.com/happyfish100/fastdfs diff --git a/ftp/php56-fastdfs/pkg-message b/ftp/php56-fastdfs/pkg-message new file mode 100644 index 000000000000..993d158f9115 --- /dev/null +++ b/ftp/php56-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 -- cgit v1.2.3