From nobody Fri Feb 23 04:13:10 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TgxSk5SW2z5BdVS; Fri, 23 Feb 2024 04:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TgxSk4dTYz4mlf; Fri, 23 Feb 2024 04:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708661590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kum60V27F3GVSUn3jdeI6JdaTqvhUst7CX4u6N3ntrQ=; b=kEXnIPJrotCy3+ADCa/IhzbpBF6M8wM9Zw2MphR9pTU5+U4L6mhlLmVCKN3OUxC/vaR8yB wMU0nhg1LJIWbF5ozR1dDybon0CZpKn/bl9djO7BpruXL0kptlYGizBj7vRjCJ9epUeUTh CuIteX6yO++JxM/MCsp/wCaVJQgOn+jRNBfJu2XY918q/TIboxanEdQ0sdo6/Qw5hwOfIO wsX7VNZaLigoP+Rq5kMc7fwb5q24AcH7DHwEjPWAtDRWTEGNsybs1hYhONpLKaBkGj3dl8 rDUMKyvUmeXpe1gOrgr+YtlAZdZiuM3yK0AO++dPeKblwqnT6SFiNG3YLYHOqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708661590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kum60V27F3GVSUn3jdeI6JdaTqvhUst7CX4u6N3ntrQ=; b=a58rKKBVmYbHhXkfPl0SZ7lEq6gNCDTlp0r5uPvmI477cBOdgeEkg89VfFi9rJpcfrRVBN nv7tYzRWUX5rbU9i6ISJMlYywr+xHY4eoxdU3tS5d/ZYok9w2CAtI2tnR0J/QX6cYdky4Q KtiDxUpNdaVxZTBTLvBfkjFyHeV4A/NUj8jNDbj93RuutOMHTAyp8imm+WBBAJ3Npe0tiu f6YPD59+PMKzDNKZlTH4o+vLe28+gerpL2NeSaQ+PV6y82YY3jBLDwveWIX2XTfnNjnzEz 8nDDZC7UvvHsXfCL56MaJ3KhCj0Z6swfTGf8uJiHHimMWK4YEL+99IdCPN9+3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708661590; a=rsa-sha256; cv=none; b=AP5Dk5cPLiwyjKekWxSnzfFjrL8VjXXcf9zIPf7SUHtzwBJEal7UIBSALzNJHEb+fD6NvT Uxtkk91ZOY1Noya2/ai+HmyfOG2IBDX8dKtQ7OslQGd14TwgLoKRHhYS1FR/syXnxC5rMA I7yP2/SrZCo+rRpk8VYj4cYqjGHoThewRUgPIm3jEvJmxRgasqndYN4i0HIo2OI+7oGilS ABkEfsUkKWTrzxGHjVVW1ow3PvwWS2vpIkGzYnvcotRXDpHfkb5xEtrMPu5W3Ky7gXtJiQ AcKezLbf4p/wiLS5EruKbqSHL2fKueToUTpPUa4ygFirFdomV9zz75n+BSqk1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TgxSk3hT5z11Rb; Fri, 23 Feb 2024 04:13:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41N4DApK018438; Fri, 23 Feb 2024 04:13:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41N4DAZK018435; Fri, 23 Feb 2024 04:13:10 GMT (envelope-from git) Date: Fri, 23 Feb 2024 04:13:10 GMT Message-Id: <202402230413.41N4DAZK018435@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 8a4a4d26acaf - main - x11/hypridle: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8a4a4d26acaf199d48bd2164ddeda103028b4c1d Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a4a4d26acaf199d48bd2164ddeda103028b4c1d commit 8a4a4d26acaf199d48bd2164ddeda103028b4c1d Author: Jan Beich AuthorDate: 2024-02-17 23:40:04 +0000 Commit: Jan Beich CommitDate: 2024-02-23 04:12:13 +0000 x11/hypridle: add new port Hyprland's idle daemon. Requires logind or consolekit2 session. Features: - based on the ext-idle-notify-v1 wayland protocol - support for dbus' loginctl commands (lock / unlock / before-sleep) - support for dbus' inhibit (used by e.g. firefox / steam) https://github.com/hyprwm/hypridle --- x11/Makefile | 1 + x11/hypridle/Makefile | 37 +++++++++++++++++++++++++++++++++++++ x11/hypridle/distinfo | 7 +++++++ x11/hypridle/pkg-descr | 6 ++++++ 4 files changed, 51 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index c347b37c2617..2318ff802b6f 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -122,6 +122,7 @@ SUBDIR += hs-xmobar SUBDIR += hsetroot SUBDIR += hybrid-bar + SUBDIR += hypridle SUBDIR += hyprpaper SUBDIR += hyprpicker SUBDIR += i3bar-river diff --git a/x11/hypridle/Makefile b/x11/hypridle/Makefile new file mode 100644 index 000000000000..5c72eef434f2 --- /dev/null +++ b/x11/hypridle/Makefile @@ -0,0 +1,37 @@ +PORTNAME= hypridle +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.0 +CATEGORIES= x11 wayland + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= 56f334cbe867.patch:-p1 # https://github.com/hyprwm/hypridle/issues/7 +PATCHFILES+= ea8588fefbe5.patch:-p1 # https://github.com/hyprwm/hypridle/pull/19 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Hyprland's idle daemon #' +WWW= https://github.com/hyprwm/hypridle + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libhyprlang.so:devel/hyprlang \ + libsdbus-c++.so:devel/sdbus-cpp \ + libwayland-client.so:graphics/wayland + +USES= compiler:c++11-lib cmake pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= hyprwm +LDFLAGS+= -Wl,--as-needed # sdbus-cpp deps +PLIST_FILES= bin/${PORTNAME} + +post-patch: +# Temporarily use ConsoleKit2 like sysutils/gnome-settings-daemon + @${REINPLACE_CMD} -e 's,/login1,/ConsoleKit/Manager,' \ + -e 's,login1,ConsoleKit,' \ + -e 's,logind,consolekit2,' \ + -e 's,GetSession,&ByPID,' \ + -e 's,"auto",uint32_t{getpid()},' \ + ${WRKSRC}/src/core/Hypridle.cpp + +.include diff --git a/x11/hypridle/distinfo b/x11/hypridle/distinfo new file mode 100644 index 000000000000..37bf650695e0 --- /dev/null +++ b/x11/hypridle/distinfo @@ -0,0 +1,7 @@ +TIMESTAMP = 1708213204 +SHA256 (hyprwm-hypridle-v0.1.0_GH0.tar.gz) = 142cceacd91bf7f0bf6ae0e4e298f7375a5c6d38216756062e415dbf93f3b317 +SIZE (hyprwm-hypridle-v0.1.0_GH0.tar.gz) = 11696 +SHA256 (56f334cbe867.patch) = 17179dc3f1896f46a991e3fd8a77df2b6ef6dbd2f23e06eedd2b7a73c163494a +SIZE (56f334cbe867.patch) = 682 +SHA256 (ea8588fefbe5.patch) = e85782d0036814a303c9dfb8e0a84eef832479a2903c7e505750ae0cdb9c727f +SIZE (ea8588fefbe5.patch) = 1167 diff --git a/x11/hypridle/pkg-descr b/x11/hypridle/pkg-descr new file mode 100644 index 000000000000..f792a6b31c54 --- /dev/null +++ b/x11/hypridle/pkg-descr @@ -0,0 +1,6 @@ +Hyprland's idle daemon. Requires logind or consolekit2 session. + +Features: + - based on the ext-idle-notify-v1 wayland protocol + - support for dbus' loginctl commands (lock / unlock / before-sleep) + - support for dbus' inhibit (used by e.g. firefox / steam)