Initial packaging

This commit is contained in:
David Prévot 2023-12-06 14:58:33 +01:00
parent 9583ca32e0
commit b2f67bfc12
No known key found for this signature in database
GPG key ID: 058C1CF944F6BD3C
10 changed files with 165 additions and 0 deletions

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
php-sqlsrv (5.10.1-1) bullseye; urgency=medium
* Initial packaging
-- David Prévot <taffit@debian.org> Wed, 06 Dec 2023 14:41:15 +0100

78
debian/control vendored Normal file
View file

@ -0,0 +1,78 @@
Source: php-sqlsrv
Section: php
Priority: optional
Maintainer: Debian PHP PECL Maintainers <team+php-pecl@tracker.debian.org>
Uploaders: David Prévot <taffit@debian.org>
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.

33
debian/control.in vendored Normal file
View file

@ -0,0 +1,33 @@
Source: php-sqlsrv
Section: php
Priority: optional
Maintainer: Debian PHP PECL Maintainers <team+php-pecl@tracker.debian.org>
Uploaders: David Prévot <taffit@debian.org>
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.

26
debian/copyright vendored Normal file
View file

@ -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.

13
debian/gbp.conf vendored Normal file
View file

@ -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']

1
debian/php-sqlsrv.php vendored Normal file
View file

@ -0,0 +1 @@
mod debian/sqlsrv.ini

3
debian/rules vendored Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/make -f
export REPORT_EXIT_STATUS:=0
include /usr/share/dh-php/pkg-pecl.mk

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)

2
debian/sqlsrv.ini vendored Normal file
View file

@ -0,0 +1,2 @@
; priority=20
extension=sqlsrv.so

3
debian/watch vendored Normal file
View file

@ -0,0 +1,3 @@
version=4
https://pecl.php.net/package/sqlsrv \
/get/sqlsrv-(5\.10\.[\d\.p?]*).tgz debian uupdate