diff options
| author | Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | 2017-01-03 20:02:32 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-01-04 22:33:17 -0500 |
| commit | d2de7a93b002979ac502f740c82c589c1b776cea (patch) | |
| tree | 54d9cc28b13e604f4f8edc1e539a76aab0963c38 /meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb | |
| parent | 2ae3a56b30f63a8c1eea75785c2ca07ecc1f759b (diff) | |
| download | meta-cloud-services-d2de7a93b002979ac502f740c82c589c1b776cea.tar.gz | |
meta-openstack: add new python-avahi recipe
OE-core commit 36e9ed89950 ("avahi-ui: remove support for building a python
module") removed the python avahi bindings because nothing in OE-core used
them. These bindings are very useful however when configuring targets from
salt using the zeroconf protocol.
An added benefit of having a python-avahi recipe separate from avahi-ui is
that we don't need X11 in DISTRO_FEATURES anymore to use python-avahi, it's
just two simple python files, there was no need for all that complexity in
avahi-ui in the first place to get the python avahi bindings.
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb b/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb new file mode 100644 index 0000000..c129337 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | SUMMARY = "Python bindings for the avahi zeroconf client" | ||
| 2 | HOMEPAGE = "https://github.com/lathiat/avahi" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | |||
| 5 | LICENSE = "GPLv2+" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
| 7 | |||
| 8 | SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz" | ||
| 9 | |||
| 10 | SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013" | ||
| 11 | SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/avahi-${PV}" | ||
| 14 | |||
| 15 | inherit python-dir pythonnative | ||
| 16 | |||
| 17 | # we only need the python bindings | ||
| 18 | do_install () { | ||
| 19 | install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi | ||
| 20 | |||
| 21 | sed -i'' -e "s,@PYTHON\@,${bindir}/python,g" \ | ||
| 22 | ${S}/avahi-python/avahi/__init__.py \ | ||
| 23 | ${S}/avahi-python/avahi-bookmarks.in | ||
| 24 | |||
| 25 | install -m 0775 ${S}/avahi-python/avahi/__init__.py \ | ||
| 26 | ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/__init__.py | ||
| 27 | |||
| 28 | install -m 0775 ${S}/avahi-python/avahi-bookmarks.in \ | ||
| 29 | ${D}${PYTHON_SITEPACKAGES_DIR}/avahi/avahi-bookmarks | ||
| 30 | } | ||
| 31 | |||
| 32 | RDEPENDS_${PN} += "python-core python-dbus" | ||
| 33 | |||
| 34 | FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi" | ||
