From 052d5dbbe24acba0965094ddfdc15cdd2480b540 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Mon, 31 Aug 2015 13:16:18 +0200 Subject: [PATCH] Fix epel 5 build --- ...utomake-stuff-for-compatibility-with.patch | 38 +++++++++++++++++++ 0002-Added-explanatory-comments.patch | 37 ++++++++++++++++++ shellinabox.spec | 15 +++++++- 3 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 0001-Added-autoconf-automake-stuff-for-compatibility-with.patch create mode 100644 0002-Added-explanatory-comments.patch diff --git a/0001-Added-autoconf-automake-stuff-for-compatibility-with.patch b/0001-Added-autoconf-automake-stuff-for-compatibility-with.patch new file mode 100644 index 0000000..80a53be --- /dev/null +++ b/0001-Added-autoconf-automake-stuff-for-compatibility-with.patch @@ -0,0 +1,38 @@ +From 284265651b2876a6d6d95ccbcd757befc86f6e0d Mon Sep 17 00:00:00 2001 +From: Benji Wiebe +Date: Fri, 28 Aug 2015 23:15:13 -0500 +Subject: [PATCH 1/2] Added autoconf/automake stuff for compatibility with + older auto* versions + +--- + Makefile.am | 1 + + configure.ac | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/Makefile.am b/Makefile.am +index 2a59fe2..7a88ccb 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -127,6 +127,7 @@ BUILT_SOURCES = shellinabox/beep.h \ + shellinaboxd_LDADD = liblogging.la \ + libhttp.la + shellinaboxd_LDFLAGS = -static ++docdir = ${datadir}/doc/${PACKAGE} + + symbolname = \ + sed -e 's/.*\/\([^.]*\)[.].*/\1/' \ +diff --git a/configure.ac b/configure.ac +index 9a7b1ab..f4e815f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,6 +17,7 @@ CFLAGS="${CFLAGS:--Os}" + AM_INIT_AUTOMAKE([subdir-objects]) + AM_CONFIG_HEADER(config.h) + AC_PROG_CC ++AM_PROG_CC_C_O + AC_LANG_WERROR + AC_PROG_INSTALL + AC_PROG_LIBTOOL +-- +2.4.3 + diff --git a/0002-Added-explanatory-comments.patch b/0002-Added-explanatory-comments.patch new file mode 100644 index 0000000..713cc14 --- /dev/null +++ b/0002-Added-explanatory-comments.patch @@ -0,0 +1,37 @@ +From 36f512cc6335c59ce967a3f05805e6ca0f3a350e Mon Sep 17 00:00:00 2001 +From: Benji Wiebe +Date: Fri, 28 Aug 2015 23:42:09 -0500 +Subject: [PATCH 2/2] Added explanatory comments + +--- + Makefile.am | 1 + + configure.ac | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/Makefile.am b/Makefile.am +index 7a88ccb..7b8e7ab 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -127,6 +127,7 @@ BUILT_SOURCES = shellinabox/beep.h \ + shellinaboxd_LDADD = liblogging.la \ + libhttp.la + shellinaboxd_LDFLAGS = -static ++## Added this for compatibility with older versions of autoconf/automake + docdir = ${datadir}/doc/${PACKAGE} + + symbolname = \ +diff --git a/configure.ac b/configure.ac +index f4e815f..2a2bdb4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,6 +17,7 @@ CFLAGS="${CFLAGS:--Os}" + AM_INIT_AUTOMAKE([subdir-objects]) + AM_CONFIG_HEADER(config.h) + AC_PROG_CC ++dnl Added this for compatibility with older versions of autoconf/automake + AM_PROG_CC_C_O + AC_LANG_WERROR + AC_PROG_INSTALL +-- +2.4.3 + diff --git a/shellinabox.spec b/shellinabox.spec index b9b6725..dfbed0d 100644 --- a/shellinabox.spec +++ b/shellinabox.spec @@ -6,17 +6,22 @@ Name: shellinabox Version: 2.17 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Web based AJAX terminal emulator Group: System Environment/Daemons License: GPLv2 URL: https://github.com/%{name}/%{name} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: shellinaboxd.sysconfig Source2: shellinaboxd.service Source3: shellinaboxd.init + Patch0: %{name}-ssh-options.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +# From upstream - https://github.com/shellinabox/shellinabox/pull/340 +Patch1: 0001-Added-autoconf-automake-stuff-for-compatibility-with.patch +Patch2: 0002-Added-explanatory-comments.patch BuildRequires: autoconf BuildRequires: automake @@ -50,6 +55,8 @@ browser plugins. %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build autoreconf -vif @@ -141,6 +148,10 @@ fi %attr(750,%{username},%{username}) %{_sharedstatedir}/%{name} %changelog +* Mon Aug 31 2015 Simone Caronni - 2.17-3 +- Backport patch from upstream: + https://github.com/shellinabox/shellinabox/pull/340 + * Wed Aug 26 2015 Simone Caronni - 2.17-2 - Add license macro. - Install files manually, as this simplifies installation of docs in versioned