Package: anytun
Version: 0.3.6-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

Ubuntu is undergoing boost1.65 transtion, and i think newer gcc too.

I've noticed that anytun is FTBFS, due to a missing header include.

At the same time I've noticed that systemd integration is not built,
so I enabled that too.

Please consider to apply these two patches, done against your git
repository.

Regards,

Dimitri.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJZ968OAAoJEMrC2LnNLKX5O+kH/2RgwDZ6Azxi8zqAKMYvrwjC
bOSG6rvD/Npybx/1t/V8deAVle2yZD2vaTNsVlM1+CVBZCjTmTTtQEdyAMYlYtBi
3oHjCK5MokbslmR0+4lsDv5orFzaNgXHNySUSJXaau+O8q+vdse1LXgTktCtugAy
vfhpxMLWumbk5vWrxkCTi1CdSjYLARYhw/6jeZkLNHqSp4vRxCcipNz1lnSjJTd/
c9a0j4M8H8OmRW8FNKqK4jflpTEOo8EhFtKxczmP5sFw6ogT8cWr9UIcsNzCf3gQ
Ut1I0I2nCFtE1gMxBEhUTKRp6GwQVr7dja9xy6K72TpUzkj/fpXW3WbDMEHgYTk=
=RyHf
-----END PGP SIGNATURE-----
>From 82c5b9373e91e0123b33bcd91a5902688d883cc1 Mon Sep 17 00:00:00 2001
From: Dimitri John Ledkov <x...@ubuntu.com>
Date: Sat, 28 Oct 2017 16:06:45 +0100
Subject: [PATCH 1/2] Fix FTBFS, missing include.

---
 debian/patches/ftbfs.patch | 14 ++++++++++++++
 debian/patches/series      |  1 +
 2 files changed, 15 insertions(+)
 create mode 100644 debian/patches/ftbfs.patch
 create mode 100644 debian/patches/series

diff --git a/debian/patches/ftbfs.patch b/debian/patches/ftbfs.patch
new file mode 100644
index 0000000..682b6d0
--- /dev/null
+++ b/debian/patches/ftbfs.patch
@@ -0,0 +1,14 @@
+Description: Fix FTBFS, missing include.
+Author: Dimitri John Ledkov <x...@ubuntu.com>
+
+
+--- anytun-0.3.6.orig/src/routingTreeNode.cpp
++++ anytun-0.3.6/src/routingTreeNode.cpp
+@@ -43,6 +43,7 @@
+  *  files in the program, then also delete it here.
+  */
+ 
++#include <iostream>
+ #include "routingTreeNode.h"
+ 
+ RoutingTreeNode::RoutingTreeNode():mux_(0),valid_(false)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3caf681
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ftbfs.patch
-- 
2.7.4

>From 25ddffca83b805b72b0dd6b75be5505e2f86ecd8 Mon Sep 17 00:00:00 2001
From: Dimitri John Ledkov <x...@ubuntu.com>
Date: Sat, 28 Oct 2017 16:04:30 +0100
Subject: [PATCH 2/2] Enable systemd integration.

---
 debian/control | 4 +++-
 debian/rules   | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 774af3b..90aff66 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,9 @@ Build-Depends: debhelper (>= 9~),
                libboost-serialization-dev,
                libboost-system-dev,
                libboost-thread-dev,
-               libgcrypt20-dev
+               libgcrypt20-dev,
+               pkg-config,
+               systemd
 Homepage: http://www.anytun.org/
 Standards-Version: 3.9.8
 Vcs-git: git://git.syn-net.org/debian/anytun.git
diff --git a/debian/rules b/debian/rules
index 2f9a838..68bd666 100755
--- a/debian/rules
+++ b/debian/rules
@@ -59,6 +59,7 @@ binary-arch: install
 	dh_installdocs
 	dh_installman doc/anytun.8 doc/anytun-config.8 doc/anytun-controld.8 doc/anytun-showtables.8
 	dh_installexamples
+	dh_systemd_enable anytun.service
 	dh_installinit
 	dh_link
 	dh_strip
-- 
2.7.4

Reply via email to