Skip to content

Commit 1333d83

Browse files
committed
Updated packaging for PHP 7.1
1 parent 7ce6e2b commit 1333d83

File tree

7 files changed

+84
-0
lines changed

7 files changed

+84
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extension=cassandra.so

ext/packaging/debian-php7.1/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

ext/packaging/debian-php7.1/control

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Source: php7.1-cassandra-driver
2+
Section: php
3+
Priority: optional
4+
Maintainer: Michael Penick <[email protected]>
5+
Build-Depends: debhelper (>= 9~),
6+
dh-php (>= 0.10~),
7+
php7.1-dev,
8+
dh-php,
9+
pkg-config,
10+
cassandra-cpp-driver-dev (>= 2.7.0)
11+
Homepage: http://datastax.github.io/php-driver/
12+
13+
Package: php7.1-cassandra-driver
14+
Architecture: any
15+
Depends: ${misc:Depends},
16+
${php:Depends},
17+
${shlibs:Depends},
18+
cassandra-cpp-driver (>= 2.7.0)
19+
Provides: ${php:Provides}
20+
Description: Modern, feature-rich and highly tunable PHP client library for
21+
Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using exclusively
22+
Cassandra's binary protocol and Cassandra Query Language v3.

ext/packaging/debian-php7.1/copyright

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Format: http://dep.debian.net/deps/dep5
2+
Upstream-Name: php7.1-cassandra-driver
3+
Source: https://github.com/datastax/php-driver
4+
5+
Files: *
6+
Copyright: Copyright 2014-2017 DataStax
7+
License: Apache-2.0
8+
On Debian systems, the complete text of the Apache License Version 2.0
9+
can be found in `/usr/share/common-licenses/Apache-2.0'.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mod debian/cassandra.ini

ext/packaging/debian-php7.1/rules

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/make -f
2+
3+
# Copied from dh-php: /usr/share/dh-php/pkg-pecl.mk
4+
5+
# See debhelper(7) (uncomment to enable)
6+
# output every command that modifies files on the build system.
7+
#DH_VERBOSE = 1
8+
9+
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
10+
DPKG_EXPORT_BUILDFLAGS = 1
11+
include /usr/share/dpkg/default.mk
12+
13+
# see FEATURE AREAS in dpkg-buildflags(1)
14+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
15+
16+
# see ENVIRONMENT in dpkg-buildflags(1)
17+
# package maintainers to append CFLAGS
18+
export DEB_CFLAGS_MAINT_APPEND = -Wall
19+
# package maintainers to append LDFLAGS
20+
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
21+
22+
# Don't ever use RPATH on Debian
23+
export PHP_RPATH=no
24+
25+
export DH_PHP_VERSIONS = $(PHP_VERSION)
26+
27+
PECL_NAME := cassandra-driver
28+
INSTALL_ROOT = $(CURDIR)/debian/php$(PHP_VERSION)-cassandra-driver
29+
30+
%:
31+
dh $@ --with php
32+
33+
override_dh_auto_configure:
34+
phpize$(PHP_VERSION)
35+
dh_auto_configure -- --with-cassandra --with-php-config=/usr/bin/php-config$(PHP_VERSION) $(PECL_CONFIGURE_MAINT_APPEND)
36+
37+
override_dh_auto_build:
38+
dh_auto_build -- -j$(NUMJOBS)
39+
40+
override_dh_auto_install:
41+
dh_auto_install -- INSTALL_ROOT=$(INSTALL_ROOT)
42+
43+
override_dh_gencontrol: ,:=,
44+
override_dh_gencontrol:
45+
dh_gencontrol -- "-Vphp:Provides=$(addprefix php,$(addsuffix -$(PECL_NAME)$(,) ,$(PHP_VERSION)))"
46+
47+
override_dh_php:
48+
dh_php -p php$(PHP_VERSION)-$(PECL_NAME)
49+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)