From owner-svn-ports-all@freebsd.org Mon Nov 16 12:28:08 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9E71A2EE1D3; Mon, 16 Nov 2020 12:28:08 +0000 (UTC) (envelope-from jbeich@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CZSyv7567z3L1h; Mon, 16 Nov 2020 12:28:07 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0C3FA5BD5; Mon, 16 Nov 2020 12:28:07 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AGCS67G021899; Mon, 16 Nov 2020 12:28:06 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0AGCS5qr021894; Mon, 16 Nov 2020 12:28:05 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202011161228.0AGCS5qr021894@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Mon, 16 Nov 2020 12:28:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r555471 - in head/x11: . wayland-logout wayland-logout/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/x11: . wayland-logout wayland-logout/files X-SVN-Commit-Revision: 555471 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 12:28:08 -0000 Author: jbeich Date: Mon Nov 16 12:28:05 2020 New Revision: 555471 URL: https://svnweb.freebsd.org/changeset/ports/555471 Log: x11/wayland-logout: add new port wayland-logout is a simple program that sends SIGINT to a wayland compositor by looking up the pid for the wayland socket file. The path to the socket file is derived from WAYLAND_DISPLAY and XDG_RUNTIME_DIR environment variables. https://github.com/soreau/wayland-logout Added: head/x11/wayland-logout/ head/x11/wayland-logout/Makefile (contents, props changed) head/x11/wayland-logout/distinfo (contents, props changed) head/x11/wayland-logout/files/ head/x11/wayland-logout/files/patch-wayland-logout.sh (contents, props changed) head/x11/wayland-logout/pkg-descr (contents, props changed) Modified: head/x11/Makefile (contents, props changed) Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Mon Nov 16 12:27:58 2020 (r555470) +++ head/x11/Makefile Mon Nov 16 12:28:05 2020 (r555471) @@ -339,6 +339,7 @@ SUBDIR += virtualgl SUBDIR += wallutils SUBDIR += waybar + SUBDIR += wayland-logout SUBDIR += wbar SUBDIR += wcm SUBDIR += wdisplays Added: head/x11/wayland-logout/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wayland-logout/Makefile Mon Nov 16 12:28:05 2020 (r555471) @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= wayland-logout +DISTVERSIONPREFIX= v +DISTVERSION= 1.0 +CATEGORIES= x11 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Simple logout on Wayland + +LICENSE= MIT + +USE_GITHUB= yes +GH_ACCOUNT= soreau +NO_ARCH= yes +NO_BUILD= yes +PLIST_FILES= bin/${PORTNAME} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.sh \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include Added: head/x11/wayland-logout/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wayland-logout/distinfo Mon Nov 16 12:28:05 2020 (r555471) @@ -0,0 +1,3 @@ +TIMESTAMP = 1599853712 +SHA256 (soreau-wayland-logout-v1.0_GH0.tar.gz) = 445eb9a978481871dbc51ea0e9cde57ca9f778eda55ecd8a5aac205a71e7f0e6 +SIZE (soreau-wayland-logout-v1.0_GH0.tar.gz) = 16663 Added: head/x11/wayland-logout/files/patch-wayland-logout.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wayland-logout/files/patch-wayland-logout.sh Mon Nov 16 12:28:05 2020 (r555471) @@ -0,0 +1,21 @@ +lsof is slow and not supported on DragonFly + +--- wayland-logout.sh.orig 2020-09-11 19:48:32 UTC ++++ wayland-logout.sh +@@ -1,7 +1,5 @@ + #!/bin/sh + +-# REQUIREMENTS - lsof (not always present) +- + if [ -z "${WAYLAND_DISPLAY}" ]; then + printf '%s\n' 'Error: WAYLAND_DISPLAY not set' + exit 1 +@@ -21,7 +19,7 @@ case "${WAYLAND_DISPLAY}" in + ;; + esac + +-WAYLAND_PIDS="$(lsof -t -f -- ${SOCKET_PATH})" ++WAYLAND_PIDS="$(sockstat -lu | awk "\$6 == \"${SOCKET_PATH}\" { print \$3 }" | uniq)" + set -- $WAYLAND_PIDS + if [ $# -gt 1 ]; then + printf '%s\n' 'Error: More than one process has been bound to the socket' Added: head/x11/wayland-logout/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wayland-logout/pkg-descr Mon Nov 16 12:28:05 2020 (r555471) @@ -0,0 +1,6 @@ +wayland-logout is a simple program that sends SIGINT to a wayland +compositor by looking up the pid for the wayland socket file. The path +to the socket file is derived from WAYLAND_DISPLAY and XDG_RUNTIME_DIR +environment variables. + +WWW: https://github.com/soreau/wayland-logout