summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2016-10-27 05:49:09 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2016-10-27 05:49:09 +0000
commit0602db1835f35f9e8c51b13bcbca9254f8974c44 (patch)
treed720e37f939e7ec51f3191db3bea0a027966b860 /devel
parentdevel/py-raven: update 5.13.0 -> 5.31.0 (diff)
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 <daniel@blodan.se>
Notes
Notes: svn path=/head/; revision=424743
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/libfastcommon/Makefile26
-rw-r--r--devel/libfastcommon/distinfo3
-rw-r--r--devel/libfastcommon/files/patch-make.sh62
-rw-r--r--devel/libfastcommon/files/patch-src_Makefile.in28
-rw-r--r--devel/libfastcommon/pkg-descr3
-rw-r--r--devel/libfastcommon/pkg-plist34
7 files changed, 157 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 1e577831edaf..44f32f393dec 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1239,6 +1239,7 @@
SUBDIR += libewf
SUBDIR += libexecinfo
SUBDIR += libexplain
+ SUBDIR += libfastcommon
SUBDIR += libfastjson
SUBDIR += libffi
SUBDIR += libfirm
diff --git a/devel/libfastcommon/Makefile b/devel/libfastcommon/Makefile
new file mode 100644
index 000000000000..f812d765c308
--- /dev/null
+++ b/devel/libfastcommon/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= libfastcommon
+PORTVERSION= 1.0.30
+CATEGORIES= devel
+
+MAINTAINER= daniel@blodan.se
+COMMENT= C common functions library used mainly by FastDFS and FastDHT
+
+LICENSE= GPLv3
+
+USE_GITHUB= yes
+GH_ACCOUNT= happyfish100
+GH_TAGNAME= b80de986b2a269cd15d56e4978c6df844a9c2e59
+
+USE_LDCONFIG= yes
+
+MAKE_ENV += DESTDIR=${STAGEDIR}
+
+do-build:
+ cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} make.sh
+
+do-install:
+ cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} make.sh install
+
+.include <bsd.port.mk>
diff --git a/devel/libfastcommon/distinfo b/devel/libfastcommon/distinfo
new file mode 100644
index 000000000000..4ba685735533
--- /dev/null
+++ b/devel/libfastcommon/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1477294559
+SHA256 (happyfish100-libfastcommon-1.0.30-b80de986b2a269cd15d56e4978c6df844a9c2e59_GH0.tar.gz) = 9be2ee4a33fe8a359f9ddf9afd561afc9a43b1fa3e520c8104a0ba3294e129f3
+SIZE (happyfish100-libfastcommon-1.0.30-b80de986b2a269cd15d56e4978c6df844a9c2e59_GH0.tar.gz) = 121845
diff --git a/devel/libfastcommon/files/patch-make.sh b/devel/libfastcommon/files/patch-make.sh
new file mode 100644
index 000000000000..9a2df0d67f56
--- /dev/null
+++ b/devel/libfastcommon/files/patch-make.sh
@@ -0,0 +1,62 @@
+--- make.sh.orig 2016-09-08 07:44:31 UTC
++++ make.sh
+@@ -1,55 +1,13 @@
+-tmp_src_filename=fast_check_bits.c
+-cat <<EOF > $tmp_src_filename
+-#include <stdio.h>
+-#include <unistd.h>
+-#include <fcntl.h>
+-int main()
+-{
+- printf("%d\n", (int)sizeof(void*));
+- printf("%d\n", (int)sizeof(off_t));
+- return 0;
+-}
+-EOF
+-
+-gcc -D_FILE_OFFSET_BITS=64 -o a.out $tmp_src_filename
+-output=`./a.out`
+-
+-if [ -f /bin/expr ]; then
+- EXPR=/bin/expr
+-else
+- EXPR=/usr/bin/expr
+-fi
+-
+-count=0
+-int_bytes=4
+-off_bytes=8
+-LIB_VERSION=lib64
+-
+-for col in $output; do
+- if [ $count -eq 0 ]; then
+- int_bytes=$col
+- else
+- off_bytes=$col
+- fi
+-
+- count=`$EXPR $count + 1`
+-done
+-
+-/bin/rm -f a.out $tmp_src_filename
+-if [ "$int_bytes" -eq 8 ]; then
++if [ "$(/usr/bin/uname)" = "amd64" ]; then
+ OS_BITS=64
+- LIB_VERSION=lib64
+-else
+- OS_BITS=32
+- LIB_VERSION=lib
+-fi
+-
+-if [ "$off_bytes" -eq 8 ]; then
+ OFF_BITS=64
+ else
++ OS_BITS=32
+ OFF_BITS=32
+ fi
+
++LIB_VERSION=lib
++
+ DEBUG_FLAG=0
+
+ CFLAGS='-Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE'
diff --git a/devel/libfastcommon/files/patch-src_Makefile.in b/devel/libfastcommon/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..a7ea033d0038
--- /dev/null
+++ b/devel/libfastcommon/files/patch-src_Makefile.in
@@ -0,0 +1,28 @@
+--- src/Makefile.in.orig 2016-09-08 07:44:31 UTC
++++ src/Makefile.in
+@@ -41,7 +41,7 @@ ALL_LIBS = $(SHARED_LIBS) $(STATIC_LIBS)
+
+ all: $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS)
+ libfastcommon.so:
+- $(COMPILE) -o $@ $< -shared $(FAST_SHARED_OBJS) $(LIB_PATH)
++ $(COMPILE) -o $@ $< -shared -Wl,-soname,libfastcommon.so $(FAST_SHARED_OBJS) $(LIB_PATH)
+ libfastcommon.a: $(FAST_STATIC_OBJS)
+ ar rcs $@ $(FAST_STATIC_OBJS)
+ .o:
+@@ -53,12 +53,10 @@ libfastcommon.a: $(FAST_STATIC_OBJS)
+ .c.lo:
+ $(COMPILE) -c -fPIC -o $@ $< $(INC_PATH)
+ install:
+- mkdir -p $(DESTDIR)/usr/$(LIB_VERSION)
+- mkdir -p $(DESTDIR)/usr/lib
+- install -m 755 $(SHARED_LIBS) $(DESTDIR)/usr/$(LIB_VERSION)
+- install -m 755 $(SHARED_LIBS) $(DESTDIR)/usr/lib
+- mkdir -p $(DESTDIR)/usr/include/fastcommon
+- install -m 644 $(HEADER_FILES) $(DESTDIR)/usr/include/fastcommon
++ mkdir -p $(DESTDIR)$(PREFIX)/$(LIB_VERSION)
++ install -m 755 $(SHARED_LIBS) $(DESTDIR)$(PREFIX)/$(LIB_VERSION)
++ mkdir -p $(DESTDIR)$(PREFIX)/include/fastcommon
++ install -m 644 $(HEADER_FILES) $(DESTDIR)$(PREFIX)/include/fastcommon
+ clean:
+ rm -f $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS)
+
diff --git a/devel/libfastcommon/pkg-descr b/devel/libfastcommon/pkg-descr
new file mode 100644
index 000000000000..4881781702fa
--- /dev/null
+++ b/devel/libfastcommon/pkg-descr
@@ -0,0 +1,3 @@
+c common functions library for FastDFS and FastDHT
+
+WWW: https://github.com/happyfish100/libfastcommon
diff --git a/devel/libfastcommon/pkg-plist b/devel/libfastcommon/pkg-plist
new file mode 100644
index 000000000000..918eccc0f70f
--- /dev/null
+++ b/devel/libfastcommon/pkg-plist
@@ -0,0 +1,34 @@
+include/fastcommon/_os_define.h
+include/fastcommon/avl_tree.h
+include/fastcommon/base64.h
+include/fastcommon/chain.h
+include/fastcommon/common_define.h
+include/fastcommon/connection_pool.h
+include/fastcommon/fast_allocator.h
+include/fastcommon/fast_blocked_queue.h
+include/fastcommon/fast_buffer.h
+include/fastcommon/fast_mblock.h
+include/fastcommon/fast_mpool.h
+include/fastcommon/fast_task_queue.h
+include/fastcommon/fast_timer.h
+include/fastcommon/flat_skiplist.h
+include/fastcommon/hash.h
+include/fastcommon/http_func.h
+include/fastcommon/id_generator.h
+include/fastcommon/ini_file_reader.h
+include/fastcommon/ioevent.h
+include/fastcommon/ioevent_loop.h
+include/fastcommon/local_ip_func.h
+include/fastcommon/logger.h
+include/fastcommon/md5.h
+include/fastcommon/multi_skiplist.h
+include/fastcommon/php7_ext_wrapper.h
+include/fastcommon/process_ctrl.h
+include/fastcommon/pthread_func.h
+include/fastcommon/sched_thread.h
+include/fastcommon/shared_func.h
+include/fastcommon/skiplist.h
+include/fastcommon/skiplist_common.h
+include/fastcommon/sockopt.h
+include/fastcommon/system_info.h
+lib/libfastcommon.so