aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2018-02-11 12:11:19 +0000
committerPaul Healy <lmiphay@gmail.com>2018-02-11 12:11:19 +0000
commit74dc5e5ca0bae73c7979c2df1fc4a848a43d0baf (patch)
tree00d289335f250646497685bd44b6c42a6f7959ce
parentupdate python versions (diff)
downloadlmiphay-74dc5e5ca0bae73c7979c2df1fc4a848a43d0baf.tar.gz
lmiphay-74dc5e5ca0bae73c7979c2df1fc4a848a43d0baf.tar.bz2
lmiphay-74dc5e5ca0bae73c7979c2df1fc4a848a43d0baf.zip
rebump homeassistant
-rw-r--r--app-misc/homeassistant-bin/Manifest1
-rw-r--r--app-misc/homeassistant-bin/homeassistant-bin-0.62.1.ebuild105
-rw-r--r--homeassistant.keywords4
3 files changed, 108 insertions, 2 deletions
diff --git a/app-misc/homeassistant-bin/Manifest b/app-misc/homeassistant-bin/Manifest
index 782b4c3..7fbc524 100644
--- a/app-misc/homeassistant-bin/Manifest
+++ b/app-misc/homeassistant-bin/Manifest
@@ -3,4 +3,5 @@ AUX homeassistant.init.d 893 SHA256 b310a0ce86ef98587a2b03420ad746496f05d333d13b
AUX homeassistant.logrotate 280 SHA256 cb5979dbf2970d3acdc5e3730a37f3c769ff974d68ffadd0544bbb0c021c8f32 SHA512 9aa3305c605ae2deccac9b69d43cdf50c9dd67bc0abfe5a576cbd866bdc3ba92bdcc824b3e5990d903bad3685abdfec66b4a8bae122a7ea79dabb5f6e8b08613 WHIRLPOOL b12f21ce98776ca90927d4decce6465544024b532cea509f2c3f0a38b91c0f09ed7e861aacf49bfd76508f94544f68fcd92c642736a76228690de66639e5eba9
AUX recorder.yaml 114 SHA256 1062b950f5c9a5496d977cb426b6ad7f45842d52ccd0c513b56439b53be69f7d SHA512 cb4e353e54fb6dc7034569b8d62ddcdca92680c23c2c4e1ce707d21cf95e93f41a0c44521d8c3ee90b68c830f6b8e65dab82ae64bfa09727ae384550f7de0c94 WHIRLPOOL 3aa2d71e4c407beb4f84cb9fe6636d673d0665683d63b0e7cf1fe760caec2e88b5b3711e8d8e9ac914c0c7668e9bf6efb1c4bcabc4f8a105b61aff19deafdb4f
EBUILD homeassistant-bin-0.61.1.ebuild 2540 SHA256 3bc745059704ae897f29f8185496cb2c4d35929daa8589e660834061610ea096 SHA512 ac2daaf99a7d35497198f67719fb8aff0d25360b75b707f31150d1e3b62707cb5a8eb20ded4810d837341b2ab6887989afc5457050e8e843e6e9a5047ef21877 WHIRLPOOL 6bb65e200034f44665857b975a419f023219fcba0e635c5e0ef5988195da35a5d801b6b69cfddd7a58f72fc39a286f6b811d8d0f2c70733bc70f5480497d8bba
+EBUILD homeassistant-bin-0.62.1.ebuild 2540 SHA256 3bc745059704ae897f29f8185496cb2c4d35929daa8589e660834061610ea096 SHA512 ac2daaf99a7d35497198f67719fb8aff0d25360b75b707f31150d1e3b62707cb5a8eb20ded4810d837341b2ab6887989afc5457050e8e843e6e9a5047ef21877 WHIRLPOOL 6bb65e200034f44665857b975a419f023219fcba0e635c5e0ef5988195da35a5d801b6b69cfddd7a58f72fc39a286f6b811d8d0f2c70733bc70f5480497d8bba
EBUILD homeassistant-bin-9999.ebuild 2528 SHA256 a31142e550c7e9619c2fe10b2fa6e27789fd34f192e727fa7c5bb5aa092ed734 SHA512 1d4b4cf5ce4c352cf402194ec43f98e4bdecd79df342d2581d879702bef2c115cb7752aca90716d811f05a91839db360b6d7b65d71cdcbac5635472618d9ea2c WHIRLPOOL bea7f261f66ec50aed1a2f91285f2be04def06576c4de3460bbc5f530d356d7569b04277248a40544a0848a25897ed8504c61dd62bdbfe3961d1f01c71bd5d90
diff --git a/app-misc/homeassistant-bin/homeassistant-bin-0.62.1.ebuild b/app-misc/homeassistant-bin/homeassistant-bin-0.62.1.ebuild
new file mode 100644
index 0000000..8bd4f81
--- /dev/null
+++ b/app-misc/homeassistant-bin/homeassistant-bin-0.62.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_5 )
+
+inherit user readme.gentoo-r1 eutils distutils-r1
+
+MY_PN="${PN/-bin/}"
+
+DESCRIPTION="Home automation platform (Python 3 required)"
+HOMEPAGE="https://home-assistant.io"
+SRC_URI="" # pip installs HA version $PV from PyPI
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="maint"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ !app-misc/homeassistant
+ dev-python/pip[${PYTHON_USEDEP}]
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+"
+RDEPEND="
+ ${DEPEND}
+ app-admin/logrotate
+ maint? (
+ app-crypt/certbot
+ app-crypt/ssl-cert-check
+ net-misc/dropbox-uploader
+ virtual/logger
+ )
+"
+
+INSTALL_DIR="/opt/${MY_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}"
+
+pkg_setup() {
+ enewgroup "${MY_PN}"
+ enewuser "${MY_PN}" -1 -1 "$INSTALL_DIR" "${MY_PN}"
+}
+
+src_compile() {
+ true
+}
+
+src_install() {
+ keepdir "$INSTALL_DIR"
+
+ keepdir "/etc/${MY_PN}"
+ insinto "/etc/${MY_PN}"
+ doins "${FILESDIR}/recorder.yaml"
+ fowners -R "${MY_PN}:${MY_PN}" "/etc/${MY_PN}"
+
+ python3.5 -m venv "${D}/$INSTALL_DIR"
+ # for no output from pip add: --quiet
+ # note the venv has a python3, but no python3.5
+ VIRTUAL_ENV="$INSTALL_DIR" "${D}/$INSTALL_DIR/bin/python3" -m pip --no-cache-dir install "${MY_PN}==${PV}"
+ sed -i "1c#!$INSTALL_DIR/bin/python3" "${D}/$INSTALL_DIR/bin/hass"
+ fowners -R "${MY_PN}:${MY_PN}" "$INSTALL_DIR"
+
+ newconfd "${FILESDIR}/${MY_PN}.conf.d" "${MY_PN}"
+ newinitd "${FILESDIR}/${MY_PN}.init.d" "${MY_PN}"
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${MY_PN}.logrotate" "${MY_PN}"
+
+ keepdir "/var/log/${MY_PN}/old"
+ fowners -R "${MY_PN}:${MY_PN}" "/var/log/${MY_PN}"
+
+ keepdir "/var/db/${MY_PN}"
+ fowners -R "${MY_PN}:${MY_PN}" "/var/db/${MY_PN}"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
+
+pkg_config() {
+ "${INSTALL_DIR}/bin/hass" --script ensure_config
+}
diff --git a/homeassistant.keywords b/homeassistant.keywords
index 0e7e2b4..6bd6079 100644
--- a/homeassistant.keywords
+++ b/homeassistant.keywords
@@ -1,5 +1,5 @@
-#=app-misc/homeassistant-bin-0.59.2 ~amd64
-=app-misc/homeassistant-bin-0.61.1 ~amd64
+#=app-misc/homeassistant-bin-0.61.1 ~amd64
+=app-misc/homeassistant-bin-0.62.1 ~amd64
# from portage
=dev-python/certifi-2017.11.5 ~amd64