mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
net-mgmt/py-pypowerwall: Update to 0.10.8
This commit is contained in:
parent
863d445300
commit
a683636597
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user