homeassistant-0.78.3.ebuild

This commit is contained in:
2018-09-25 11:40:02 +02:00
parent 02bdf533c4
commit 2d22d5a7b6
2 changed files with 125 additions and 0 deletions

View File

@@ -8,7 +8,9 @@ DIST homeassistant-0.77.2.tar.gz 2836847 BLAKE2B 22781084751bd92a59a3cbc44992495
DIST homeassistant-0.77.3.tar.gz 2837685 BLAKE2B 98d8f36477695aff9b9c0b0216f651a85c31463d4a727abc125b794afbda21dc6c6e40edd4ad3a5299306d01d983d11cca5aba9ad8b5d84bd5016d88d1195a09 SHA512 40c3046f88101e52e2ea3fe4b258833b5974227cf92b537d595e537dfe0030904ef19826d9f783d4c2c6e8b10bfa9ced97c006baeef28d31409c4c756e957657
DIST homeassistant-0.78.0.tar.gz 2863439 BLAKE2B f207d82795309ff484fb52133de6574d5ccb59a75c4ca6ce45dc13c673dad9d150fbb24e3c84bd5ada0317534795b966cea301a630d3e3315a756c9de7719dd3 SHA512 1ee645e0d816cf92d0843563396c52e9547b3810f238f840079f93638feb3e84d8b61f0b84d12bd716d007614a0c70b6f0cc2c7f2751910fd8d0aeeb5eb4f185
DIST homeassistant-0.78.1.tar.gz 2863516 BLAKE2B 92e1ffb46db0c0756be24d069169ff342e266600a2076ad988be34b19093d1020f1854bb6c3d2810a75b46c4b38000214462d4362ac1e8914165a95bfbcaed5a SHA512 f39f06396bf8758fff90df44a4f28114ad343ac6a0fd1c361c3277d1cd959cd1b7495bc51aafbeda25b6eb234214680732f974b6349e063cb649b2781c7fc8e0
DIST homeassistant-0.78.3.tar.gz 2863538 BLAKE2B 2381c36916bd14cbca6011e00540a39a4e7c6795a3a54546d5a7e22bd38d4461ff2c59303afde181fddf88ce9a132c1bd2bf13df90b3ad28d1fd63f8cf34dca0 SHA512 50d6ffbc5e369b90445c23cd49934353bfe964adf2da936c0ac44eb1918e73183c68aaa6ed6842aa2cc4222574a8908ce371268a681b29ed7ca53e0978b1accd
EBUILD homeassistant-0.77.2.ebuild 2814 BLAKE2B 79f83a94173802e5026fab45e3d544fa15e896aeed85bcb0c52364411f4c6a83b5a922fe834569629d2b557e8ecf3df375b0142de0ac943938a584c71945ca46 SHA512 84491521b703ae12e2433914898e82f9318c34999dd6113c99ca9745e895c5dc2bc3dab4221cb3238f2ef23c34b93f2999ae1fe54afa89692d682bd89de29cee
EBUILD homeassistant-0.77.3.ebuild 2814 BLAKE2B 79f83a94173802e5026fab45e3d544fa15e896aeed85bcb0c52364411f4c6a83b5a922fe834569629d2b557e8ecf3df375b0142de0ac943938a584c71945ca46 SHA512 84491521b703ae12e2433914898e82f9318c34999dd6113c99ca9745e895c5dc2bc3dab4221cb3238f2ef23c34b93f2999ae1fe54afa89692d682bd89de29cee
EBUILD homeassistant-0.78.0.ebuild 2814 BLAKE2B 79f83a94173802e5026fab45e3d544fa15e896aeed85bcb0c52364411f4c6a83b5a922fe834569629d2b557e8ecf3df375b0142de0ac943938a584c71945ca46 SHA512 84491521b703ae12e2433914898e82f9318c34999dd6113c99ca9745e895c5dc2bc3dab4221cb3238f2ef23c34b93f2999ae1fe54afa89692d682bd89de29cee
EBUILD homeassistant-0.78.1.ebuild 3572 BLAKE2B 340e9e7a246fa38566583f2e80c1e5925839be2adfe4e8fc72f1eed2a9b0935e0855a463eb5671219421fc920d584784e027c2d67a11ffc3a77db124be40cb11 SHA512 0c630e77a9d592e1fa70c08bd19eefe2f5c9deb19d31ed65a13406a7e22354119e44981b3ec3210e4167bb25710a858095c2522ea6c19d14cd77bec30dcfae13
EBUILD homeassistant-0.78.3.ebuild 3572 BLAKE2B 340e9e7a246fa38566583f2e80c1e5925839be2adfe4e8fc72f1eed2a9b0935e0855a463eb5671219421fc920d584784e027c2d67a11ffc3a77db124be40cb11 SHA512 0c630e77a9d592e1fa70c08bd19eefe2f5c9deb19d31ed65a13406a7e22354119e44981b3ec3210e4167bb25710a858095c2522ea6c19d14cd77bec30dcfae13

