Patchwork [1/1] python-daemon: new package

login
register
mail settings
Submitter David Bachelart
Date July 24, 2014, 3:43 p.m.
Message ID <1406216603-965-1-git-send-email-david.bachelart@bbright.com>
Download mbox | patch
Permalink /patch/373451/
State Accepted
Headers show

Comments

David Bachelart - July 24, 2014, 3:43 p.m.
Signed-off-by: David Bachelart <david.bachelart@bbright.com>
---
 package/Config.in                      |    1 +
 package/python-daemon/Config.in        |    7 +++++++
 package/python-daemon/python-daemon.mk |   13 +++++++++++++
 3 files changed, 21 insertions(+)
 create mode 100644 package/python-daemon/Config.in
 create mode 100644 package/python-daemon/python-daemon.mk
Thomas Petazzoni - July 27, 2014, 2:04 p.m.
Dear David Bachelart,

On Thu, 24 Jul 2014 17:43:23 +0200, David Bachelart wrote:

> +PYTHON_DAEMON_VERSION = 1.5.5
> +PYTHON_DAEMON_SITE    = https://pypi.python.org/packages/source/p/python-daemon/

We typically don't align = signs anymore.

> +PYTHON_DAEMON_LICENSE = PSF-2+

The SPDX code for this license is Python-2.0, and I don't think the '+'
sign was correct. I've also added GPLv2+, which is used for the tests.

> +PYTHON_DAEMON_LICENSE_FILES = COPYING

This was incorrect, there was no COPYING file in the tarball. The
correct files where LICENSE.PSF-2 and LICENSE.GPL-2.

Applied with those changes, thanks!

Thomas

Patch

diff --git a/package/Config.in b/package/Config.in
index b232284..4aceaeb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -471,6 +471,7 @@  menu "external python modules"
 	source "package/python-bottle/Config.in"
 	source "package/python-configobj/Config.in"
 	source "package/python-crc16/Config.in"
+	source "package/python-daemon/Config.in"
 	source "package/python-dialog/Config.in"
 	source "package/python-dpkt/Config.in"
 	source "package/python-id3/Config.in"
diff --git a/package/python-daemon/Config.in b/package/python-daemon/Config.in
new file mode 100644
index 0000000..b3cc8a2
--- /dev/null
+++ b/package/python-daemon/Config.in
@@ -0,0 +1,7 @@ 
+config BR2_PACKAGE_PYTHON_DAEMON
+	bool "python-daemon"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  Library to implement a well-behaved Unix daemon process.
+
+	  https://pypi.python.org/pypi/python-daemon/
diff --git a/package/python-daemon/python-daemon.mk b/package/python-daemon/python-daemon.mk
new file mode 100644
index 0000000..bb1c286
--- /dev/null
+++ b/package/python-daemon/python-daemon.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-daemon
+#
+################################################################################
+
+PYTHON_DAEMON_VERSION = 1.5.5
+PYTHON_DAEMON_SITE    = https://pypi.python.org/packages/source/p/python-daemon/
+PYTHON_DAEMON_LICENSE = PSF-2+
+PYTHON_DAEMON_LICENSE_FILES = COPYING
+PYTHON_DAEMON_SETUP_TYPE = setuptools
+
+$(eval $(python-package))