From patchwork Thu Apr 23 17:33:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1275912 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZjfKEVM8; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 497PXS6WSBz9sPF for ; Fri, 24 Apr 2020 03:33:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 723C387EDD; Thu, 23 Apr 2020 17:33:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UlR+ExFwXi9M; Thu, 23 Apr 2020 17:33:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B8D587EC3; Thu, 23 Apr 2020 17:33:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id DEDF51BF38D for ; Thu, 23 Apr 2020 17:33:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D702688637 for ; Thu, 23 Apr 2020 17:33:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eB-ZUx1ZKtuo for ; Thu, 23 Apr 2020 17:33:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by hemlock.osuosl.org (Postfix) with ESMTPS id 27AFD88630 for ; Thu, 23 Apr 2020 17:33:06 +0000 (UTC) Received: by mail-pg1-f171.google.com with SMTP id g6so3215168pgs.9 for ; Thu, 23 Apr 2020 10:33:06 -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:mime-version :content-transfer-encoding; bh=ZpZL84om0BtL0IO4ZmAX5u8EDTA545zW+UKiP10YbR8=; b=ZjfKEVM8597glICd1LgsibkxZ2I7H5W62K1D5+2llwsXqikWbwgJdEWDbsu133b0wH vJ4mjSwONBjJlipm9+9xeIWJP3pc8DUqZxw4eDeaeqdR54zvP3G29M5Oe5Sjzx+Yu7Ii wNmF3h63nma/kvCh5ojlK/yPJiiWSAQjH1Z+DRxh+uFzm3w46j8N9M9l5eZcRPGBEOTM +vt/mUc1I0Fimw/qRdyqq7lh9iHlAgrlnP+BGPTtk2YkTxhHL30+Yo4ndT5rFv7hueW4 QkQQmOL/7nPjKqLTodGD08xWXtZ81iXuIJ0pLIJCEpfz5Sf+aO8J53QvY4gW8BS4qZKY A6Pw== 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:mime-version :content-transfer-encoding; bh=ZpZL84om0BtL0IO4ZmAX5u8EDTA545zW+UKiP10YbR8=; b=aSvxkD42K/QPHsJ8XCTKHO/JQgkOmin28E5TasO5TzhhMOECKVbch/6hksjbaGiKTj 0LjO/UiCMi8Enka9t9SBjSWE0LdAcIxpZbCu4nLcp9S7B3ZUncpB+wWGnJHL2YkbVBbd s21E3n1TbCYKPJJ6ppiz2aAFN9+SWDm5tkaQzHp9nLuGF9c3w223oVYo8phpEAvUFv9C m6/QGmIjvxpI/F8nY/PgXf+mkB/swVppXqpI5ZaWGw9VI+KWkaf/zf9eIGRxwMFX9mjx HMg4vRlZDDe3qso7TSmY7JnUYDnJUTdUBG50hdeyP39JitD8q2d30BvtFa68SvrfpvwJ jqdQ== X-Gm-Message-State: AGi0PuYFY1B/gOwLAaV10Y3xvQWGhwfKk7clwFQ00DG1JoueuF/0k8Bc g6PgVlNUlxayO0TmXDfwZmVTpITQ/oQ= X-Google-Smtp-Source: APiQypKks3anuPNopVX7jIjh5rW/gzr/3pcHczMpl0tZ5qLfCYooQOqFNeWDKJVU1fZEsXguVLtWgw== X-Received: by 2002:a63:cf4e:: with SMTP id b14mr5241575pgj.344.1587663185386; Thu, 23 Apr 2020 10:33:05 -0700 (PDT) Received: from localhost.localdomain ([47.149.8.172]) by smtp.gmail.com with ESMTPSA id 127sm3308425pfw.72.2020.04.23.10.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2020 10:33:04 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Thu, 23 Apr 2020 10:33:01 -0700 Message-Id: <20200423173302.280424-1-aduskett@gmail.com> X-Mailer: git-send-email 2.25.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 1/2] package/python-slip-dbus: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Asaf Kahlon , Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett This package provides a dbus.service.Object derivative that ends itself after a certain time without being used and/or if there are no clients anymore on the message bus. The package also provides a set of convenience functions and decorators for integrating a dbus service with PolicyKit. Firewalld depends on this package. Signed-off-by: Adam Duskett --- Changes v1 -> v2: - Combine dependency comment (Yann) - Add a more detailed commit message. (Yann) - Add an explination for the PYTHON_SLIP_DBUS_APPEND_VERSION hook. (Yann) DEVELOPERS | 1 + package/Config.in | 1 + package/python-slip-dbus/Config.in | 27 +++++++++++++++++++ .../python-slip-dbus/python-slip-dbus.hash | 3 +++ package/python-slip-dbus/python-slip-dbus.mk | 23 ++++++++++++++++ 5 files changed, 55 insertions(+) create mode 100644 package/python-slip-dbus/Config.in create mode 100644 package/python-slip-dbus/python-slip-dbus.hash create mode 100644 package/python-slip-dbus/python-slip-dbus.mk diff --git a/DEVELOPERS b/DEVELOPERS index 56178ba100..e0ab2f61bf 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -74,6 +74,7 @@ F: package/python-nested-dict/ F: package/python-pbr/ F: package/python-pip/ F: package/python-psycopg2/ +F: package/python-slip-dbus/ F: package/python-smmap2/ F: package/python-sqlalchemy/ F: package/python-sqlparse/ diff --git a/package/Config.in b/package/Config.in index a9c6f6fcbc..918052bc38 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1149,6 +1149,7 @@ menu "External python modules" source "package/python-singledispatch/Config.in" source "package/python-sip/Config.in" source "package/python-six/Config.in" + source "package/python-slip-dbus/Config.in" source "package/python-slob/Config.in" source "package/python-smbus-cffi/Config.in" source "package/python-smmap2/Config.in" diff --git a/package/python-slip-dbus/Config.in b/package/python-slip-dbus/Config.in new file mode 100644 index 0000000000..3e1c8adc03 --- /dev/null +++ b/package/python-slip-dbus/Config.in @@ -0,0 +1,27 @@ +config BR2_PACKAGE_PYTHON_SLIP_DBUS + bool "python-slip-dbus" + depends on BR2_USE_MMU # libglib2, gobject-introspection + depends on BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS # gobject-introspection + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # gobject-introspection + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_USES_GLIBC # gobject-introspection + depends on BR2_PACKAGE_PYTHON3 # gobject-introspection + select BR2_PACKAGE_DBUS # runtime + select BR2_PACKAGE_DBUS_PYTHON # runtime + select BR2_PACKAGE_PYTHON_DECORATOR # runtime + select BR2_PACKAGE_PYTHON_GOBJECT # runtime + select BR2_PACKAGE_PYTHON_SIX # runtime + help + A dbus.service.Object derivative that ends + itself after a certain time without being used and/or if there + are no clients anymore on the message bus, as well as + convenience functions and decorators for integrating a dbus + service with PolicyKit. + + https://github.com/nphilipp/python-slip + +comment "python-slip-dbus needs python3, and a glibc toolchain w/ gcc >= 4.9, threads" + depends on BR2_USE_MMU + depends on BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_USES_GLIBC \ + || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_PYTHON3 diff --git a/package/python-slip-dbus/python-slip-dbus.hash b/package/python-slip-dbus/python-slip-dbus.hash new file mode 100644 index 0000000000..8a88533169 --- /dev/null +++ b/package/python-slip-dbus/python-slip-dbus.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 7a52ebe49945cd27d06a1172042a55eb5c79cfda49b742153fa076d1d9bd99a1 python-slip-0.6.5.tar.gz +sha256 1ca3e8f71b7de618968e7ea9fe47822d9e704dc476aef8544033abedec355225 COPYING diff --git a/package/python-slip-dbus/python-slip-dbus.mk b/package/python-slip-dbus/python-slip-dbus.mk new file mode 100644 index 0000000000..5c2f416f5d --- /dev/null +++ b/package/python-slip-dbus/python-slip-dbus.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# python-slip-dbus +# +################################################################################ + +PYTHON_SLIP_DBUS_VERSION = 0.6.5 +PYTHON_SLIP_DBUS_SOURCE = python-slip-$(PYTHON_SLIP_DBUS_VERSION).tar.gz +PYTHON_SLIP_DBUS_SITE = https://github.com/nphilipp/python-slip/archive +PYTHON_SLIP_DBUS_LICENSE = GPL-2.0+ +PYTHON_SLIP_DBUS_LICENSE_FILES = COPYING +PYTHON_SLIP_DBUS_SETUP_TYPE = distutils +PYTHON_SLIP_DBUS_DEPENDENCIES = python-gobject + +# Python-slip-dbus only packages a setup.py.in file with a @VERSION@ variable, +# so we must create the file ourselves and sed the appropriate version number. +define PYTHON_SLIP_DBUS_APPEND_VERSION + cd $(@D) && \ + sed -e 's/@VERSION@/$(PYTHON_SLIP_DBUS_VERSION)/g' setup.py.in > setup.py +endef +PYTHON_SLIP_DBUS_PRE_CONFIGURE_HOOKS += PYTHON_SLIP_DBUS_APPEND_VERSION + +$(eval $(python-package))