From nobody Tue Dec 5 02:19:27 2023 X-Original-To: dev-commits-ports-all@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 4SkkkR5hYQz5377Z; Tue, 5 Dec 2023 02:19:27 +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 4SkkkR4r1gz3Kht; Tue, 5 Dec 2023 02:19:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701742767; 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=LXkMtRMF/t45DJj75H01WjCyShON66l+M4R/Mesp99A=; b=hPk2mc5eYWyehGJpLoEeF1YjQSTdLxN8hNHZbMu5SPaVJJljvMzj0rB9bN8k2DDaqwR8pr aYijoVdiagnfB2Q4QeSTHPI922wjvYMCUZh9BDy7ON4p9HmyxG3GAKqwbIwldCh2UpVXru jp7EVdKs/kHj80EB+2lhJgiVprjm2skm0IYHpTHBDA0LzDWBeH6u7WCA16W7AyO9XTUCmH sJv28tTooXqUbtgvnjwcewoAf+zcmuM8RmxoZq8ilYyVNI3U1b+zPpS6FpexHadO8nRwXb HWvReSGQTzwNoQBuCDhtT2SEMYHrvaZrXXOikW4MIAQFkvboJ8wSOtmDHSnliQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701742767; 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=LXkMtRMF/t45DJj75H01WjCyShON66l+M4R/Mesp99A=; b=lymfpBfmFZLduxSkKvot+Z+MrmsA21YL7qUcSA7U7vMsd49kK7GNCw9+fx9B4XRiyE5mjd cOQYvdTYAnmI5UGyybwZ27Yn1tBjB/POWiP+0sMKuOzZTCLhIgCYJpijLIPEgCgyV3GOwy elHJwOsZNfim7oowhOaNhCgrEkeDpWGRoLX4gzMneE4WWkBiYcroP4jCr82/TGbpMWkLg2 jDs1Az+FDdb3ZateILr8mnEkmziNg86GBlg+O1UrPsNp2fqLUifbrzyk0ZKNR4qEEfjsMW GU5n2O2VhBP9hzr5Ocsh42ZHu4QL/CYNOz8jbw0G3+84AJ41fZNv910+BOKPPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701742767; a=rsa-sha256; cv=none; b=eVp3rSpNy81R5+mA13/LG52u42vX6BIxHHCvueyV90Sl/bQmoXtRNa2umydA8/i7CePOhd GCZDvAjc8OyDQqORmnna4wTR90O3n7jR5PuYvosnTdzmODoe410ufnFEvDQv2I3/5gwf14 q8SQSlC/k/ivb2zOu9TBYSNnBrXYGfj8HRc0SH6yMNkzSrUNCegyE2jnf3ebWlZvPyl7vp qYaCjsvuoXuIDQqJw5wVdKjTJXsrmwwzL1XC4RyMA9p1B80dkyqXjk0jG9h48o12sE/5uF S7cQQRxsj6R2xhxp477K+9J47w8S/kRd++GiWduGxrMIQNmvTaNGnwJn0Jwh6A== 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 4SkkkR3TH4zqxm; Tue, 5 Dec 2023 02:19:27 +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 3B52JRdq082489; Tue, 5 Dec 2023 02:19:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B52JRNJ082486; Tue, 5 Dec 2023 02:19:27 GMT (envelope-from git) Date: Tue, 5 Dec 2023 02:19:27 GMT Message-Id: <202312050219.3B52JRNJ082486@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: 254231223bab - main - x11/swaylock-plugin: add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 254231223bab2e21505ab5ef5a122694de2a792f Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=254231223bab2e21505ab5ef5a122694de2a792f commit 254231223bab2e21505ab5ef5a122694de2a792f Author: Jan Beich AuthorDate: 2023-11-28 02:58:28 +0000 Commit: Jan Beich CommitDate: 2023-12-05 02:19:02 +0000 x11/swaylock-plugin: add new port This is a fork of swaylock, a screen locking utility for Wayland compositors. With swaylock-plugin, you can for your lockscreen background display the animated output from any wallpaper program that implements the wlr-layer-shell-unstable-v1 protocol. All you have to do is run "swaylock-plugin --command 'my-wallpaper ...'", where "my-wallpaper ..." is replaced by your desired program. Examples: * swaybg, which displays regular background images * mpvpaper, which lets you play videos * shaderbg, renders OpenGL shaders * rwalkbg, a very slow animation * wscreensaver, an experiment in porting a few xscreensaver hacks to Wayland https://github.com/mstoeckl/swaylock-plugin --- x11/Makefile | 1 + x11/swaylock-plugin/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ x11/swaylock-plugin/distinfo | 3 +++ x11/swaylock-plugin/pkg-descr | 12 ++++++++++++ 4 files changed, 55 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 8dde5373f0e6..78b8550914d3 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -410,6 +410,7 @@ SUBDIR += swayimg SUBDIR += swaylock SUBDIR += swaylock-effects + SUBDIR += swaylock-plugin SUBDIR += swaync SUBDIR += swayr SUBDIR += swayrbar diff --git a/x11/swaylock-plugin/Makefile b/x11/swaylock-plugin/Makefile new file mode 100644 index 000000000000..6e5a15724e43 --- /dev/null +++ b/x11/swaylock-plugin/Makefile @@ -0,0 +1,39 @@ +DISTVERSIONPREFIX= # empty +DISTVERSION= s20231127 +DISTVERSIONSUFFIX= -0-g3b8da48 +PORTREVISION= 0 +PKGNAMESUFFIX= -plugin + +COMMENT= Screen locker for Wayland with background plugin support +WWW= https://github.com/mstoeckl/swaylock-plugin + +MASTERDIR= ${.CURDIR}/../swaylock +DESCR= ${.CURDIR}/pkg-descr +DISTINFO_FILE= ${.CURDIR}/distinfo + +GH_ACCOUNT= mstoeckl +GH_PROJECT= ${PORTNAME}${PKGNAMESUFFIX} + +pre-patch: +# Compat to apply patch-pam_swaylock "as is" + ${MV} ${WRKSRC}/pam/${PKGBASE} ${WRKSRC}/pam/${PORTNAME} + +post-patch: slave-post-patch +slave-post-patch: +# Compat to apply patch-pam_swaylock "as is" + -@${MV} ${WRKSRC}/pam/${PORTNAME}.orig ${WRKSRC}/pam/${PKGBASE}.orig + @${MV} ${WRKSRC}/pam/${PORTNAME} ${WRKSRC}/pam/${PKGBASE} +# Avoid subdirs to match regular swaylock + @${REINPLACE_CMD} "s,\(rename: \['\)[^/]*/,\1," \ + ${WRKSRC}/completions/meson.build +# Respect renamed PAM config to unlock without regular swaylock installed + @${REINPLACE_CMD} '/pam_start/s/${PORTNAME}"/${PKGBASE}"/' \ + ${WRKSRC}/pam.c +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275328 + @${REINPLACE_CMD} -e 's/_POSIX_C_SOURCE 200809L/_XOPEN_SOURCE 700/' \ + ${WRKSRC}/main.c + +post-install: + @${REINPLACE_CMD} '/licenses/!s/${PORTNAME}/${PKGBASE}/' ${TMPPLIST} + +.include "${MASTERDIR}/Makefile" diff --git a/x11/swaylock-plugin/distinfo b/x11/swaylock-plugin/distinfo new file mode 100644 index 000000000000..eeaef2edc72f --- /dev/null +++ b/x11/swaylock-plugin/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1701140308 +SHA256 (mstoeckl-swaylock-plugin-s20231127-0-g3b8da48_GH0.tar.gz) = 4a70006438cbc2e8ebf86913f11b3167061acb5319d7fadadf29697458a7f39d +SIZE (mstoeckl-swaylock-plugin-s20231127-0-g3b8da48_GH0.tar.gz) = 55127 diff --git a/x11/swaylock-plugin/pkg-descr b/x11/swaylock-plugin/pkg-descr new file mode 100644 index 000000000000..6a11e447a8e4 --- /dev/null +++ b/x11/swaylock-plugin/pkg-descr @@ -0,0 +1,12 @@ +This is a fork of swaylock, a screen locking utility for Wayland +compositors. With swaylock-plugin, you can for your lockscreen +background display the animated output from any wallpaper program that +implements the wlr-layer-shell-unstable-v1 protocol. All you have to +do is run "swaylock-plugin --command 'my-wallpaper ...'", where +"my-wallpaper ..." is replaced by your desired program. Examples: + +* swaybg, which displays regular background images +* mpvpaper, which lets you play videos +* shaderbg, renders OpenGL shaders +* rwalkbg, a very slow animation +* wscreensaver, an experiment in porting a few xscreensaver hacks to Wayland