View File

@@ -0,0 +1,123 @@
# Copyright 1999-2018 Gentoo Foundation
# Ebuild (C)2018 OnkelBeh
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
PYTHON_COMPAT=( python3_5 python3_6 )
inherit user readme.gentoo-r1 eutils distutils-r1
DESCRIPTION="Open-source home automation platform running on Python 3.6"
HOMEPAGE="https://home-assistant.io"
SRC_URI="https://github.com/home-assistant/home-assistant/archive/${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
IUSE="atv hs100 maint tradfri wemo mysql musiccast"
DEPEND="
${PYTHON_DEPS}
!app-misc/homeassistant-bin
>=dev-python/aiohttp-3.4.4[${PYTHON_USEDEP}]
>=dev-python/aiohttp-cors-0.7.0[${PYTHON_USEDEP}]
>=dev-python/astral-1.6.1[${PYTHON_USEDEP}]
>=dev-python/async_timeout-3.0.0[${PYTHON_USEDEP}]
>=dev-python/attrs-18.2.0[${PYTHON_USEDEP}]
>=dev-python/attrs-18.2.0[${PYTHON_USEDEP}]
>=dev-python/bcrypt-3.1.4[${PYTHON_USEDEP}]
>=dev-python/beautifulsoup-4.5.1[${PYTHON_USEDEP}]
>=dev-python/certifi-2018.4.16[${PYTHON_USEDEP}]
>=dev-python/chardet-3.0.4[${PYTHON_USEDEP}]
>=dev-python/colorlog-3.1.4[${PYTHON_USEDEP}]
>=dev-python/cryptography-2.3.1[${PYTHON_USEDEP}]
>=dev-python/idna-ssl-1.0.1[${PYTHON_USEDEP}]
>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
>=dev-python/pip-9.0.1[${PYTHON_USEDEP}]
>=dev-python/pytz-2018.04[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.13[${PYTHON_USEDEP}]
>=dev-python/requests-2.19.1-r1[${PYTHON_USEDEP}]
>=dev-python/typing-3.5.3.0[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.22[${PYTHON_USEDEP}]
>=dev-python/voluptuous-0.11.5[${PYTHON_USEDEP}]
>=dev-python/voluptuous-serialize-2.0.0[${PYTHON_USEDEP}]
>=dev-python/websocket-client-0.40.0[${PYTHON_USEDEP}]
>=dev-python/yarl-1.1.1[${PYTHON_USEDEP}]
atv? ( >=dev-python/pyatv-0.3.9[${PYTHON_USEDEP}] )
musiccast? ( >=dev-python/pymusiccast-0.1.6[${PYTHON_USEDEP}] )
mysql? ( dev-python/mysqlclient[${PYTHON_USEDEP}] )
hs100? ( >=dev-python/pyhs100-0.3.0[${PYTHON_USEDEP}] )
tradfri? ( >=dev-python/pytradfri-4.1.0[${PYTHON_USEDEP}] )
wemo? ( >=dev-python/pywemo-0.4.25[${PYTHON_USEDEP}] )
dev-db/sqlite
dev-libs/libfastjson
dev-libs/openssl
"
RDEPEND="
${DEPEND}
app-admin/logrotate
maint? (
app-crypt/certbot
app-crypt/ssl-cert-check
net-misc/dropbox-uploader
)
"
INSTALL_DIR="/opt/${PN}"
DISABLE_AUTOFORMATTING=1
DOC_CONTENTS="
The HA interface listens on port 8123 - this _will_ take a minute or two to appear
hass configuration is in: /etc/${MY_PN}
daemon command line arguments are configured in: /etc/conf.d/${MY_PN}
logging is to: /var/log/${MY_PN}/{server,errors,stdout}.log
The sqlite db is by default in: /etc/${MY_PN}
To move it after ${MY_PN} has run once and while ${MY_PN} is stopped:
- add /etc/${MY_PN}/recorder.yaml to /etc/${MY_PN}/configuration.yaml
- mv /etc/${MY_PN}/home-assistant_v2.db /var/db/${MY_PN}
support thread at:
https://community.home-assistant.io/t/gentoo-homeassistant-0-59-2-ebuild/35577
"
S="${WORKDIR}/home-assistant-${PV}"
DOCS="README.rst"
pkg_setup() {
enewgroup "${PN}"
enewuser "${PN}" -1 -1 "$INSTALL_DIR" "${PN}"
}
src_prepare() {
sed -e 's;astral==1.5;astral>=1.5;' \
-i "setup.py" \
-i homeassistant/package_constraints.txt
eapply_user
}
python_install_all() {
dodoc ${DOCS}
distutils-r1_python_install_all
keepdir "$INSTALL_DIR"
keepdir "/etc/${PN}"
fowners -R "${PN}:${PN}" "/etc/${PN}"
newconfd "${FILESDIR}/${PN}.conf.d" "${PN}"
newinitd "${FILESDIR}/${PN}.init.d" "${PN}"
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}