From nobody Fri Dec 01 14:11:55 2023 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 4ShZkM6TfRz52fxm; Fri, 1 Dec 2023 14:11:55 +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 4ShZkM5gdWz3K7S; Fri, 1 Dec 2023 14:11:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701439915; 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=RNc7q6iEz/WVvRScdQL6KX/Wus222MTfyu5DqfTtnWE=; b=xN2Twp2kzXIP9dRuuLA2E5qKToEzmyQxmc/df9GjzdgRcabLjgnB5GFECx+8KbmGJvj/XV hzYOZPl+R8ri58vXwdxvsd8/oSkvJgKhGcVR7yRnmHrrXqacydrpEfyV1coL7G9RR+TU8p +NjUSKPbVQ/n6Xb0KDCupn49KYvHpp43HodNr3Xz2DH48SE52tZEMlFkTulXwNGCn+f8z9 OEBDCpDwZwuKDOXF8kcayBOEwIMWjdNyifdut3uGnvmd1zhvkQmzjxEVUVon2Jx0kT/Afc bEJZxDktsKazvw2p8oTuA1IWRSXbfRz614V5UQ0O60V4NYwjPCaTikT4ipHvxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701439915; 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=RNc7q6iEz/WVvRScdQL6KX/Wus222MTfyu5DqfTtnWE=; b=reqSNDQdynoFDkxTT4mzpA3LE44+TeG37KdCWlLfBflf8jI/r+56hylAv691pKimmLf5Rw 0JnAP5GB0HUP3XKQoUtqSRwloF2zAACs7phKaXneZwQdhUpIOdI67jUTyrWAitBPKZSoQ6 0JTHANwsft6e6l6fGVZR1kmIV3beq+tXkLlg8XDfkV0xAU5+NQwYFykRdhAffpz82Eo8Q9 VUVc09IpL8RfTJ27eiCGMqceVM9ZJZhoxZUpKCG/CpjdgkgN9FJhz72/h+IqKEFND2adap Ny64hKAnhZnQXHhbCa4mnFDeALHsRsdNnOm0gpEy2AaOTeahRol7Z7Ddeh04AQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701439915; a=rsa-sha256; cv=none; b=ILSEK9tSfin+l0GaUiwuVU+tDC/XYFxztdtWxnbNJl9Xycf4dEYVVl8bFWYinouItBjCEv 0KOWDv2Qg6vsG1cGXYS1PSHenvKAZuTEiEutw0Wycy5gWFvtT1Mr3w+NN8GfxcVZwt53aG +ggXDBaI/dSdxzBtDf5eyB3Vt/QxaWhoJ00iwP0xk1sVXY9WJhwcRpK5yErE9SrInOan3N XAJh5aR8DHKBMj9TinSSmVxJjvxSFn5CJF7kQuicHm/uyK7eg3dNq509I6rbLpQCc9mlx2 q+skUUs7BgkOv5oWT7T401G30UGNmF3TwgaswyLR/5VybM+esvV8zzwY7rvJsg== 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 4ShZkM4kMqzcVw; Fri, 1 Dec 2023 14:11:55 +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 3B1EBtHK025082; Fri, 1 Dec 2023 14:11:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B1EBtne025079; Fri, 1 Dec 2023 14:11:55 GMT (envelope-from git) Date: Fri, 1 Dec 2023 14:11:55 GMT Message-Id: <202312011411.3B1EBtne025079@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: 3dc4863f379f - main - x11/gtklock: 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: 3dc4863f379f5bb2a2d0b5ec1d5dce208e08b965 Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=3dc4863f379f5bb2a2d0b5ec1d5dce208e08b965 commit 3dc4863f379f5bb2a2d0b5ec1d5dce208e08b965 Author: Jan Beich AuthorDate: 2023-05-06 13:44:22 +0000 Commit: Jan Beich CommitDate: 2023-12-01 14:11:25 +0000 x11/gtklock: add new port gtklock is a lockscreen based on gtkgreet. It uses the wlr-layer-shell and wlr-input-inhibitor Wayland protocols. Works on sway and other wlroots-based compositors. https://github.com/jovanlanik/gtklock --- x11/Makefile | 1 + x11/gtklock/Makefile | 31 +++++++++++++++++++++++++++++++ x11/gtklock/distinfo | 3 +++ x11/gtklock/files/patch-pam_gtklock | 11 +++++++++++ x11/gtklock/pkg-descr | 3 +++ 5 files changed, 49 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 4fb52d5784ef..8e22cfb1a92c 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -108,6 +108,7 @@ SUBDIR += gtk-app-menu SUBDIR += gtk-theme-switch2 SUBDIR += gtkchtheme + SUBDIR += gtklock SUBDIR += gtkterm2 SUBDIR += guake SUBDIR += gxkb diff --git a/x11/gtklock/Makefile b/x11/gtklock/Makefile new file mode 100644 index 000000000000..83c3415e3653 --- /dev/null +++ b/x11/gtklock/Makefile @@ -0,0 +1,31 @@ +PORTNAME= gtklock +DISTVERSIONPREFIX= v +DISTVERSION= 2.1.0 +CATEGORIES= x11 wayland + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= GTK-based lockscreen for Wayland +WWW= https://github.com/jovanlanik/gtklock + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= scdoc:textproc/scdoc +LIB_DEPENDS= libwayland-client.so:graphics/wayland \ + libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell +RUN_DEPENDS= unix-selfauth-helper>0:security/unix-selfauth-helper + +USES= compiler:c11 gmake gnome pkgconfig +USE_GITHUB= yes +USE_GNOME= gtk30 +GH_ACCOUNT= jovanlanik +MAKEFILE= makefile +LDFLAGS+= -Wl,--as-needed # gtk30 deps +PLIST_FILES= bin/${PORTNAME} \ + etc/pam.d/${PORTNAME} \ + share/man/man1/${PORTNAME}.1.gz + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/x11/gtklock/distinfo b/x11/gtklock/distinfo new file mode 100644 index 000000000000..352e5ec1be93 --- /dev/null +++ b/x11/gtklock/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1683380662 +SHA256 (jovanlanik-gtklock-v2.1.0_GH0.tar.gz) = 47cc09ab773e90e3a28240faaabb8d9ac4e36f5234a2b5c3a956039783365f43 +SIZE (jovanlanik-gtklock-v2.1.0_GH0.tar.gz) = 56550 diff --git a/x11/gtklock/files/patch-pam_gtklock b/x11/gtklock/files/patch-pam_gtklock new file mode 100644 index 000000000000..b3320bb6725c --- /dev/null +++ b/x11/gtklock/files/patch-pam_gtklock @@ -0,0 +1,11 @@ +"login" has "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. + +--- pam/gtklock.orig 2023-05-06 13:44:22 UTC ++++ pam/gtklock +@@ -1 +1 @@ +-auth include login ++auth include unix-selfauth diff --git a/x11/gtklock/pkg-descr b/x11/gtklock/pkg-descr new file mode 100644 index 000000000000..6090480799b7 --- /dev/null +++ b/x11/gtklock/pkg-descr @@ -0,0 +1,3 @@ +gtklock is a lockscreen based on gtkgreet. It uses the wlr-layer-shell +and wlr-input-inhibitor Wayland protocols. Works on sway and other +wlroots-based compositors.