diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..eb17192f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +php-sqlsrv (5.10.1-1) bullseye; urgency=medium + + * Initial packaging + + -- David Prévot Wed, 06 Dec 2023 14:41:15 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..99598c50 --- /dev/null +++ b/debian/control @@ -0,0 +1,78 @@ +Source: php-sqlsrv +Section: php +Priority: optional +Maintainer: Debian PHP PECL Maintainers +Uploaders: David Prévot +Build-Depends: debhelper-compat (= 13), + dh-php (>= 4~), + php-all-dev, + unixodbc-dev +Standards-Version: 4.5.1 +Vcs-Git: https://salsa.debian.org/php-team/pecl/php-sqlsrv.git +Vcs-Browser: https://salsa.debian.org/php-team/pecl/php-sqlsrv +Homepage: https://pecl.php.net/package/sqlsrv + +Package: php-sqlsrv +Architecture: any +Pre-Depends: php-common (>= 2:69~) +Depends: ${misc:Depends}, ${pecl:Depends}, ${php:Depends}, ${shlibs:Depends} +Suggests: ${pecl:Suggests} +Breaks: ${pecl:Breaks} +Replaces: ${pecl:Replaces} +Provides: ${pecl:Provides}, ${php:Provides} +Recommends: ${misc:Recommends} +Description: Microsoft Drivers for PHP for SQL Server (SQLSRV) + The Microsoft Drivers for PHP for SQL Server are PHP extensions that + allow for the reading and writing of SQL Server data from within PHP + scripts. The SQLSRV extension provides a procedural interface while the + PDO_SQLSRV extension implements PDO for accessing data in all editions + of SQL Server 2012 and later (including Azure SQL DB). These drivers + rely on the Microsoft ODBC Driver for SQL Server to handle the + low-level communication with SQL Server. + . + This package contains only the SQLSRV driver. + . + This is empty package that depends on default PHP version. + +Package: php-sqlsrv-all-dev +Architecture: all +Pre-Depends: php-common (>= 2:69~) +Depends: ${misc:Depends}, ${pecl:Depends}, ${php:Depends}, ${shlibs:Depends} +Suggests: ${pecl:Suggests} +Breaks: ${pecl:Breaks} +Replaces: ${pecl:Replaces} +Provides: ${pecl:Provides}, ${php:Provides} +Recommends: ${misc:Recommends} +Description: Microsoft Drivers for PHP for SQL Server (SQLSRV) + The Microsoft Drivers for PHP for SQL Server are PHP extensions that + allow for the reading and writing of SQL Server data from within PHP + scripts. The SQLSRV extension provides a procedural interface while the + PDO_SQLSRV extension implements PDO for accessing data in all editions + of SQL Server 2012 and later (including Azure SQL DB). These drivers + rely on the Microsoft ODBC Driver for SQL Server to handle the + low-level communication with SQL Server. + . + This package contains only the SQLSRV driver. + . + This is empty package that depends on all PHP versions. + +Package: php7.4-sqlsrv +Architecture: any +Pre-Depends: php-common (>= 2:69~) +Depends: ${misc:Depends}, ${pecl:Depends}, ${php:Depends}, ${shlibs:Depends} +Suggests: ${pecl:Suggests} +Breaks: ${pecl:Breaks} +Replaces: ${pecl:Replaces} +Provides: ${pecl:Provides}, ${php:Provides} +Recommends: ${misc:Recommends} +Description: Microsoft Drivers for PHP for SQL Server (SQLSRV) + The Microsoft Drivers for PHP for SQL Server are PHP extensions that + allow for the reading and writing of SQL Server data from within PHP + scripts. The SQLSRV extension provides a procedural interface while the + PDO_SQLSRV extension implements PDO for accessing data in all editions + of SQL Server 2012 and later (including Azure SQL DB). These drivers + rely on the Microsoft ODBC Driver for SQL Server to handle the + low-level communication with SQL Server. + . + This package contains only the SQLSRV driver. + diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 00000000..adb6bfad --- /dev/null +++ b/debian/control.in @@ -0,0 +1,33 @@ +Source: php-sqlsrv +Section: php +Priority: optional +Maintainer: Debian PHP PECL Maintainers +Uploaders: David Prévot +Build-Depends: debhelper-compat (= 13), + dh-php (>= 4~), + php-all-dev, + unixodbc-dev +Standards-Version: 4.5.1 +Vcs-Git: https://salsa.debian.org/php-team/pecl/php-sqlsrv.git +Vcs-Browser: https://salsa.debian.org/php-team/pecl/php-sqlsrv +Homepage: https://pecl.php.net/package/sqlsrv + +Package: php-sqlsrv +Architecture: any +Pre-Depends: php-common (>= 2:69~) +Depends: ${misc:Depends}, ${pecl:Depends}, ${php:Depends}, ${shlibs:Depends} +Suggests: ${pecl:Suggests} +Breaks: ${pecl:Breaks} +Replaces: ${pecl:Replaces} +Provides: ${pecl:Provides}, ${php:Provides} +Recommends: ${misc:Recommends} +Description: Microsoft Drivers for PHP for SQL Server (SQLSRV) + The Microsoft Drivers for PHP for SQL Server are PHP extensions that + allow for the reading and writing of SQL Server data from within PHP + scripts. The SQLSRV extension provides a procedural interface while the + PDO_SQLSRV extension implements PDO for accessing data in all editions + of SQL Server 2012 and later (including Azure SQL DB). These drivers + rely on the Microsoft ODBC Driver for SQL Server to handle the + low-level communication with SQL Server. + . + This package contains only the SQLSRV driver. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..deec3681 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: SQLSRV +Upstream-Contact: Marie Barwin +Source: https://github.com/Microsoft/msphpsql + +Files: * +Copyright: 2022 Microsoft Corporation +License: Expat + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and / or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions : + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 00000000..4fe72b84 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,13 @@ +[DEFAULT] +debian-branch = debian/latest +debian-tag = debian/%(version)s +upstream-branch = upstream/latest +upstream-tag = upstream/%(version)s +pristine-tar = True +upstream-vcs-tag = v%(version%~%-)s + +[dch] +meta = 1 + +[import-orig] +filter = ['.gitignore'] diff --git a/debian/php-sqlsrv.php b/debian/php-sqlsrv.php new file mode 100644 index 00000000..afc49351 --- /dev/null +++ b/debian/php-sqlsrv.php @@ -0,0 +1 @@ +mod debian/sqlsrv.ini diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..39af92c4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +export REPORT_EXIT_STATUS:=0 +include /usr/share/dh-php/pkg-pecl.mk diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/sqlsrv.ini b/debian/sqlsrv.ini new file mode 100644 index 00000000..ccfc3485 --- /dev/null +++ b/debian/sqlsrv.ini @@ -0,0 +1,2 @@ +; priority=20 +extension=sqlsrv.so diff --git a/debian/watch b/debian/watch new file mode 100644 index 00000000..b2d364ea --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +https://pecl.php.net/package/sqlsrv \ + /get/sqlsrv-(5\.10\.[\d\.p?]*).tgz debian uupdate