FreeBSD Bugzilla – Attachment 230957 Details for
Bug 256885
[NEW PORT] www/py-homeassistant: Open-source home automation platform
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
b2352ea175.patch (text/plain), 18.07 KB, created by
Ivan Rozhuk
on 2022-01-12 17:10:08 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Ivan Rozhuk
Created:
2022-01-12 17:10:08 UTC
Size:
18.07 KB
patch
obsolete
>From b2352ea17568931c67eae2b189c43bb5b2ec8368 Mon Sep 17 00:00:00 2001 >From: Rozhuk Ivan <rozhuk.im@gmail.com> >Date: Wed, 23 Dec 2020 02:35:30 +0300 >Subject: [PATCH] www/py-homeassistant, www/py-home-assistant-frontend, > devel/py-hass-nabucasa, devel/py-snitun, devel/py-voluptuous-serialize: add > Home Assistant > >https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256885 >--- > GIDs | 2 +- > UIDs | 2 +- > devel/py-hass-nabucasa/Makefile | 28 +++++ > devel/py-hass-nabucasa/distinfo | 3 + > devel/py-hass-nabucasa/pkg-descr | 3 + > devel/py-snitun/Makefile | 19 ++++ > devel/py-snitun/distinfo | 3 + > devel/py-snitun/pkg-descr | 3 + > devel/py-voluptuous-serialize/Makefile | 19 ++++ > devel/py-voluptuous-serialize/distinfo | 3 + > devel/py-voluptuous-serialize/pkg-descr | 4 + > www/py-home-assistant-frontend/Makefile | 18 ++++ > www/py-home-assistant-frontend/distinfo | 3 + > www/py-home-assistant-frontend/pkg-descr | 5 + > www/py-homeassistant/Makefile | 112 ++++++++++++++++++++ > www/py-homeassistant/distinfo | 3 + > www/py-homeassistant/files/homeassistant.in | 47 ++++++++ > www/py-homeassistant/pkg-descr | 5 + > www/py-homeassistant/pkg-message | 15 +++ > 19 files changed, 295 insertions(+), 2 deletions(-) > create mode 100644 devel/py-hass-nabucasa/Makefile > create mode 100644 devel/py-hass-nabucasa/distinfo > create mode 100644 devel/py-hass-nabucasa/pkg-descr > create mode 100644 devel/py-snitun/Makefile > create mode 100644 devel/py-snitun/distinfo > create mode 100644 devel/py-snitun/pkg-descr > create mode 100644 devel/py-voluptuous-serialize/Makefile > create mode 100644 devel/py-voluptuous-serialize/distinfo > create mode 100644 devel/py-voluptuous-serialize/pkg-descr > create mode 100644 www/py-home-assistant-frontend/Makefile > create mode 100644 www/py-home-assistant-frontend/distinfo > create mode 100644 www/py-home-assistant-frontend/pkg-descr > create mode 100644 www/py-homeassistant/Makefile > create mode 100644 www/py-homeassistant/distinfo > create mode 100644 www/py-homeassistant/files/homeassistant.in > create mode 100644 www/py-homeassistant/pkg-descr > create mode 100644 www/py-homeassistant/pkg-message > >diff --git a/GIDs b/GIDs >index ee3b9573b3fc..1b17b7444d54 100644 >--- a/GIDs >+++ b/GIDs >@@ -510,7 +510,7 @@ polkitd:*:565: > # free: 567 > # free: 568 > # free: 569 >-# free: 570 >+homeassistant:*:570: > # free: 571 > # free: 572 > # free: 573 >diff --git a/UIDs b/UIDs >index 22ca902e1876..c59e142a19a0 100644 >--- a/UIDs >+++ b/UIDs >@@ -515,7 +515,7 @@ polkitd:*:565:565::0:0:Polkit Daemon User:/var/empty:/usr/sbin/nologin > # free: 567 > # free: 568 > # free: 569 >-# free: 570 >+homeassistant:*:570:570::0:0:Home Assistant:/var/db/homeassistant:/usr/sbin/nologin > # free: 571 > # free: 572 > # free: 573 >diff --git a/devel/py-hass-nabucasa/Makefile b/devel/py-hass-nabucasa/Makefile >new file mode 100644 >index 000000000000..8b1bca3c753e >--- /dev/null >+++ b/devel/py-hass-nabucasa/Makefile >@@ -0,0 +1,28 @@ >+PORTNAME= hass-nabucasa >+PORTVERSION= 0.51.0 >+CATEGORIES= devel python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= rozhuk.im@gmail.com >+COMMENT= Home Assistant cloud integration by Nabu Casa, Inc. >+ >+LICENSE= GPLv3 >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}acme>=1.22.0:security/py-acme@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.6.1:www/py-aiohttp@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}atomicwrites>=1.4.0:devel/py-atomicwrites@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}attrs>=19.3:devel/py-attrs@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}cryptography>=3.3.2:security/py-cryptography@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pycognito>=2022.1.0:devel/py-pycognito@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pytz>=2019.3:devel/py-pytz@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}snitun>=0.30.0:devel/py-snitun@${PY_FLAVOR} >+ >+USES= python >+USE_PYTHON= autoplist distutils >+ >+post-patch: >+ @${REINPLACE_CMD} -e 's|==|>=|g' \ >+ ${WRKSRC}/setup.py >+ >+.include <bsd.port.mk> >diff --git a/devel/py-hass-nabucasa/distinfo b/devel/py-hass-nabucasa/distinfo >new file mode 100644 >index 000000000000..483b3fe81774 >--- /dev/null >+++ b/devel/py-hass-nabucasa/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1641942237 >+SHA256 (hass-nabucasa-0.51.0.tar.gz) = 06190e26af0da018c1909f12c4f60ae2b72f24037b43351918c0e2eec95cc83b >+SIZE (hass-nabucasa-0.51.0.tar.gz) = 35988 >diff --git a/devel/py-hass-nabucasa/pkg-descr b/devel/py-hass-nabucasa/pkg-descr >new file mode 100644 >index 000000000000..7c40f69dd0e4 >--- /dev/null >+++ b/devel/py-hass-nabucasa/pkg-descr >@@ -0,0 +1,3 @@ >+Cloud integration in Home Assistant >+ >+WWW: https://github.com/NabuCasa/hass-nabucasa >diff --git a/devel/py-snitun/Makefile b/devel/py-snitun/Makefile >new file mode 100644 >index 000000000000..1821fca7be66 >--- /dev/null >+++ b/devel/py-snitun/Makefile >@@ -0,0 +1,19 @@ >+PORTNAME= snitun >+PORTVERSION= 0.30.0 >+CATEGORIES= devel python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= rozhuk.im@gmail.com >+COMMENT= SNI proxy with TCP multiplexer >+ >+LICENSE= GPLv3 >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}async_timeout>=3.0.1:devel/py-async_timeout@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}attrs>=18.2.0:devel/py-attrs@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}cryptography>=2.5:security/py-cryptography@${PY_FLAVOR} >+ >+USES= python >+USE_PYTHON= autoplist distutils >+ >+.include <bsd.port.mk> >diff --git a/devel/py-snitun/distinfo b/devel/py-snitun/distinfo >new file mode 100644 >index 000000000000..4c44dc799b68 >--- /dev/null >+++ b/devel/py-snitun/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1641942283 >+SHA256 (snitun-0.30.0.tar.gz) = 20a543852b233249e9a453e5a3164eeae50f438b3eb53753ce746ce42261a125 >+SIZE (snitun-0.30.0.tar.gz) = 29301 >diff --git a/devel/py-snitun/pkg-descr b/devel/py-snitun/pkg-descr >new file mode 100644 >index 000000000000..f5991c3931d7 >--- /dev/null >+++ b/devel/py-snitun/pkg-descr >@@ -0,0 +1,3 @@ >+End-to-End encryption with SNI proxy on top of a TCP multiplexer >+ >+WWW: https://github.com/NabuCasa/snitun >diff --git a/devel/py-voluptuous-serialize/Makefile b/devel/py-voluptuous-serialize/Makefile >new file mode 100644 >index 000000000000..ead2b7ac743f >--- /dev/null >+++ b/devel/py-voluptuous-serialize/Makefile >@@ -0,0 +1,19 @@ >+PORTNAME= voluptuous-serialize >+PORTVERSION= 2.5.0 >+CATEGORIES= devel python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= rozhuk.im@gmail.com >+COMMENT= Convert Voluptuous schemas to dictionaries so they can be serialized >+ >+LICENSE= APACHE20 >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}voluptuous>0:devel/py-voluptuous@${PY_FLAVOR} >+ >+USES= python >+USE_PYTHON= autoplist distutils >+ >+NO_ARCH= yes >+ >+.include <bsd.port.mk> >diff --git a/devel/py-voluptuous-serialize/distinfo b/devel/py-voluptuous-serialize/distinfo >new file mode 100644 >index 000000000000..d48c8e221a2d >--- /dev/null >+++ b/devel/py-voluptuous-serialize/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1641942300 >+SHA256 (voluptuous-serialize-2.5.0.tar.gz) = 5359f2e0a4f972ae03066e0777b4f0755c9226b2af099ca4fc55432efd1a447b >+SIZE (voluptuous-serialize-2.5.0.tar.gz) = 7450 >diff --git a/devel/py-voluptuous-serialize/pkg-descr b/devel/py-voluptuous-serialize/pkg-descr >new file mode 100644 >index 000000000000..63fd9e2f8e20 >--- /dev/null >+++ b/devel/py-voluptuous-serialize/pkg-descr >@@ -0,0 +1,4 @@ >+Voluptuous Serialize >+Convert Voluptuous schemas to dictionaries so they can be serialized. >+ >+WWW: https://github.com/home-assistant-libs/voluptuous-serialize >diff --git a/www/py-home-assistant-frontend/Makefile b/www/py-home-assistant-frontend/Makefile >new file mode 100644 >index 000000000000..a36da40f807e >--- /dev/null >+++ b/www/py-home-assistant-frontend/Makefile >@@ -0,0 +1,18 @@ >+PORTNAME= home-assistant-frontend >+PORTVERSION= 20211229.1 >+CATEGORIES= www python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= rozhuk.im@gmail.com >+COMMENT= The Home Assistant frontend >+ >+LICENSE= APACHE20 >+LICENSE_FILE= ${WRKSRC}/LICENSE.md >+ >+USES= python:3.8+ >+USE_PYTHON= autoplist concurrent distutils >+ >+NO_ARCH= yes >+ >+.include <bsd.port.mk> >diff --git a/www/py-home-assistant-frontend/distinfo b/www/py-home-assistant-frontend/distinfo >new file mode 100644 >index 000000000000..7614216f3460 >--- /dev/null >+++ b/www/py-home-assistant-frontend/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1641942318 >+SHA256 (home-assistant-frontend-20211229.1.tar.gz) = 82556327d88e9a1008183eb93c742ef65ed673f96be574726b69a2db4fd4560b >+SIZE (home-assistant-frontend-20211229.1.tar.gz) = 32135956 >diff --git a/www/py-home-assistant-frontend/pkg-descr b/www/py-home-assistant-frontend/pkg-descr >new file mode 100644 >index 000000000000..6cdc2a8f0358 >--- /dev/null >+++ b/www/py-home-assistant-frontend/pkg-descr >@@ -0,0 +1,5 @@ >+Open source home automation that puts local control and privacy first. >+Powered by a worldwide community of tinkerers and DIY enthusiasts. >+Perfect to run on a Raspberry Pi or a local server. >+ >+WWW: https://www.home-assistant.io/ >diff --git a/www/py-homeassistant/Makefile b/www/py-homeassistant/Makefile >new file mode 100644 >index 000000000000..d035c4d94f54 >--- /dev/null >+++ b/www/py-homeassistant/Makefile >@@ -0,0 +1,112 @@ >+PORTNAME= homeassistant >+# aiohttp==3.8.0, async_timeout==4.0.0 required after this release >+PORTVERSION= 2021.11.5 >+CATEGORIES= www python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= rozhuk.im@gmail.com >+COMMENT= Open-source home automation platform running on Python 3 >+ >+LICENSE= APACHE20 >+LICENSE_FILE= ${WRKSRC}/LICENSE.md >+ >+# core/blob/dev/setup.py >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.7.4.p0:www/py-aiohttp@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}astral>=2.2:astro/py-astral@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}async_timeout>=3.0.1:devel/py-async_timeout@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}attrs>=21.2.0:devel/py-attrs@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}atomicwrites>=1.4.0:devel/py-atomicwrites@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}awesomeversion>=22.1.0:devel/py-awesomeversion@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}backports.zoneinfo>=0.2.1:devel/py-backports.zoneinfo@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}bcrypt>=3.1.7:security/py-bcrypt@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}certifi>=2021.5.30:security/py-certifi@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}ciso8601>=2.2.0:devel/py-ciso8601@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}httpx>=0.21.0:www/py-httpx@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}ifaddr>=0.1.7:net/py-ifaddr@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0.1:devel/py-Jinja2@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pyjwt>=2.1.0:www/py-pyjwt@${PY_FLAVOR} >+# core/blob/dev/setup.py # PyJWT has loose dependency. We want the latest one. >+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cryptography>=3.3.2:security/py-cryptography@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pip>=20.3.4:devel/py-pip@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}python-slugify>=4.0.1:textproc/py-python-slugify@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}yaml>=5.4.1:devel/py-yaml@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}requests>=2.25.1:www/py-requests@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10.0.2:devel/py-typing-extensions@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}voluptuous>=0.12.0:devel/py-voluptuous@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}voluptuous-serialize>=2.5.0:devel/py-voluptuous-serialize@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}yarl>=1.6.3:www/py-yarl@${PY_FLAVOR} >+# Extra deps: failed to install via pip or have no fixed version or optional. >+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}home-assistant-frontend>=20211229.1:www/py-home-assistant-frontend@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}hass-nabucasa>=0.43.0:devel/py-hass-nabucasa@${PY_FLAVOR} >+ >+USES= python:3.8+ >+USE_PYTHON= autoplist concurrent distutils >+USE_RC_SUBR= homeassistant >+ >+USERS= homeassistant >+GROUPS= homeassistant >+ >+SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \ >+ PYTHON_VERSION=${PYTHON_VERSION} >+ >+NO_ARCH= yes >+ >+OPTIONS_GROUP= DB >+OPTIONS_GROUP_DB= MSSQL MYSQL PYMYSQL PGSQL >+ >+MSSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymssql>=0:databases/py-pymssql@${PY_FLAVOR} >+MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR} >+PYMYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymysql>=0:databases/py-pymysql@${PY_FLAVOR} >+PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.7:databases/py-psycopg2@${PY_FLAVOR} >+ >+MYSQL_DESC= MySQL/MariaDB support >+PYMYSQL_DESC= MySQL/MariaDB support via pymysql >+ >+ >+post-patch: >+.for __RUN_DEPEND in ${RUN_DEPENDS} >+ @${ECHO} -n "${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}: " >+ @${GREP} -E "^${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)" \ >+ ${WRKSRC}/homeassistant/package_constraints.txt | \ >+ ${SED} -E "s/${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)([.0-9]*)/\2/g" | \ >+ ${TR} -cd '[:print:]' >+ @${ECHO} " -> ${__RUN_DEPEND:C/.*(>|<|==|>=|<=)(.*)[:].*/\2/}" >+ >+ @${REINPLACE_CMD} -E \ >+ -e "s/(^|\")${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)[.0-9]*/\1${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}>=${__RUN_DEPEND:C/.*(>|<|==|>=|<=)(.*)[:].*/\2/}/g" \ >+ ${WRKSRC}/setup.py \ >+ ${WRKSRC}/homeassistant/package_constraints.txt \ >+ ${WRKSRC}/homeassistant/auth/mfa_modules/*.py \ >+ ${WRKSRC}/homeassistant/scripts/*.py \ >+ ${WRKSRC}/homeassistant/components/*/manifest.json >+.endfor >+# Port name did not match python packet name. >+# PyNaCl sqlalchemy >+.for __RUN_DEPEND in jinja2 PyJWT pyyaml >+ @${ECHO} -n "${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}: " >+ @${GREP} -E "^${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)" \ >+ ${WRKSRC}/homeassistant/package_constraints.txt | \ >+ ${SED} -E "s/${__RUN_DEPEND:C/(.*)(>|<|==|>=|<=).*/\1/}(>|<|==|>=|<=)([.0-9]*)/\2/g" | \ >+ ${TR} -cd '[:print:]' >+ @${ECHO} " -> ${__RUN_DEPEND:C/.*(>|<|==|>=|<=)(.*)[:].*/\2/} >=0" >+ >+ @${REINPLACE_CMD} -E \ >+ -e 's/(^|\")${__RUN_DEPEND}(>|<|==|>=|<=)[.0-9]*/\1${__RUN_DEPEND}>=0/g' \ >+ ${WRKSRC}/setup.py \ >+ ${WRKSRC}/homeassistant/package_constraints.txt \ >+ ${WRKSRC}/homeassistant/auth/mfa_modules/*.py \ >+ ${WRKSRC}/homeassistant/scripts/*.py \ >+ ${WRKSRC}/homeassistant/components/*/manifest.json >+.endfor >+ @${REINPLACE_CMD} -E "s/(^|\")pip(>|<|==|>=|<=)([.0-9]*),(>|<|==|>=|<=)([.0-9]*)/\1pip\2\3/" \ >+ ${WRKSRC}/setup.py \ >+ ${WRKSRC}/homeassistant/package_constraints.txt >+ @${FIND} ${WRKSRC} -name '*.bak' -name '*.orig' -delete >+ >+post-stage: >+ @${MKDIR} ${STAGEDIR}/var/db/homeassistant >+ @${ECHO_CMD} "@dir(homeassistant,homeassistant,) /var/db/homeassistant" >> ${TMPPLIST} >+ >+.include <bsd.port.mk> >diff --git a/www/py-homeassistant/distinfo b/www/py-homeassistant/distinfo >new file mode 100644 >index 000000000000..a756d66a392e >--- /dev/null >+++ b/www/py-homeassistant/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1641991609 >+SHA256 (homeassistant-2021.11.5.tar.gz) = d277b402004a69d6fb14031879cd0583cab9285cc3c3537ec2f504ff9c61a0cf >+SIZE (homeassistant-2021.11.5.tar.gz) = 8421142 >diff --git a/www/py-homeassistant/files/homeassistant.in b/www/py-homeassistant/files/homeassistant.in >new file mode 100644 >index 000000000000..b10058b97cca >--- /dev/null >+++ b/www/py-homeassistant/files/homeassistant.in >@@ -0,0 +1,47 @@ >+#!/bin/sh >+# >+# PROVIDE: homeassistant >+# REQUIRE: NETWORKING SYSLOG mysql >+# KEYWORD: shutdown >+# >+# Add the following lines to /etc/rc.conf to enable homeassistant: >+# >+#homeassistant_enable="YES" >+ >+. /etc/rc.subr >+ >+name="homeassistant" >+rcvar="homeassistant_enable" >+ >+load_rc_config $name >+ >+: ${homeassistant_enable:="NO"} >+: ${homeassistant_user:="homeassistant"} >+: ${homeassistant_group:="homeassistant"} >+: ${homeassistant_config_dir:="/var/db/homeassistant"} >+: ${homeassistant_log_file:="/var/log/home-assistant.log"} >+: ${homeassistant_log_days:="7"} >+: ${homeassistant_chdir:="${homeassistant_config_dir}"} >+: ${homeassistant_env:="HOME=\"${homeassistant_config_dir}\" VIRTUAL_ENV=\"${homeassistant_config_dir}/\" PATH=\"${homeassistant_config_dir}/bin/:${PATH}\""} >+ >+ >+pidfile="/var/run/${name}.pid" >+procname="${homeassistant_config_dir}/bin/%%PYTHON_VERSION%%" >+command="%%PYTHON_CMD%%" >+command_args="%%PREFIX%%/bin/hass --daemon --log-no-color --log-file \"${homeassistant_log_file}\" --log-rotate-days \"${homeassistant_log_days}\" --config \"${homeassistant_config_dir}\" --pid-file \"${pidfile}\"" >+ >+start_precmd="homeassistant_start_precmd" >+ >+homeassistant_start_precmd() { >+ install -d -o ${homeassistant_user} -g ${homeassistant_group} -m 0700 "${homeassistant_config_dir}" >+ install -o ${homeassistant_user} -g ${homeassistant_group} -m 0600 /dev/null ${homeassistant_log_file} >+ if [ ! -e "${homeassistant_config_dir}/pyvenv.cfg" ]; then >+ su -m ${homeassistant_user} -c "%%PYTHON_CMD%% -m venv --system-site-packages \"${homeassistant_config_dir}\"" >+ fi >+ # Hack: override command after venv created. >+ command="${procname}" >+ su -m ${homeassistant_user} -c "env ${homeassistant_env} ${command} %%PREFIX%%/bin/hass --config \"${homeassistant_config_dir}\" --script ensure_config" >+ su -m ${homeassistant_user} -c "env ${homeassistant_env} ${command} %%PREFIX%%/bin/hass --config \"${homeassistant_config_dir}\" --script check_config" >+} >+ >+run_rc_command "$1" >diff --git a/www/py-homeassistant/pkg-descr b/www/py-homeassistant/pkg-descr >new file mode 100644 >index 000000000000..6cdc2a8f0358 >--- /dev/null >+++ b/www/py-homeassistant/pkg-descr >@@ -0,0 +1,5 @@ >+Open source home automation that puts local control and privacy first. >+Powered by a worldwide community of tinkerers and DIY enthusiasts. >+Perfect to run on a Raspberry Pi or a local server. >+ >+WWW: https://www.home-assistant.io/ >diff --git a/www/py-homeassistant/pkg-message b/www/py-homeassistant/pkg-message >new file mode 100644 >index 000000000000..c8e863e0f9c2 >--- /dev/null >+++ b/www/py-homeassistant/pkg-message >@@ -0,0 +1,15 @@ >+[ >+{ type: install >+ message: <<EOM >+ >+Installation Type: Home Assistant Core. >+ >+This port uses Virtual Environment and will download and install via pip >+all required python packets on first service run or on some actions in >+WebUI. >+ >+$ service homeassistant forcerestart >+--- The Home Assistant can now be reached http://localhost:8123/ >+EOM >+} >+]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256885
:
226109
|
226148
|
230957
|
236352
|
236955
|
237209
|
237210
|
251160