git: a683636597d3 - main - net-mgmt/py-pypowerwall: Update to 0.10.8
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jul 2024 16:26:33 UTC
The branch main has been updated by zi: URL: https://cgit.FreeBSD.org/ports/commit/?id=a683636597d314b9db9025f8c780450c9e510d8c commit a683636597d314b9db9025f8c780450c9e510d8c Author: Ryan Steinmetz <zi@FreeBSD.org> AuthorDate: 2024-07-21 16:26:25 +0000 Commit: Ryan Steinmetz <zi@FreeBSD.org> CommitDate: 2024-07-21 16:26:25 +0000 net-mgmt/py-pypowerwall: Update to 0.10.8 --- net-mgmt/py-pypowerwall/Makefile | 11 ++++++++--- net-mgmt/py-pypowerwall/distinfo | 6 +++--- net-mgmt/py-pypowerwall/files/pypowerwall_proxy.in | 5 ++++- net-mgmt/py-pypowerwall/pkg-plist | 4 ++++ 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/net-mgmt/py-pypowerwall/Makefile b/net-mgmt/py-pypowerwall/Makefile index a78a6333ee0c..e6630c2a3836 100644 --- a/net-mgmt/py-pypowerwall/Makefile +++ b/net-mgmt/py-pypowerwall/Makefile @@ -1,5 +1,5 @@ PORTNAME= pypowerwall -PORTVERSION= 0.7.12 +PORTVERSION= 0.10.8 DISTVERSIONPREFIX= v CATEGORIES= net-mgmt python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -29,8 +29,13 @@ GH_ACCOUNT= jasonacox # disable cloud support for the moment (additional deps needed--teslapy) post-patch: @${REINPLACE_CMD} -E -e '/teslapy/d' ${WRKSRC}/setup.py - @${RM} ${WRKSRC}/pypowerwall/cloud.py - @${TOUCH} ${WRKSRC}/pypowerwall/cloud.py + @${REINPLACE_CMD} -E \ + -e '/PyPowerwallCloud/d' \ + -e '/pypowerwall_cloud/d' \ + ${WRKSRC}/pypowerwall/__main__.py \ + ${WRKSRC}/pypowerwall/__init__.py + @${RM} ${WRKSRC}/pypowerwall/cloud/pypowerwall_cloud.py + @${TOUCH} ${WRKSRC}/pypowerwall/cloud/pypowerwall_cloud.py post-install: @${MKDIR} ${STAGEDIR}${DATADIR} diff --git a/net-mgmt/py-pypowerwall/distinfo b/net-mgmt/py-pypowerwall/distinfo index 3e47647f65aa..97217f9bc7ae 100644 --- a/net-mgmt/py-pypowerwall/distinfo +++ b/net-mgmt/py-pypowerwall/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1711718902 -SHA256 (jasonacox-pypowerwall-v0.7.12_GH0.tar.gz) = aafa12ef1ec1e889a01fc25812e3c6c907ef34c6a743ec0c99eb81ea22c50d27 -SIZE (jasonacox-pypowerwall-v0.7.12_GH0.tar.gz) = 2451373 +TIMESTAMP = 1721576944 +SHA256 (jasonacox-pypowerwall-v0.10.8_GH0.tar.gz) = 008971d79f59d1e63598989dfdde6072f95537d03322b061b669b67aa6d45e45 +SIZE (jasonacox-pypowerwall-v0.10.8_GH0.tar.gz) = 2531870 diff --git a/net-mgmt/py-pypowerwall/files/pypowerwall_proxy.in b/net-mgmt/py-pypowerwall/files/pypowerwall_proxy.in index 63a244323f8f..1f4b93b715bc 100644 --- a/net-mgmt/py-pypowerwall/files/pypowerwall_proxy.in +++ b/net-mgmt/py-pypowerwall/files/pypowerwall_proxy.in @@ -23,6 +23,8 @@ # Default is "". # pypowerwall_proxy_timezone (string): Set timezone that pypowerwall_proxy will use # Default is "America/New_York". +# pypowerwall_proxy_cachefile (string): Set path to cachefile hat pypowerwall_proxy will use +# Default is "/var/tmp/.pypowerwall_cache". . /etc/rc.subr @@ -40,11 +42,12 @@ load_rc_config $name : ${pypowerwall_proxy_timezone:="America/New_York"} : ${pypowerwall_proxy_password:=""} : ${pypowerwall_proxy_port:="8675"} +: ${pypowerwall_proxy_cachefile:="/var/tmp/.pypowerwall_cache"} pidfile=/var/run/pypowerwall_proxy.pid command="/usr/sbin/daemon" pypowerwall_proxy_command="%%DATADIR%%/server.py" -command_args="-u ${pypowerwall_proxy_username} -rP ${pidfile} -S -t ${name} -T ${name} /usr/bin/env PW_EMAIL=${pypowerwall_proxy_email} PW_PASSWORD=${pypowerwall_proxy_password} PW_TIMEZONE=${pypowerwall_proxy_timezone} PW_HOST=${pypowerwall_proxy_host} PW_BIND_ADDRESS=${pypowerwall_proxy_listen} PW_PORT=${pypowerwall_proxy_port} ${pypowerwall_proxy_command}" +command_args="-u ${pypowerwall_proxy_username} -rP ${pidfile} -S -t ${name} -T ${name} /usr/bin/env PW_EMAIL=${pypowerwall_proxy_email} PW_PASSWORD=${pypowerwall_proxy_password} PW_TIMEZONE=${pypowerwall_proxy_timezone} PW_HOST=${pypowerwall_proxy_host} PW_BIND_ADDRESS=${pypowerwall_proxy_listen} PW_PORT=${pypowerwall_proxy_port} PW_CACHE_FILE=${pypowerwall_proxy_cachefile} ${pypowerwall_proxy_command}" load_rc_config $name run_rc_command "$1" diff --git a/net-mgmt/py-pypowerwall/pkg-plist b/net-mgmt/py-pypowerwall/pkg-plist index 5b3b395032c7..6d67fbd36fe7 100644 --- a/net-mgmt/py-pypowerwall/pkg-plist +++ b/net-mgmt/py-pypowerwall/pkg-plist @@ -1,3 +1,7 @@ +@comment %%DATADIR%%/beta.txt +@comment %%DATADIR%%/requirements.txt +@comment %%DATADIR%%/upload-beta.sh +@comment %%DATADIR%%/Dockerfile.beta %%DATADIR%%/HELP.md %%DATADIR%%/README.md %%DATADIR%%/RELEASE.md