Skip to content

FreeBSD: build fix #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions FreeBSD/databases/php5-tarantool/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Created by: Gvozdikov Veniamin <[email protected]>
# $FreeBSD$

PORTNAME= tarantool
PORTVERSION= ${TR_VER}
CATEGORIES= databases
MASTER_SITES= GH GHC
PKGNAMEPREFIX= php5-

MAINTAINER= [email protected]
COMMENT= PECL PHP driver for Tarantool/Box

USE_PHP= yes
USE_GITHUB= yes
USE_PHPEXT= yes
USE_PHPIZE= yes
DEFAULT_PHP_VER=5

PHP_MODNAME= ${PORTNAME}
GH_PROJECT= ${PORTNAME}-php
GH_ACCOUNT= zloidemon
GH_COMMIT= 427bcbb
GH_TAGNAME= master
TR_VER= 20130513

CONFIGURE_ARGS+= --with-tarantool

.include <bsd.port.mk>
2 changes: 2 additions & 0 deletions FreeBSD/databases/php5-tarantool/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (tarantool-20130513.tar.gz) = abb128d47512348aa7b7840986a65f776230d77f00f78fee06b7d25041c727e6
SIZE (tarantool-20130513.tar.gz) = 20854
3 changes: 3 additions & 0 deletions FreeBSD/databases/php5-tarantool/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PECL PHP driver for Tarantool/Box

WWW: https://github.com/mailru/tarantool-php
4 changes: 4 additions & 0 deletions FreeBSD/databases/php5-tarantool/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include/php/ext/php_config.h
@dirrmtry include/php/ext
@dirrmtry include/php
@dirrmtry lib/php
3 changes: 3 additions & 0 deletions src/tarantool.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <stdint.h>
#include <stdbool.h>
#include <netinet/in.h>
#if (__FreeBSD__version < 901000)
#include <sys/types.h>
#endif
#include <netinet/tcp.h>
#include <netdb.h>
#include <inttypes.h>
Expand Down