Skip to content
Snippets Groups Projects
Commit 2da70bbf authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

contrib: Fix failure of .deb packages

Due to restbed attempting to download tarballs at the time it is
unpacked.

Change-Id: I468c5035ea1351264a6040a7fd86df48ee1fc4c9
parent eff3f72d
Branches
Tags
No related merge requests found
e86964f4269e9f8b760b749163b92d6d3c72a94a8c5732e3c36c41fc74e2b16de35e2494c3ffe468e38a09aafe58a973fab702da0d632b5eb829480da6b32376 kashmir-dependency-2f3913f49c4ac7f9bff9224db5178f6f8f0ff3ee.tar.gz
#
# Copyright (C) 2018 Savoir-faire Linux Inc.
#
# Author: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
KASHMIR_VERSION := 2f3913f49c4ac7f9bff9224db5178f6f8f0ff3ee
KASHMIR_URL := https://github.com/Corvusoft/kashmir-dependency/archive/$(KASHMIR_VERSION).tar.gz
PKGS += kashmir-dependency
$(TARBALLS)/kashmir-dependency-$(KASHMIR_VERSION).tar.gz:
$(call download,$(KASHMIR_URL))
kashmir-dependency: kashmir-dependency-$(KASHMIR_VERSION).tar.gz
$(UNPACK)
$(MOVE)
.kashmir-dependency: kashmir-dependency .sum-kashmir-dependency
cd $< && cp -r kashmir $(PREFIX)/include
touch $@
.sum-kashmir-dependency: kashmir-dependency-$(KASHMIR_VERSION).tar.gz
......@@ -31,23 +31,18 @@ endif
$(TARBALLS)/restbed-$(RESTBED_VERSION).tar.gz:
$(call download,$(RESTBED_URL))
DEPS_restbed = asio
DEPS_restbed = asio kashmir-dependency
RESTBED_CONF = -DBUILD_TESTS=NO \
-DBUILD_EXAMPLES=NO \
-DBUILD_SSL=NO \
-DBUILD_SHARED=NO \
-DCMAKE_INCLUDE_PATH=$(PREFIX)/include \
-DCMAKE_INSTALL_PREFIX=$(PREFIX) \
-DCMAKE_INSTALL_LIBDIR=lib
$(TARBALLS)/kashmir.tar.gz:
$(call download,https://github.com/Corvusoft/kashmir-dependency/archive/master.tar.gz)
restbed: restbed-$(RESTBED_VERSION).tar.gz kashmir.tar.gz .sum-restbed
restbed: restbed-$(RESTBED_VERSION).tar.gz .sum-restbed
$(UNPACK)
rm -rf $(UNPACK_DIR)/dependency/kashmir
mv kashmir-dependency-master $(UNPACK_DIR)/dependency/kashmir
$(APPLY) $(SRC)/restbed/findkashmir.patch
$(APPLY) $(SRC)/restbed/strand.patch
$(APPLY) $(SRC)/restbed/async_read_until.patch
$(MOVE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment