From patchwork Thu Jun 14 06:56:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 138523 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1731962lji; Wed, 13 Jun 2018 23:56:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJOUMU5IcIA8fD81G2feO1s+B5d7bvKiWua1+knsp7Ka5NvmLwx22PB+aXBcAyN2oDZXapy X-Received: by 2002:a17:902:a508:: with SMTP id s8-v6mr1613717plq.223.1528959407469; Wed, 13 Jun 2018 23:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528959407; cv=none; d=google.com; s=arc-20160816; b=jTrjRagz4UXV5MzbmrI9ySg1Z2BMwVf/M1lQl26qZPoiYPuQ4U5KqZf4f1SWOtHcLV 9fkmJTsTMC25sxtf6l6V7EV1iUiw/Z9L5Q/hEKXgVt6BJ7/FPZ02GF15IEzsaItdSjlQ mhqOvmGI6Bady+RBT+QzUZZuxK/ZypO5xzjhhsvvbH0D4ae4I3OQgruAqFJfHtKf6aB5 z508J9vwkU+7nc6DngNAqXZkoozPdF86dwx6lSOBynNKxT2NGJ8K12shZonvkdRf5npc 23jbaXeo7tYHKatOsG3LTJHIjnvH/mUvzRccmg7IF7i/Z+bESugn0nQqd6WnbrU1U13e pGVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=siFQbjjQJND08qNQnuj8M9CzEJeQOal5LjynKkJIQNg=; b=bLnZFULWkFMYzILaijUDdxqknlAzuZzqqERaCvPXZgLHo82DjTMR2hrYH79yebhluD CLXoRAIkblFA8s+pNkAQPmRyrVv3DegzHsk7mrqoBBPJh4MvRUJD8jiObHydr1l+RJoE yYplS8wwBfd3ElmILsu3YQvYvWHiz25/yZmJGVVk/aNGhf+sxDbyatfCUXI58/URR105 iD9rSRKqdMuqVEqy8P1eCRP74FN/4DSvc808jNjbcZcDJqcCw0vSOfhpUbNQpOGHWD9n RuGst3aGsaBhbSGL4+eSohKtsVd987OSCeFQt4iylvBarrYWKX96BLjFxdQIKxO3gL0N lfbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=reksvtoh; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id u2-v6si3848841pgv.335.2018.06.13.23.56.46; Wed, 13 Jun 2018 23:56:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=reksvtoh; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 389E47875F; Thu, 14 Jun 2018 06:56:43 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by mail.openembedded.org (Postfix) with ESMTP id 793D87875F for ; Thu, 14 Jun 2018 06:56:41 +0000 (UTC) Received: by mail-pf0-f177.google.com with SMTP id q1-v6so2727658pff.13 for ; Wed, 13 Jun 2018 23:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=CNM9PPV7xBOuC8ByAiATX+or3Y5Ug2II3rPXLs3X/bY=; b=reksvtohgQYhTHKuS/myl6fqPUrj73nESvAiZWR75tHsn8p69dy2mxDvM29UBWv+qc xSkSaLZxuaczij7PRQ/EMtqtW1o5qA3pNM6EU4mvw2gfaAqkFbvxim4vWrk4M6cbrCER IiWhL/DPCyUbY/2JS67wIoXs8MAhmHeDxl0oqfe0mp2KlJ7vcRctOlfUriyGhTli4a1G 2SXtwM+Bwub9f/xOMdN6wNxP+iX8RmP7/m0Hg2pSm2zv7w8NSEYUaLtl7Gho39K3nnSp 9xNvzB8EkH0EhFGUaGEqlzqwlKvguVdAeKdZPwNESBqXgKNBVhCmtdplPf3PlIq9G2Um 0tiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CNM9PPV7xBOuC8ByAiATX+or3Y5Ug2II3rPXLs3X/bY=; b=A0e50UiQZkaH5wv5p+tLiTSsqqtsRwgy9mw7nNzFjgLadmZROH8pnmi/7uC3PQA97T fDXISl9kaQoU3D+la2iE+UfJPLD6mDQA3jVCBg1R8hEPI1Ty0pCBHPlDhOGiQpx4BMLN eMoj8GyYXUi8MlgRAmlaK5+X4ql/vxN3jIKnqD5KL4ZhaVOZn3xGkiMALqdANYkx0rrO 8mfEYDZ4fszc9WDFWfXvbt4nsLgTd7siUs2RB8zc1WaUz5Gu31MEnFTlBpqXzN4FLg++ tzKQzHh0s2tXu0e2wHjxiQhUS7ykBOvOFiP+T8PC4OAi+HZaVmmoeXUUzlHlZtPdelrQ 5Lfg== X-Gm-Message-State: APt69E21q8jUG8flDN8+m9ONGdHT7PIumxxdYoRqKcz+yevFnqAZhmS0 aHct/5//sdjXEbz+XALN+urFrw== X-Received: by 2002:a65:5b8b:: with SMTP id i11-v6mr1199492pgr.225.1528959402140; Wed, 13 Jun 2018 23:56:42 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::91a0]) by smtp.gmail.com with ESMTPSA id n68-v6sm8220209pfk.145.2018.06.13.23.56.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 23:56:41 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 13 Jun 2018 23:56:41 -0700 Message-Id: <20180614065642.15059-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [oe] [meta-networking][PATCH 1/2] htpdate: Add recipe X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...ent-variables-assignments-to-be-weak.patch | 31 +++++++++++++++ .../recipes-support/htpdate/htpdate_1.2.0.bb | 38 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch create mode 100644 meta-networking/recipes-support/htpdate/htpdate_1.2.0.bb -- 2.17.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch b/meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch new file mode 100644 index 0000000000..0ee44c1621 --- /dev/null +++ b/meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch @@ -0,0 +1,31 @@ +From 04603f52d793f964653e6a985944400fe4fa87ee Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 13 Jun 2018 17:50:20 -0700 +Subject: [PATCH] Make environment variables assignments to be weak + +So that OE can override them for cross builds + +Signed-off-by: Khem Raj +--- + Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index 1c80c09..884126c 100644 +--- a/Makefile ++++ b/Makefile +@@ -2,11 +2,11 @@ prefix = $(DESTDIR)/usr + bindir = ${prefix}/bin + mandir = ${prefix}/share/man + +-CC = gcc ++CC ?= gcc + CFLAGS += -Wall -std=c99 -pedantic -O2 + +-INSTALL = /usr/bin/install -c +-STRIP = /usr/bin/strip -s ++INSTALL ?= /usr/bin/install -c ++STRIP ?= /usr/bin/strip -s + + all: htpdate + diff --git a/meta-networking/recipes-support/htpdate/htpdate_1.2.0.bb b/meta-networking/recipes-support/htpdate/htpdate_1.2.0.bb new file mode 100644 index 0000000000..ccbeaf8ca8 --- /dev/null +++ b/meta-networking/recipes-support/htpdate/htpdate_1.2.0.bb @@ -0,0 +1,38 @@ +# Copyright (C) 2018 Khem Raj +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "HTTP based time synchronization tool" + +DESCRIPTION = "The HTTP Time Protocol (HTP) is used to synchronize a computer's time with\ + web servers as reference time source. This program can be used instead\ + ntpdate or similar, in networks that has a firewall blocking the NTP port.\ + Htpdate will synchronize the computer time to Greenwich Mean Time (GMT),\ + using the timestamps from HTTP headers found in web servers response (the\ + HEAD method will be used to get the information).\ + Htpdate works through proxy servers. Accuracy of htpdate will be usually\ + within 0.5 seconds (better with multiple servers).\ +" + +HOMEPAGE = "http://www.vervest.org/htp/" + +LICENSE = "GPL-2.0+" +LIC_FILES_CHKSUM = "file://htpdate.c;beginline=26;endline=30;md5=d7018a4d2c5a6eab392709a05e5e168a" + +SRC_URI = "http://www.vervest.org/htp/archive/c/htpdate-${PV}.tar.xz \ + file://0001-Make-environment-variables-assignments-to-be-weak.patch \ + " +SRC_URI[md5sum] = "9d5ca69be06edf5d535b52b5f790da4e" +SRC_URI[sha256sum] = "22b2cf3ec45b0eedecddd3ad2a3d754ac57942ae7dcbac410d254935f0bdbc03" + +do_configure () { + : +} + +do_compile () { + oe_runmake +} + +do_install () { + oe_runmake install 'INSTALL=install' 'STRIP=echo' 'DESTDIR=${D}' +} +