summaryrefslogtreecommitdiff
path: root/tools/debian
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-10-24 12:55:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-10-24 13:00:06 +0200
commit2641b6e778b13022612be21c7870eaf44b4a0929 (patch)
tree4a39675676996a5b5e20cef6b41bf5f10be49a65 /tools/debian
parentcfc1f397791ffab8ab74a88c5e9ceb7fe5771d98 (diff)
downloadweechat-2641b6e778b13022612be21c7870eaf44b4a0929.zip
core: add a script tools/build-debian.sh to build stable/devel Debian packages
Diffstat (limited to 'tools/debian')
-rw-r--r--tools/debian/patches/README4
-rw-r--r--tools/debian/patches/weechat_debian_squeeze.patch70
-rw-r--r--tools/debian/patches/weechat_debian_wheezy.patch30
l---------tools/debian/patches/weechat_ubuntu_precise.patch1
l---------tools/debian/patches/weechat_ubuntu_trusty.patch1
5 files changed, 106 insertions, 0 deletions
diff --git a/tools/debian/patches/README b/tools/debian/patches/README
new file mode 100644
index 000000000..3a2699a55
--- /dev/null
+++ b/tools/debian/patches/README
@@ -0,0 +1,4 @@
+This directory contains patches that must be applied for some old Debian/Ubuntu
+versions, in order to build Debian packages.
+
+They are automatically applied by the script "tools/build-debian.sh".
diff --git a/tools/debian/patches/weechat_debian_squeeze.patch b/tools/debian/patches/weechat_debian_squeeze.patch
new file mode 100644
index 000000000..d9aa83227
--- /dev/null
+++ b/tools/debian/patches/weechat_debian_squeeze.patch
@@ -0,0 +1,70 @@
+diff --git a/debian-devel/compat b/debian-devel/compat
+index ec63514..45a4fb7 100644
+--- a/debian-devel/compat
++++ b/debian-devel/compat
+@@ -1 +1 @@
+-9
++8
+diff --git a/debian-devel/control b/debian-devel/control
+index a12df19..a5f9ceb 100644
+--- a/debian-devel/control
++++ b/debian-devel/control
+@@ -8,10 +8,10 @@ Build-Depends:
+ xsltproc,
+ docbook-xsl,
+ docbook-xml,
+- debhelper (>= 9),
++ debhelper (>= 8),
+ cmake, pkg-config,
+ libncursesw5-dev,
+- gem2deb,
++ ruby1.9.1, ruby1.9.1-dev,
+ libperl-dev,
+ python-dev,
+ libaspell-dev,
+@@ -20,8 +20,8 @@ Build-Depends:
+ guile-2.0-dev,
+ libv8-dev,
+ libcurl4-gnutls-dev,
+- libgcrypt20-dev,
+- libgnutls28-dev,
++ libgcrypt11-dev,
++ libgnutls-dev,
+ zlib1g-dev
+ Standards-Version: 3.9.6
+ Homepage: https://weechat.org/
+diff --git a/debian-stable/compat b/debian-stable/compat
+index ec63514..45a4fb7 100644
+--- a/debian-stable/compat
++++ b/debian-stable/compat
+@@ -1 +1 @@
+-9
++8
+diff --git a/debian-stable/control b/debian-stable/control
+index ccb4179..790b315 100644
+--- a/debian-stable/control
++++ b/debian-stable/control
+@@ -8,10 +8,10 @@ Build-Depends:
+ xsltproc,
+ docbook-xsl,
+ docbook-xml,
+- debhelper (>= 9),
++ debhelper (>= 8),
+ cmake, pkg-config,
+ libncursesw5-dev,
+- gem2deb,
++ ruby1.9.1, ruby1.9.1-dev,
+ libperl-dev,
+ python-dev,
+ libaspell-dev,
+@@ -20,8 +20,8 @@ Build-Depends:
+ guile-2.0-dev,
+ libv8-dev,
+ libcurl4-gnutls-dev,
+- libgcrypt20-dev,
+- libgnutls28-dev,
++ libgcrypt11-dev,
++ libgnutls-dev,
+ zlib1g-dev
+ Standards-Version: 3.9.6
+ Homepage: https://weechat.org/
diff --git a/tools/debian/patches/weechat_debian_wheezy.patch b/tools/debian/patches/weechat_debian_wheezy.patch
new file mode 100644
index 000000000..459190197
--- /dev/null
+++ b/tools/debian/patches/weechat_debian_wheezy.patch
@@ -0,0 +1,30 @@
+diff --git a/debian-devel/control b/debian-devel/control
+index a12df19..38773be 100644
+--- a/debian-devel/control
++++ b/debian-devel/control
+@@ -20,8 +20,8 @@ Build-Depends:
+ guile-2.0-dev,
+ libv8-dev,
+ libcurl4-gnutls-dev,
+- libgcrypt20-dev,
+- libgnutls28-dev,
++ libgcrypt11-dev,
++ libgnutls-dev,
+ zlib1g-dev
+ Standards-Version: 3.9.6
+ Homepage: https://weechat.org/
+diff --git a/debian-stable/control b/debian-stable/control
+index ccb4179..0d73171 100644
+--- a/debian-stable/control
++++ b/debian-stable/control
+@@ -20,8 +20,8 @@ Build-Depends:
+ guile-2.0-dev,
+ libv8-dev,
+ libcurl4-gnutls-dev,
+- libgcrypt20-dev,
+- libgnutls28-dev,
++ libgcrypt11-dev,
++ libgnutls-dev,
+ zlib1g-dev
+ Standards-Version: 3.9.6
+ Homepage: https://weechat.org/
diff --git a/tools/debian/patches/weechat_ubuntu_precise.patch b/tools/debian/patches/weechat_ubuntu_precise.patch
new file mode 120000
index 000000000..737378e74
--- /dev/null
+++ b/tools/debian/patches/weechat_ubuntu_precise.patch
@@ -0,0 +1 @@
+weechat_debian_wheezy.patch \ No newline at end of file
diff --git a/tools/debian/patches/weechat_ubuntu_trusty.patch b/tools/debian/patches/weechat_ubuntu_trusty.patch
new file mode 120000
index 000000000..737378e74
--- /dev/null
+++ b/tools/debian/patches/weechat_ubuntu_trusty.patch
@@ -0,0 +1 @@
+weechat_debian_wheezy.patch \ No newline at end of file