diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-02-01 02:42:03 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-02-01 02:42:57 +0000 |
commit | ef9d19bab65c40af52361a8e55a8b0fe69904904 (patch) | |
tree | 46e91b3bd97ca156252814454f5de9cc5f723ff2 | |
parent | 8a7fe231329504803c7068da657f659ce6db6680 (diff) | |
download | ports-ef9d19bab65c40af52361a8e55a8b0fe69904904.tar.gz ports-ef9d19bab65c40af52361a8e55a8b0fe69904904.zip |
deskutils/keep-presence: New port: Prevent system from becoming idle
-rw-r--r-- | deskutils/Makefile | 1 | ||||
-rw-r--r-- | deskutils/keep-presence/Makefile | 33 | ||||
-rw-r--r-- | deskutils/keep-presence/distinfo | 3 | ||||
-rw-r--r-- | deskutils/keep-presence/pkg-descr | 4 |
4 files changed, 41 insertions, 0 deletions
diff --git a/deskutils/Makefile b/deskutils/Makefile index 6e55b2dc5cd0..613137f614a5 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -140,6 +140,7 @@ SUBDIR += kdepim-addons SUBDIR += kdepim-runtime SUBDIR += keditbookmarks + SUBDIR += keep-presence SUBDIR += kfind SUBDIR += kmail SUBDIR += kmail-account-wizard diff --git a/deskutils/keep-presence/Makefile b/deskutils/keep-presence/Makefile new file mode 100644 index 000000000000..4f90cb3ca3cf --- /dev/null +++ b/deskutils/keep-presence/Makefile @@ -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> diff --git a/deskutils/keep-presence/distinfo b/deskutils/keep-presence/distinfo new file mode 100644 index 000000000000..f92750dc15b8 --- /dev/null +++ b/deskutils/keep-presence/distinfo @@ -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 diff --git a/deskutils/keep-presence/pkg-descr b/deskutils/keep-presence/pkg-descr new file mode 100644 index 000000000000..12230e021175 --- /dev/null +++ b/deskutils/keep-presence/pkg-descr @@ -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. |