deskutils/keep-presence: New port: Prevent system from becoming idle

This commit is contained in:
Yuri Victorovich 2023-01-31 18:42:03 -08:00
parent 8a7fe23132
commit ef9d19bab6
4 changed files with 41 additions and 0 deletions

View file

@ -140,6 +140,7 @@
SUBDIR += kdepim-addons
SUBDIR += kdepim-runtime
SUBDIR += keditbookmarks
SUBDIR += keep-presence
SUBDIR += kfind
SUBDIR += kmail
SUBDIR += kmail-account-wizard

View file

@ -0,0 +1,33 @@
PORTNAME= keep-presence
DISTVERSION= 1.0.6 # repo not tagged
CATEGORIES= deskutils
MAINTAINER= yuri@FreeBSD.org
COMMENT= Prevent system from becoming idle
WWW= https://github.com/moses-palmer/pynput
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/../LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pynput>0:x11/py-pynput@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= carrot69
GH_TAGNAME= a6cf974
WRKSRC_SUBDIR= src
NO_ARCH= yes
POST_PLIST= fix-plist
post-install:
@${MV} ${STAGEDIR}${PREFIX}/bin/keep-presence.py ${STAGEDIR}${PREFIX}/bin/keep-presence
fix-plist:
@${REINPLACE_CMD} -e "s|bin/keep-presence\.py|bin/keep-presence|" ${TMPPLIST}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1675218791
SHA256 (carrot69-keep-presence-1.0.6-a6cf974_GH0.tar.gz) = 48af305cdfc9964cf87a215efea4d81a11182c0bb73c9b72280f10941e5fd807
SIZE (carrot69-keep-presence-1.0.6-a6cf974_GH0.tar.gz) = 2546740

View file

@ -0,0 +1,4 @@
keep-presence is a program moves the mouse or press a key when it detects that
you are away.
It won't do anything if you are using your computer.
Useful to trick your machine to think you are still working with it.