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

Commit

Permalink
Build stackdriver_trace extension from GitHub (#334)
Browse files Browse the repository at this point in the history
* Add stackdriver_trace build files

* Add stackdriver_trace to list of packages to install
  • Loading branch information
chingor13 authored Jul 17, 2017
1 parent 4138057 commit d11a5c1
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 2 deletions.
3 changes: 1 addition & 2 deletions deb-package-builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ PHP_VERSIONS=${1}
EXTENSIONS=${2}
if [ -z "$EXTENSIONS" ]; then
# Explicitly declaring because some extenions depend on others (pq depends on raphf)
EXTENSIONS="apcu,apcu_bc,ev,event,grpc,imagick,jsonc,mailparse,memcache,memcached,mongodb,oauth,phalcon,protobuf,raphf,pq,rdkafka,redis,suhosin,libuv,cassandra-cpp-driver,cassandra"
EXTENSIONS="apcu,apcu_bc,ev,event,grpc,imagick,jsonc,mailparse,memcache,memcached,mongodb,oauth,phalcon,protobuf,raphf,pq,rdkafka,redis,suhosin,libuv,cassandra-cpp-driver,cassandra,stackdriver_trace"
fi


cd ${BUILD_DIR}

# update dependencies
Expand Down
16 changes: 16 additions & 0 deletions deb-package-builder/extensions/stackdriver_trace/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -ex

source ${DEB_BUILDER_DIR}/extensions/functions.sh

echo "Building stackdriver trace for gcp-php${SHORT_VERSION}"

PNAME="gcp-php${SHORT_VERSION}-stackdriver-trace"
EXT_VERSION="0.1.0"

download_from_tarball https://github.com/GoogleCloudPlatform/stackdriver-trace-php-extension/archive/master.tar.gz ${EXT_VERSION}

pwd
ls -al
build_package stackdriver_trace
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
12 changes: 12 additions & 0 deletions deb-package-builder/extensions/stackdriver_trace/debian/control.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: gcp-php${SHORT_VERSION}-stackdriver-trace
Section: php
Priority: optional
Maintainer: Jeff Ching <[email protected]>
Build-Depends: debhelper (>= 9), gcp-php${SHORT_VERSION}
Standards-Version: 3.9.5
Homepage: https://github.com/GoogleCloudPlatform/stackdriver-trace-php-extension

Package: gcp-php${SHORT_VERSION}-stackdriver-trace
Architecture: any
Depends: libc6 (>= 2.4), gcp-php${SHORT_VERSION}
Description: stackdriver trace extension module for gcp-php${SHORT_VERSION}
72 changes: 72 additions & 0 deletions deb-package-builder/extensions/stackdriver_trace/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: stackdriver-trace
Upstream-Contact: Jeff Ching <[email protected]>
Source: https://github.com/GoogleCloudPlatform/stackdriver-trace-php-extension

Files: *
Copyright: 2017, Google
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 [email protected].
.
4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from [email protected]. 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: 2016 Google, Inc.
License: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension=stackdriver_trace.so
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/ext-stackdriver-trace.ini opt/php${SHORT_VERSION}/lib/ext.available
14 changes: 14 additions & 0 deletions deb-package-builder/extensions/stackdriver_trace/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}-stackdriver-trace \
dh_auto_install

0 comments on commit d11a5c1

Please sign in to comment.