summaryrefslogtreecommitdiffstats
path: root/package/python-systemd
diff options
context:
space:
mode:
Diffstat (limited to 'package/python-systemd')
-rw-r--r--package/python-systemd/Config.in10
-rw-r--r--package/python-systemd/python-systemd.hash3
-rw-r--r--package/python-systemd/python-systemd.mk15
3 files changed, 28 insertions, 0 deletions
diff --git a/package/python-systemd/Config.in b/package/python-systemd/Config.in
new file mode 100644
index 0000000000..599b43f717
--- /dev/null
+++ b/package/python-systemd/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PYTHON_SYSTEMD
+ bool "python-systemd"
+ depends on BR2_PACKAGE_SYSTEMD
+ help
+ Python module for native access to the systemd facilities.
+
+ https://github.com/systemd/python-systemd
+
+comment "python-systemd needs systemd"
+ depends on !BR2_PACKAGE_SYSTEMD
diff --git a/package/python-systemd/python-systemd.hash b/package/python-systemd/python-systemd.hash
new file mode 100644
index 0000000000..a645bec0f2
--- /dev/null
+++ b/package/python-systemd/python-systemd.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/systemd-python/, sha256 locally computed
+md5 8438acab31e6f1e3e963d36f3de62faa systemd-python-233.tar.gz
+sha256 06a3768b744884565d7961b44f4a51d164765bc59692f0f85ea6f11330a17da4 systemd-python-233.tar.gz
diff --git a/package/python-systemd/python-systemd.mk b/package/python-systemd/python-systemd.mk
new file mode 100644
index 0000000000..242a2ea121
--- /dev/null
+++ b/package/python-systemd/python-systemd.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-systemd
+#
+################################################################################
+
+PYTHON_SYSTEMD_VERSION = 233 # Should be kept in sync with $(SYSTEMD_VERSION)
+PYTHON_SYSTEMD_SOURCE = systemd-python-$(PYTHON_SYSTEMD_VERSION).tar.gz
+PYTHON_SYSTEMD_SITE = https://pypi.python.org/packages/10/89/d66ae73bdbc2614e4f2e90ddf9ef80d22c28f3cd70071345c3640465c14c
+PYTHON_SYSTEMD_SETUP_TYPE = distutils
+PYTHON_SYSTEMD_LICENSE = LGPL-2.1
+PYTHON_SYSTEMD_LICENSE_FILES = LICENSE.txt
+PYTHON_SYSTEMD_DEPENDENCIES = systemd # To be able to link against libsystemd
+
+$(eval $(python-package))
OpenPOWER on IntegriCloud