From nobody Thu Jan 04 12:13:02 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 4T5QTW153Tz56Fyd; Thu, 4 Jan 2024 12:13:03 +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 4T5QTW0YfCz56Jd; Thu, 4 Jan 2024 12:13:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704370383; 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=dyZMDU3KFrJfyQOHXXXgLxtRzQdpW+p5IP5av3PzE1s=; b=DakfTKXFjG4efa+2mcRGc/Tvxln00hGzwP2czqwLNFLkgA/xl0Qrx7rv2NDbf7F1kbA5Ak QhaDP9QMFaHA7GStPXfWcYPCwp+9Jotvl1RNIt8lpc11AtbUzyPhMjDBQnnTSL43eJXl3E kEqulg7jVa12aO9qO03sLLvadihEBFBdRzjVSNC20Vbq9Lwt14e8JEs4JDGU4IUJfnthC+ DT79Wkz3gj+nPTE0ncSo9cRtQ3BRugiKJoVSFAayqjWwabKSg8P9ao3OMd2BMlyUcO8k2K k4njpmR/nYfPEtQ2fAr1xg1YW7s8O2q3kFFo0Cr4MvhWLM+8zc9dDIJKgR8oFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704370383; 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=dyZMDU3KFrJfyQOHXXXgLxtRzQdpW+p5IP5av3PzE1s=; b=RgdW+JhrHLhPg5wfmxRLeFEYzhNwCMqNJ2XyQytYnZDwhtdX+96WfJnbPb9qu0V/4jBDaT Hd0oreQLdq+itHyByz+92x/UGopYkkPZocwzQWos3elY8vzyGhEsVoiz5xvHEjzl2ChPI4 rUxg8fAAv5RgmUb/EcMz9tv+YBXxapHR7w5r+evZ5j47T2d4k7Zz/S8lx7wOjYwIr7TKlV Vdf16wOtFc5WcOtxHtKuFTyxDt3uny0Nl0HSh9jiz6sfesQtp2tzixPt06PnhjEsz6iIRW Icve6AsGX4/l5R8OoghhZK2jAVZCfobS6ylvb/pPlHQfaXEglnnuBITn9DPTSA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704370383; a=rsa-sha256; cv=none; b=D7X9X4jw3Vma29kZ+pWJp4xqNflJo/E56dnvr8kWczv7kr+9qeCY8+9F/vJDmCHyPtSuyH a62tw4K8UhXS8//1yEonielCWETX/uokV0uRwTJTKJgZtx8rxa3rb65nAV06wBa84hP+ze jQ9Q7YCvOhYyVeERRlSzXccIXo6yTgZ9udbu1gDuQ0JzVReDdN8+igLQOovPe74XvKziDu De5aU2Y4TOY2IkbtmEfg8dgQ4v992au7TI7YkvpsZCs97V5aSkgNjdvQfqI0j9C3Vvqm6B CPQJIfCa5uUmUVBnQO1+bDjdxCb7Sph0aMyJb05CDNAvGNHjlWsAJyynGUrv/w== 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 4T5QTV6l3Dz1S5C; Thu, 4 Jan 2024 12:13:02 +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 404CD27K098399; Thu, 4 Jan 2024 12:13:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 404CD2Mi098396; Thu, 4 Jan 2024 12:13:02 GMT (envelope-from git) Date: Thu, 4 Jan 2024 12:13:02 GMT Message-Id: <202401041213.404CD2Mi098396@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: b8febb60779d - main - x11/xss-lock: use external locker as X11 screen saver (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: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b8febb60779d594cf7a37796ff01b178a62b15b3 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=b8febb60779d594cf7a37796ff01b178a62b15b3 commit b8febb60779d594cf7a37796ff01b178a62b15b3 Author: Alexey Dokuchaev AuthorDate: 2024-01-04 12:10:04 +0000 Commit: Alexey Dokuchaev CommitDate: 2024-01-04 12:10:04 +0000 x11/xss-lock: use external locker as X11 screen saver (new port) Based on: Arch and Gentoo packages of the same name --- x11/Makefile | 1 + x11/xss-lock/Makefile | 27 +++++++++++++++++++++++++++ x11/xss-lock/distinfo | 3 +++ x11/xss-lock/files/patch-src_xss-lock.c | 19 +++++++++++++++++++ x11/xss-lock/pkg-descr | 2 ++ x11/xss-lock/pkg-plist | 9 +++++++++ 6 files changed, 61 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index d451f4245245..91b77c65c73b 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -627,6 +627,7 @@ SUBDIR += xskyroot SUBDIR += xsm SUBDIR += xsnow + SUBDIR += xss-lock SUBDIR += xssstate SUBDIR += xstarroll SUBDIR += xstdcmap diff --git a/x11/xss-lock/Makefile b/x11/xss-lock/Makefile new file mode 100644 index 000000000000..14b48421c06f --- /dev/null +++ b/x11/xss-lock/Makefile @@ -0,0 +1,27 @@ +PORTNAME= xss-lock +DISTVERSION= 0.3.0-g20140302 +CATEGORIES= x11 +MASTER_SITES= https://bitbucket.org/raymonad/xss-lock/get/ +DISTNAME= ${BB_TAGNAME} # commit hash: no embedded ${PORTNAME} +DIST_SUBDIR= ${PORTNAME} # and that's why we need ${DIST_SUBDIR} + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Use external locker as X11 screen saver +WWW= https://bitbucket.org/raymonad/xss-lock + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= rst2man:textproc/py-docutils +LIB_DEPENDS= libxcb-util.so:x11/xcb-util + +USES= cmake gnome pkgconfig tar:bzip2 xorg +USE_GNOME= glib20 +USE_XORG= xcb + +BB_TAGNAME= 1e158fb20108 +WRKSRC= ${WRKDIR}/raymonad-${PORTNAME}-${BB_TAGNAME} + +OPTIONS_DEFINE= DOCS + +.include diff --git a/x11/xss-lock/distinfo b/x11/xss-lock/distinfo new file mode 100644 index 000000000000..6bada39a5acb --- /dev/null +++ b/x11/xss-lock/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1393757192 +SHA256 (xss-lock/1e158fb20108.tar.bz2) = b9116a91367d10cd582343ad3ac6fda56c7413a7a27b6b6ae4b45ac2aa9fe8f4 +SIZE (xss-lock/1e158fb20108.tar.bz2) = 12135 diff --git a/x11/xss-lock/files/patch-src_xss-lock.c b/x11/xss-lock/files/patch-src_xss-lock.c new file mode 100644 index 000000000000..4111838a4fa3 --- /dev/null +++ b/x11/xss-lock/files/patch-src_xss-lock.c @@ -0,0 +1,19 @@ +The g_critical() function will core dump if critical errors are marked +fatal (which they are in xss-lock). Instead, log as informational and +exit. Thanks to Tomáš Janoušek for the bug report and original patch. + +--- src/xss-lock.c.orig 2014-03-02 10:46:32 UTC ++++ src/xss-lock.c +@@ -158,8 +158,10 @@ screensaver_event_cb(xcb_connection_t *connection, xcb + { + uint8_t event_type; + +- if (!event) +- g_critical("X connection lost; exiting."); ++ if (!event) { ++ g_info("X connection lost; exiting."); ++ exit(EXIT_FAILURE); ++ } + + event_type = XCB_EVENT_RESPONSE_TYPE(event); + if (event_type == 0) { diff --git a/x11/xss-lock/pkg-descr b/x11/xss-lock/pkg-descr new file mode 100644 index 000000000000..f68044b93aa4 --- /dev/null +++ b/x11/xss-lock/pkg-descr @@ -0,0 +1,2 @@ +xss-lock hooks up your favorite locker to the MIT screen saver extension +for X11 and also to systemd's login manager (so long as it is available). diff --git a/x11/xss-lock/pkg-plist b/x11/xss-lock/pkg-plist new file mode 100644 index 000000000000..5b031bb67682 --- /dev/null +++ b/x11/xss-lock/pkg-plist @@ -0,0 +1,9 @@ +bin/xss-lock +share/bash-completion/completions/xss-lock +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/dim-screen.sh +%%PORTDOCS%%%%DOCSDIR%%/transfer-sleep-lock-generic-delay.sh +%%PORTDOCS%%%%DOCSDIR%%/transfer-sleep-lock-i3lock.sh +%%PORTDOCS%%%%DOCSDIR%%/xdg-screensaver.patch +share/man/man1/xss-lock.1.gz +share/zsh/site-functions/_xss-lock