-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separated DEB packaging for PHP versions
- Loading branch information
Showing
17 changed files
with
156 additions
and
109 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
File renamed without changes.
File renamed without changes.
13 changes: 6 additions & 7 deletions
13
ext/packaging/debian/control → ext/packaging/debian-php5.6/control
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
Source: php-cassandra-driver | ||
Source: php5.6-cassandra-driver | ||
Section: php | ||
Priority: optional | ||
Maintainer: Michael Penick <[email protected]> | ||
Build-Depends: debhelper (>= 9~), | ||
dh-php (>= 0.10~), | ||
php5.6-dev, | ||
php7.0-dev, | ||
php-all-dev, | ||
pkg-config, | ||
cassandra-cpp-driver-dev (>= 2.6.0) | ||
cassandra-cpp-driver-dev (>= 2.7.0) | ||
Homepage: http://datastax.github.io/php-driver/ | ||
|
||
Package: php-cassandra-driver | ||
Package: php5.6-cassandra-driver | ||
Architecture: any | ||
Depends: ${misc:Depends}, | ||
${php:Depends}, | ||
${shlibs:Depends}, | ||
cassandra-cpp-driver (>= 2.6.0) | ||
cassandra-cpp-driver (>= 2.7.0) | ||
Provides: ${php:Provides} | ||
Description: A modern, feature-rich and highly tunable PHP client library for | ||
Description: Modern, feature-rich and highly tunable PHP client library for | ||
Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively | ||
Cassandra's binary protocol and Cassandra Query Language v3. |
2 changes: 1 addition & 1 deletion
2
ext/packaging/debian/copyright → ext/packaging/debian-php5.6/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
File renamed without changes.
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,49 @@ | ||
#!/usr/bin/make -f | ||
|
||
# Copied from dh-php: /usr/share/dh-php/pkg-pecl.mk | ||
|
||
# See debhelper(7) (uncomment to enable) | ||
# output every command that modifies files on the build system. | ||
#DH_VERBOSE = 1 | ||
|
||
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* | ||
DPKG_EXPORT_BUILDFLAGS = 1 | ||
include /usr/share/dpkg/default.mk | ||
|
||
# see FEATURE AREAS in dpkg-buildflags(1) | ||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
|
||
# see ENVIRONMENT in dpkg-buildflags(1) | ||
# package maintainers to append CFLAGS | ||
export DEB_CFLAGS_MAINT_APPEND = -Wall | ||
# package maintainers to append LDFLAGS | ||
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed | ||
|
||
# Don't ever use RPATH on Debian | ||
export PHP_RPATH=no | ||
|
||
export DH_PHP_VERSIONS = $(PHP_VERSION) | ||
|
||
PECL_NAME := cassandra-driver | ||
INSTALL_ROOT = $(CURDIR)/debian/php$(PHP_VERSION)-cassandra-driver | ||
|
||
%: | ||
dh $@ --with php | ||
|
||
override_dh_auto_configure: | ||
phpize$(PHP_VERSION) | ||
dh_auto_configure -- --with-cassandra --with-php-config=/usr/bin/php-config$(PHP_VERSION) $(PECL_CONFIGURE_MAINT_APPEND) | ||
|
||
override_dh_auto_build: | ||
dh_auto_build -- -j$(NUMJOBS) | ||
|
||
override_dh_auto_install: | ||
dh_auto_install -- INSTALL_ROOT=$(INSTALL_ROOT) | ||
|
||
override_dh_gencontrol: ,:=, | ||
override_dh_gencontrol: | ||
dh_gencontrol -- "-Vphp:Provides=$(addprefix php,$(addsuffix -$(PECL_NAME)$(,) ,$(PHP_VERSION)))" | ||
|
||
override_dh_php: | ||
dh_php -p php$(PHP_VERSION)-$(PECL_NAME) | ||
|
File renamed without changes.
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=cassandra.so |
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 |
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,21 @@ | ||
Source: php7.0-cassandra-driver | ||
Section: php | ||
Priority: optional | ||
Maintainer: Michael Penick <[email protected]> | ||
Build-Depends: debhelper (>= 9~), | ||
dh-php (>= 0.10~), | ||
php-all-dev, | ||
pkg-config, | ||
cassandra-cpp-driver-dev (>= 2.7.0) | ||
Homepage: http://datastax.github.io/php-driver/ | ||
|
||
Package: php7.0-cassandra-driver | ||
Architecture: any | ||
Depends: ${misc:Depends}, | ||
${php:Depends}, | ||
${shlibs:Depends}, | ||
cassandra-cpp-driver (>= 2.7.0) | ||
Provides: ${php:Provides} | ||
Description: Modern, feature-rich and highly tunable PHP client library for | ||
Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively | ||
Cassandra's binary protocol and Cassandra Query Language v3. |
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 @@ | ||
Format: http://dep.debian.net/deps/dep5 | ||
Upstream-Name: php7.0-cassandra-driver | ||
Source: https://github.com/datastax/php-driver | ||
|
||
Files: * | ||
Copyright: Copyright 2014-2017 DataStax | ||
License: Apache-2.0 | ||
On Debian systems, the complete text of the Apache License Version 2.0 | ||
can be found in `/usr/share/common-licenses/Apache-2.0'. |
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 @@ | ||
mod debian/cassandra.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,49 @@ | ||
#!/usr/bin/make -f | ||
|
||
# Copied from dh-php: /usr/share/dh-php/pkg-pecl.mk | ||
|
||
# See debhelper(7) (uncomment to enable) | ||
# output every command that modifies files on the build system. | ||
#DH_VERBOSE = 1 | ||
|
||
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* | ||
DPKG_EXPORT_BUILDFLAGS = 1 | ||
include /usr/share/dpkg/default.mk | ||
|
||
# see FEATURE AREAS in dpkg-buildflags(1) | ||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
|
||
# see ENVIRONMENT in dpkg-buildflags(1) | ||
# package maintainers to append CFLAGS | ||
export DEB_CFLAGS_MAINT_APPEND = -Wall | ||
# package maintainers to append LDFLAGS | ||
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed | ||
|
||
# Don't ever use RPATH on Debian | ||
export PHP_RPATH=no | ||
|
||
export DH_PHP_VERSIONS = $(PHP_VERSION) | ||
|
||
PECL_NAME := cassandra-driver | ||
INSTALL_ROOT = $(CURDIR)/debian/php$(PHP_VERSION)-cassandra-driver | ||
|
||
%: | ||
dh $@ --with php | ||
|
||
override_dh_auto_configure: | ||
phpize$(PHP_VERSION) | ||
dh_auto_configure -- --with-cassandra --with-php-config=/usr/bin/php-config$(PHP_VERSION) $(PECL_CONFIGURE_MAINT_APPEND) | ||
|
||
override_dh_auto_build: | ||
dh_auto_build -- -j$(NUMJOBS) | ||
|
||
override_dh_auto_install: | ||
dh_auto_install -- INSTALL_ROOT=$(INSTALL_ROOT) | ||
|
||
override_dh_gencontrol: ,:=, | ||
override_dh_gencontrol: | ||
dh_gencontrol -- "-Vphp:Provides=$(addprefix php,$(addsuffix -$(PECL_NAME)$(,) ,$(PHP_VERSION)))" | ||
|
||
override_dh_php: | ||
dh_php -p php$(PHP_VERSION)-$(PECL_NAME) | ||
|
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 @@ | ||
3.0 (quilt) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.