horst: remove build time to fix reproducible builds
authorAlexander Couzens <redacted>
Fri, 17 Nov 2017 02:38:59 +0000 (03:38 +0100)
committerAlexander Couzens <redacted>
Fri, 17 Nov 2017 11:20:42 +0000 (12:20 +0100)
Build timestamp are not reproducible [0].

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <redacted>
net/horst/Makefile
net/horst/patches/0001-reproducible-builds.patch [new file with mode: 0644]

index c18e7454e2b45d5a39c90a200977f67f14717d6d..6805199e51ab61030a0817cd17cfbc96ddad7f55 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=horst
 PKG_VERSION:=5.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/br101/horst/archive/v$(PKG_VERSION)/
diff --git a/net/horst/patches/0001-reproducible-builds.patch b/net/horst/patches/0001-reproducible-builds.patch
new file mode 100644 (file)
index 0000000..541d16f
--- /dev/null
@@ -0,0 +1,26 @@
+Index: horst-5.1/conf_options.c
+===================================================================
+--- horst-5.1.orig/conf_options.c
++++ horst-5.1/conf_options.c
+@@ -519,7 +519,7 @@ void config_parse_file_and_cmdline(int a
+                       conf_filename = optarg;
+                       break;
+               case 'v':
+-                      printf("%s (build date: %s %s)\n", VERSION, __DATE__, __TIME__);
++                      printf("%s\n", VERSION);
+                       exit(0);
+               case 'h':
+               case '?':
+Index: horst-5.1/display-help.c
+===================================================================
+--- horst-5.1.orig/display-help.c
++++ horst-5.1/display-help.c
+@@ -36,7 +36,7 @@ void update_help_win(WINDOW *win)
+       print_centered(win, 2, COLS, "HORST - Horsts OLSR Radio Scanning Tool (or)");
+       print_centered(win, 3, COLS, "HORST - Highly Optimized Radio Scanning Tool");
+-      print_centered(win, 5, COLS, "Version " VERSION " (build date " __DATE__ " " __TIME__ ")");
++      print_centered(win, 5, COLS, "Version " VERSION);
+       print_centered(win, 6, COLS, "(C) 2005-2016 Bruno Randolf, Licensed under the GPLv2");
+       mvwprintw(win, 8, 2, "Known IEEE802.11 Packet Types:");
git clone https://git.99rst.org/PROJECT