Skip to content

Commit

Permalink
x11/hyprlock: update to 0.3.0
Browse files Browse the repository at this point in the history
Changes:	https://github.com/hyprwm/hyprlock/releases/tag/v0.3.0
Reported by:	GitHub (watch releases)
  • Loading branch information
jbeich committed Apr 22, 2024
1 parent 77d0e67 commit 2e44020
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
5 changes: 3 additions & 2 deletions x11/hyprlock/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
PORTNAME= hyprlock
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0
DISTVERSION= 0.3.0
CATEGORIES= x11 wayland

PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= e040c56ad294.patch:-p1 # https://github.com/hyprwm/hyprlock/pull/195
PATCHFILES+= d9a6229434fb.patch:-p1 # -G Ninja
PATCHFILES+= 8658386f212f.patch:-p1 # https://github.com/hyprwm/hyprlock/issues/289

MAINTAINER= jbeich@FreeBSD.org
COMMENT= Hyprland's GPU-accelerated screen locking utility #'
Expand Down
12 changes: 7 additions & 5 deletions x11/hyprlock/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
TIMESTAMP = 1710343595
SHA256 (hyprwm-hyprlock-v0.2.0_GH0.tar.gz) = 3d56220ac03016163e196bc2c08e5b16e83583fa9446ad52e32ddbb56c293994
SIZE (hyprwm-hyprlock-v0.2.0_GH0.tar.gz) = 56798
TIMESTAMP = 1712587141
SHA256 (hyprwm-hyprlock-v0.3.0_GH0.tar.gz) = 5e84ac3223ea340bb3d39c22db4edefbb8364da8c3b6b3d0da1dfa45d8cc945f
SIZE (hyprwm-hyprlock-v0.3.0_GH0.tar.gz) = 61599
SHA256 (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = b5a9ff1793b1e2d388a3819bf35797002b1d2e40bb35a10c65605e0ea1435271
SIZE (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = 179289803
SHA256 (e040c56ad294.patch) = f5d3ceee74733563306c6e3621ba773efe65d2015297bbedfa88e952e8171fb5
SIZE (e040c56ad294.patch) = 1720
SHA256 (d9a6229434fb.patch) = c50bfa1b1d69d95a6fe0ae9ab9c023ee220f8b9b535a54f1271782e33b198941
SIZE (d9a6229434fb.patch) = 852
SHA256 (8658386f212f.patch) = 36d0de05ba6897dc77ad2ad86ad7ffd0aae6d665dc588b931e0f86243818906d
SIZE (8658386f212f.patch) = 984
15 changes: 13 additions & 2 deletions x11/hyprlock/files/patch-pam_hyprlock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"login" has "auth sufficient pam_self.so" but a screen locker is
supposed to ask for password regardless.
"login" and "su" have "auth sufficient pam_self.so" but a screen
locker is supposed to ask for password regardless.

pam_unix(8) requires root priveleges to access master.passwd(5),
so try authenticating via setuid helper first.
Expand All @@ -14,3 +14,14 @@ so try authenticating via setuid helper first.
-auth include login
+auth include unix-selfauth

--- src/core/Password.cpp.orig 2024-04-08 14:39:01 UTC
+++ src/core/Password.cpp
@@ -70,7 +70,7 @@ std::shared_ptr<CPassword::SVerificationResult> CPassw
return true;
};

- result->realized = auth("hyprlock") || auth("su") || true;
+ result->realized = auth("hyprlock") || true;
g_pHyprlock->addTimer(std::chrono::milliseconds(1), passwordCheckTimerCallback, nullptr);
}).detach();

0 comments on commit 2e44020

Please sign in to comment.