From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/next v4 2/5] package/python-slip-dbus: new package
Date: Thu, 7 May 2020 16:14:54 -0700 [thread overview]
Message-ID: <20200507231457.2093052-2-aduskett@gmail.com> (raw)
In-Reply-To: <20200507231457.2093052-1-aduskett@gmail.com>
From: Adam Duskett <Aduskett@gmail.com>
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 <Aduskett@gmail.com>
---
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)
Changes v3 -> v4:
- Clean up sed logic (Yann)
- Switch to using the tar.bz2 package from github (Yann)
- Add a missing dependency on wchar (Yann)
DEVELOPERS | 1 +
package/Config.in | 1 +
package/python-slip-dbus/Config.in | 28 +++++++++++++++++++
.../python-slip-dbus/python-slip-dbus.hash | 3 ++
package/python-slip-dbus/python-slip-dbus.mk | 23 +++++++++++++++
5 files changed, 56 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 e427ab15d4..906dfb92b3 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -75,6 +75,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 c12676d859..206a73f168 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1151,6 +1151,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..25854f2708
--- /dev/null
+++ b/package/python-slip-dbus/Config.in
@@ -0,0 +1,28 @@
+config BR2_PACKAGE_PYTHON_SLIP_DBUS
+ bool "python-slip-dbus"
+ depends on BR2_USE_MMU # libglib2, gobject-introspection
+ depends on BR2_USE_WCHAR # dbus-python
+ 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 # dbus, dbus-python, python3
+ depends on BR2_TOOLCHAIN_USES_GLIBC # gobject-introspection
+ depends on BR2_PACKAGE_PYTHON3 # gobject-introspection, python-gobject
+ 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, wchar, 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..2dd3658396
--- /dev/null
+++ b/package/python-slip-dbus/python-slip-dbus.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 c726c086f0dd93a0ac7a0176f383a12af91b6657b78a301e3f5b25d9f8d4d10b python-slip-0.6.5.tar.bz2
+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..a587c351aa
--- /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.bz2
+PYTHON_SLIP_DBUS_SITE = https://github.com/nphilipp/python-slip/releases/download/python-slip-$(PYTHON_SLIP_DBUS_VERSION)
+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
+ sed -e 's/@VERSION@/$(PYTHON_SLIP_DBUS_VERSION)/g' \
+ $(@D)/setup.py.in >$(@D)/setup.py
+endef
+PYTHON_SLIP_DBUS_PRE_CONFIGURE_HOOKS += PYTHON_SLIP_DBUS_APPEND_VERSION
+
+$(eval $(python-package))
--
2.26.2
next prev parent reply other threads:[~2020-05-07 23:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 23:14 [Buildroot] [PATCH/next v4 1/5] package/nftable: bear the kernel options munging aduskett at gmail.com
2020-05-07 23:14 ` aduskett at gmail.com [this message]
2020-05-07 23:14 ` [Buildroot] [PATCH/next v4 3/5] package/firewalld: new package aduskett at gmail.com
2020-05-07 23:14 ` [Buildroot] [PATCH/next v4 4/5] package/firewalld: bear the kernel options munging aduskett at gmail.com
2020-05-07 23:14 ` [Buildroot] [PATCH/next v4 5/5] support/testing: add firewalld test case aduskett at gmail.com
2020-06-24 21:40 ` [Buildroot] [PATCH/next v4 1/5] package/nftable: bear the kernel options munging Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200507231457.2093052-2-aduskett@gmail.com \
--to=aduskett@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.