From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Feb 2022 17:29:46 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nG1T0-005fYV-KV for lore@lore.pengutronix.de; Fri, 04 Feb 2022 17:29:46 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nG1Sz-0007sF-LW; Fri, 04 Feb 2022 17:29:45 +0100 Received: from mail.pqgruber.com ([52.59.78.55]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nG1SF-0007s6-D4 for ptxdist@pengutronix.de; Fri, 04 Feb 2022 17:28:59 +0100 Received: from localhost.localdomain (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id 39EFCC028CD; Fri, 4 Feb 2022 17:28:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1643992138; bh=Z8/UZcZjARUHV5YYfHdyQ+vBiC5geT4swaCHwDdjCIU=; h=From:To:Cc:Subject:Date:From; b=IZKAAcx/Ao4S/4rhcFCeh97sqkGq5tWp8OrgFIlWBEU+lxcQBbFJonMLQOsL6etdR bOhGn2UeG/vR1NyDeSkzZP5GviG2+BNvR/XnTpSIIvaxF/+QLfW4Loz1zWwM9T38SI cBLCUpd4c1ZmKYnfZ4LvwZpVmOEVKG4B+kg5oGNw= From: Clemens Gruber To: ptxdist@pengutronix.de Date: Fri, 4 Feb 2022 17:28:07 +0100 Message-Id: <20220204162809.830058-1-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-102.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_WELCOMELIST,USER_IN_WHITELIST autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 1/3] hiredis: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Clemens Gruber Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Adds a new package for hiredis, a minimalistic C client library for Redis. Signed-off-by: Clemens Gruber --- rules/hiredis.in | 8 ++++++ rules/hiredis.make | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 rules/hiredis.in create mode 100644 rules/hiredis.make diff --git a/rules/hiredis.in b/rules/hiredis.in new file mode 100644 index 000000000..d416d69c4 --- /dev/null +++ b/rules/hiredis.in @@ -0,0 +1,8 @@ +## SECTION=system_libraries + +config HIREDIS + tristate + select HOST_CMAKE + prompt "hiredis " + help + Hiredis is a minimalistic C client library for the Redis database. diff --git a/rules/hiredis.make b/rules/hiredis.make new file mode 100644 index 000000000..10e6d81d2 --- /dev/null +++ b/rules/hiredis.make @@ -0,0 +1,61 @@ +# -*-makefile-*- +# +# Copyright (C) 2022 by Clemens Gruber +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_HIREDIS) += hiredis + +# +# Paths and names +# +HIREDIS_VERSION := 1.0.2 +HIREDIS_MD5 := 58e8313188f66ed1be1c220d14a7752e +HIREDIS := hiredis-$(HIREDIS_VERSION) +HIREDIS_SUFFIX := tar.gz +HIREDIS_URL := https://github.com/redis/hiredis/archive/v$(HIREDIS_VERSION).$(HIREDIS_SUFFIX) +HIREDIS_SOURCE := $(SRCDIR)/$(HIREDIS).$(HIREDIS_SUFFIX) +HIREDIS_DIR := $(BUILDDIR)/$(HIREDIS) +HIREDIS_LICENSE := BSD-3-Clause + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +HIREDIS_CONF_TOOL := cmake + +HIREDIS_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DDISABLE_TESTS=ON \ + -DENABLE_SSL=OFF + + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/hiredis.targetinstall: + @$(call targetinfo) + + @$(call install_init, hiredis) + @$(call install_fixup, hiredis,PRIORITY,optional) + @$(call install_fixup, hiredis,SECTION,base) + @$(call install_fixup, hiredis,AUTHOR,"Clemens Gruber ") + @$(call install_fixup, hiredis,DESCRIPTION,"Minimalistic C client for Redis") + + @$(call install_lib, hiredis, 0, 0, 0644, libhiredis) + @$(call install_link, hiredis, libhiredis.so.1.0.0, /usr/lib/libhiredis.so) + + @$(call install_finish, hiredis) + + @$(call touch) + +# vim: syntax=make -- 2.35.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de