diff --git a/debian/autoload.php.tpl b/debian/autoload.php.tpl
new file mode 100644
index 0000000000000000000000000000000000000000..2f6e26e05a2c48a031a6d51e1c5e3fa3c2f1bc89
--- /dev/null
+++ b/debian/autoload.php.tpl
@@ -0,0 +1,26 @@
+<?php
+
+require_once 'Psr/Http/Message/autoload.php';
+require_once 'Psr/Http/Client/autoload.php';
+require_once 'Http/Promise/autoload.php';
+
+// @codingStandardsIgnoreFile
+// @codeCoverageIgnoreStart
+// this is an autogenerated file - do not edit
+spl_autoload_register(
+    function($class) {
+        static $classes = null;
+        if ($classes === null) {
+            $classes = array(
+                ___CLASSLIST___
+            );
+        }
+        $cn = strtolower($class);
+        if (isset($classes[$cn])) {
+            require ___BASEDIR___$classes[$cn];
+        }
+    },
+    true,
+    false
+);
+// @codeCoverageIgnoreEnd
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000000000000000000000000000000000000..ad53c73dca8d9016b637dd53aba65d2d321adb45
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+php-http-httplug (2.0.0-1) unstable; urgency=medium
+
+  * Initial release (new symfony build-dependency)
+
+ -- David Prévot <taffit@debian.org>  Mon, 01 Jul 2019 15:01:02 -1000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000000000000000000000000000000000000..58dd3b77e086bdaf7a3ddb06c0dd8ce900049308
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+src/autoload.php
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000000000000000000000000000000000..66fcd1410587c1be2546ab9b437317a3fd651494
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: php-http-httplug
+Section: php
+Priority: optional
+Maintainer: Debian PHP PEAR Maintainers <pkg-php-pear@lists.alioth.debian.org>
+Uploaders: David Prévot <taffit@debian.org>
+Build-Depends: debhelper-compat (= 12), phpab, pkg-php-tools (>= 1.7~)
+Standards-Version: 4.3.0
+Homepage: http://httplug.io
+Vcs-Git: https://salsa.debian.org/php-team/pear/php-http-httplug.git
+Vcs-Browser: https://salsa.debian.org/php-team/pear/php-http-httplug
+
+Package: php-http-httplug
+Architecture: all
+Depends: ${misc:Depends}, ${phpcomposer:Debian-require}
+Suggests: ${phpcomposer:Debian-suggest}
+Breaks: ${phpcomposer:Debian-conflict}
+Provides: ${phpcomposer:Debian-provide}
+Description: ${phpcomposer:description}
+ HTTPlug allows one to write reusable libraries that need an HTTP client
+ without binding to a specific implementation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000000000000000000000000000000000000..98cda98fc2e961f835a7d8883df304119d349a91
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: HTTP Factories
+Upstream-Contact: Márk Sági-Kazár <mark.sagikazar@gmail.com>
+Source: https://github.com/php-http/httplug
+
+Files: *
+Copyright: 2014, Eric GELOEN <geloen.eric@gmail.com>
+           2015, PHP HTTP Team <team@php-http.org>
+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/install b/debian/install
new file mode 100644
index 0000000000000000000000000000000000000000..f4ec3e2a6c4fe1914cec83ff713028ea0ef32a5e
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+src/*	usr/share/php/Http/Client
diff --git a/debian/pkg-php-tools-overrides b/debian/pkg-php-tools-overrides
new file mode 100644
index 0000000000000000000000000000000000000000..50391a7d80e47cb5980669917ea95b0f8ed463a4
--- /dev/null
+++ b/debian/pkg-php-tools-overrides
@@ -0,0 +1 @@
+php-http	promise	php-http-promise
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000000000000000000000000000000000000..e181a1688bad2599e73482fbba5b07be8736a29a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+%:
+	dh $@  --with phpcomposer
+
+override_dh_auto_build:
+	phpab \
+		--output src/autoload.php \
+		--template debian/autoload.php.tpl \
+		src
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000000000000000000000000000000000000..319fbe6104887ab9cfda0801516a3199006db855
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+options=uversionmangle=s/-?([^\d.])/~$1/i;tr/A-Z/a-z/ \
+https://github.com/php-http/httplug/releases \
+.*/archive/v?([\d\.]*-?\w*)\.tar\.gz