0001-Backport-alfred-from-gluon-master.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 3 Oct 2014 01:29:13 +0200
  3. Subject: Backport alfred from gluon master
  4. diff --git a/alfred/Makefile b/alfred/Makefile
  5. index c8e73c2..648a5ef 100644
  6. --- a/alfred/Makefile
  7. +++ b/alfred/Makefile
  8. @@ -11,9 +11,9 @@ include $(TOPDIR)/rules.mk
  9. # The latest alfred git hash in PKG_REV can be obtained from http://git.open-mesh.org/alfred.git
  10. #
  11. PKG_NAME:=alfred
  12. -PKG_VERSION:=2013.4.0
  13. -PKG_RELEASE:=3
  14. -PKG_MD5SUM:=3891697e127b1037cfc9349fd96e9993
  15. +PKG_VERSION:=2014.3.0
  16. +PKG_RELEASE:=0
  17. +PKG_MD5SUM:=b8ab5677ed73d817b02b0e4fae10357a
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  19. PKG_SOURCE_URL:=http://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
  20. diff --git a/alfred/patches/0001-alfred-adjust-intervals.patch b/alfred/patches/0001-alfred-adjust-intervals.patch
  21. new file mode 100644
  22. index 0000000..e8ffd3a
  23. --- /dev/null
  24. +++ b/alfred/patches/0001-alfred-adjust-intervals.patch
  25. @@ -0,0 +1,15 @@
  26. +--- a/alfred.h
  27. ++++ b/alfred.h
  28. +@@ -30,10 +30,10 @@
  29. + #include "list.h"
  30. + #include "packet.h"
  31. +
  32. +-#define ALFRED_INTERVAL 10
  33. ++#define ALFRED_INTERVAL 60
  34. + #define ALFRED_IF_CHECK_INTERVAL 60
  35. + #define ALFRED_REQUEST_TIMEOUT 10
  36. +-#define ALFRED_SERVER_TIMEOUT 60
  37. ++#define ALFRED_SERVER_TIMEOUT 180
  38. + #define ALFRED_DATA_TIMEOUT 600
  39. + #define ALFRED_SOCK_PATH "/var/run/alfred.sock"
  40. + #define NO_FILTER -1
  41. diff --git a/alfred/patches/0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch b/alfred/patches/0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch
  42. deleted file mode 100644
  43. index 3be7169..0000000
  44. --- a/alfred/patches/0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch
  45. +++ /dev/null
  46. @@ -1,33 +0,0 @@
  47. -From dbaaf2b294af120e42a0e95644640b128044a568 Mon Sep 17 00:00:00 2001
  48. -From: Simon Wunderlich <sw@simonwunderlich.de>
  49. -Date: Wed, 23 Oct 2013 01:17:36 +0200
  50. -Subject: [PATCH] alfred-gpsd: add -lm to linker flags for libgps
  51. -
  52. -Appearently applications using libgps must link -lm themselves. A patch
  53. -was submitted [1] to change this unusual behaviour upstream, but was
  54. -never applied. Therefore link to -lm to alfred-gpsd too as this should
  55. -not hurt anyway.
  56. -
  57. -[1] https://lists.berlios.de/pipermail/gpsd-dev/2011-August/009451.html
  58. -
  59. -Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
  60. ----
  61. - gpsd/Makefile | 2 +-
  62. - 1 file changed, 1 insertion(+), 1 deletion(-)
  63. -
  64. -diff --git a/gpsd/Makefile b/gpsd/Makefile
  65. -index 9b21652..92e690f 100644
  66. ---- a/gpsd/Makefile
  67. -+++ b/gpsd/Makefile
  68. -@@ -49,7 +49,7 @@ ifeq ($(origin LIBGPS_CFLAGS) $(origin LIBGPS_LDLIBS), undefined undefined)
  69. - $(error No $(LIBGPS_NAME) development libraries found!)
  70. - endif
  71. - LIBGPS_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBGPS_NAME))
  72. -- LIBGPS_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME))
  73. -+ LIBGPS_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME)) -lm
  74. - endif
  75. - CFLAGS += $(LIBGPS_CFLAGS)
  76. - LDLIBS += $(LIBGPS_LDLIBS)
  77. ---
  78. -1.7.10.4
  79. -