This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build stackdriver_trace extension from GitHub (#334)
* Add stackdriver_trace build files * Add stackdriver_trace to list of packages to install
- Loading branch information
Showing
8 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
12 changes: 12 additions & 0 deletions
12
deb-package-builder/extensions/stackdriver_trace/debian/control.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
72
deb-package-builder/extensions/stackdriver_trace/debian/copyright
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 1 addition & 0 deletions
1
deb-package-builder/extensions/stackdriver_trace/debian/ext-stackdriver-trace.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=stackdriver_trace.so |
1 change: 1 addition & 0 deletions
1
deb-package-builder/extensions/stackdriver_trace/debian/gcp-php-stackdriver.install.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
deb-package-builder/extensions/stackdriver_trace/debian/rules.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |