Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Update extensions #399

Merged
merged 6 commits into from
Dec 13, 2017
Merged
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
5 changes: 4 additions & 1 deletion deb-package-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ RUN echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sou
cmake \
dh-exec \
lsb-release \
fakeroot
fakeroot \
libtool \
automake \
autotools-dev

COPY build.sh /
RUN mkdir -p /workspace
Expand Down
4 changes: 2 additions & 2 deletions deb-package-builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ PHP_VERSIONS=${1}
EXTENSIONS=${2}
if [ -z "$EXTENSIONS" ]; then
# Explicitly declaring because some extenions depend on others (pq depends on raphf)
EXTENSIONS="amqp,apcu,apcu_bc,apm,cassandra,couchbase,ds,eio,ev,event,grpc,hprose,imagick,jsonc,jsond,krb5,libsodium,lua,lzf,mailparse,memcache,memcached,memprof,mongodb,oauth,opencensus,phalcon,protobuf,raphf,pq,rdkafka,redis,seaslog,stackdriver_debugger,stomp,suhosin,swoole,sync,tcpwrap,timezonedb,v8js,vips,yaconf,yaf,yaml"
EXTENSIONS="amqp,apcu,apcu_bc,apm,bitset,cassandra,couchbase,ds,eio,ev,event,grpc,hprose,imagick,igbinary,jsonc,jsond,krb5,libsodium,lua,lzf,mailparse,memcache,memcached,memprof,mongodb,oauth,opencensus,phalcon,protobuf,raphf,pq,rdkafka,redis,seaslog,stackdriver_debugger,stomp,suhosin,swoole,sync,tcpwrap,timezonedb,v8js,vips,yaconf,yaf,yaml"
fi

LIBRARIES=${3}
if [ -z "$LIBRARIES" ]; then
LIBRARIES="libuv,cassandra-cpp-driver,libsodium,libv8,libvips"
LIBRARIES="libuv,cassandra-cpp-driver,libsodium,libv8,libvips,libip2location"
fi


Expand Down
16 changes: 16 additions & 0 deletions deb-package-builder/extensions/bitset/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
set -ex
source ${DEB_BUILDER_DIR}/functions.sh

echo "Building bitset for gcp-php${SHORT_VERSION}"

PNAME="gcp-php${SHORT_VERSION}-bitset"

# Download the source
if [ ${SHORT_VERSION} == "56" ]; then
download_from_pecl bitset 2.0.4
else
download_from_pecl bitset
fi

build_package bitset
1 change: 1 addition & 0 deletions deb-package-builder/extensions/bitset/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
12 changes: 12 additions & 0 deletions deb-package-builder/extensions/bitset/debian/control.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: gcp-php${SHORT_VERSION}-bitset
Section: php
Priority: optional
Maintainer: Jeff Ching <chingor@google.com>
Build-Depends: debhelper (>= 9), gcp-php${SHORT_VERSION}
Standards-Version: 3.9.5
Homepage: https://pecl.php.net/package/bitset

Package: gcp-php${SHORT_VERSION}-bitset
Architecture: any
Depends: libc6 (>= 2.4), gcp-php${SHORT_VERSION}
Description: bitset extension module for gcp-php${SHORT_VERSION}
72 changes: 72 additions & 0 deletions deb-package-builder/extensions/bitset/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bitset
Upstream-Contact: Will Fitch <willfitch@php.net>
Source: https://pecl.php.net/package/bitset

Files: *
Copyright: 1999-2014, The PHP Group
License: PHP-3.0.1
This software is subject to version 3.01 of the PHP
license, as shown below.
.
--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2010 The PHP Group. All rights reserved.
--------------------------------------------------------------------
.
Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
.
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.
.
4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"
.
5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the terms
of that version. You may also choose to use such covered code
under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.
.
6. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP software, freely available from
<http://www.php.net/software/>".
.
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
.
--------------------------------------------------------------------

Files: debian/*
Copyright: 2017 Google, Inc.
License: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=bitset.so
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/ext-bitset.ini opt/php${SHORT_VERSION}/lib/ext.available
14 changes: 14 additions & 0 deletions deb-package-builder/extensions/bitset/debian/rules.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_auto_configure:
phpize && \
./configure

override_dh_auto_test:

override_dh_auto_install:
INSTALL_ROOT=$(CURDIR)/debian/gcp-php${SHORT_VERSION}-bitset \
dh_auto_install
12 changes: 12 additions & 0 deletions deb-package-builder/extensions/igbinary/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -ex
source ${DEB_BUILDER_DIR}/functions.sh

echo "Building igbinary for gcp-php${SHORT_VERSION}"

PNAME="gcp-php${SHORT_VERSION}-igbinary"

# Download the source
download_from_pecl igbinary

build_package igbinary
1 change: 1 addition & 0 deletions deb-package-builder/extensions/igbinary/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
12 changes: 12 additions & 0 deletions deb-package-builder/extensions/igbinary/debian/control.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: gcp-php${SHORT_VERSION}-igbinary
Section: php
Priority: optional
Maintainer: Jeff Ching <chingor@google.com>
Build-Depends: debhelper (>= 9), gcp-php${SHORT_VERSION}
Standards-Version: 3.9.5
Homepage: https://github.com/igbinary/igbinary/

Package: gcp-php${SHORT_VERSION}-igbinary
Architecture: any
Depends: libc6 (>= 2.4), gcp-php${SHORT_VERSION}
Description: igbinary extension module for gcp-php${SHORT_VERSION}
12 changes: 12 additions & 0 deletions deb-package-builder/extensions/igbinary/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: igbinary
Upstream-Contact: Oleg Grenrus <oleg.grenrus@iki.fi>
Source: https://github.com/igbinary/igbinary/

Files: *
Copyright: 2008 Sulake Dynamoid Oy, 2008-2014 Oleg Grenrus, Teddy Grenman, igbinary contributors
License: BSD-3-Clause

Files: debian/*
Copyright: 2017 Google, Inc.
License: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=igbinary.so
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/ext-igbinary.ini opt/php${SHORT_VERSION}/lib/ext.available
14 changes: 14 additions & 0 deletions deb-package-builder/extensions/igbinary/debian/rules.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_auto_configure:
phpize && \
./configure

override_dh_auto_test:

override_dh_auto_install:
INSTALL_ROOT=$(CURDIR)/debian/gcp-php${SHORT_VERSION}-igbinary \
dh_auto_install