pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xss-lock x11/xss-lock: import pkg
details: https://anonhg.NetBSD.org/pkgsrc/rev/059ecfc127b7
branches: trunk
changeset: 387720:059ecfc127b7
user: pin <pin%pkgsrc.org@localhost>
date: Sat Nov 05 18:13:44 2022 +0000
description:
x11/xss-lock: import pkg
xss-lock allows to set an external locker as the X screensaver.
By Paolo Vincenzo Olivo in wip
diffstat:
x11/xss-lock/DESCR | 1 +
x11/xss-lock/Makefile | 35 +++++++++++++++++++++++++++
x11/xss-lock/PLIST | 10 +++++++
x11/xss-lock/distinfo | 7 +++++
x11/xss-lock/patches/patch-doc_CMakeLists.txt | 15 +++++++++++
x11/xss-lock/patches/patch-src_xss-lock.c | 31 +++++++++++++++++++++++
6 files changed, 99 insertions(+), 0 deletions(-)
diffs (123 lines):
diff -r 424f54022575 -r 059ecfc127b7 x11/xss-lock/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xss-lock/DESCR Sat Nov 05 18:13:44 2022 +0000
@@ -0,0 +1,1 @@
+xss-lock allows to set an external locker as the X screensaver.
diff -r 424f54022575 -r 059ecfc127b7 x11/xss-lock/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xss-lock/Makefile Sat Nov 05 18:13:44 2022 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2022/11/05 18:13:44 pin Exp $
+
+DISTNAME= 1e158fb20108
+PKGNAME= xss-lock-0.3.0
+CATEGORIES= x11
+MASTER_SITES= https://bitbucket.org/raymonad/xss-lock/get/
+DIST_SUBDIR= ${PKGNAME_NOREV}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= vms%retrobsd.ddns.net@localhost
+HOMEPAGE= https://bitbucket.org/raymonad/xss-lock
+COMMENT= Use external locker as X screen saver
+LICENSE= mit
+
+USE_TOOLS+= pkg-config
+
+PYTHON_FOR_BUILD_ONLY= tool
+# Requires rst2man to generate man page
+TOOL_DEPENDS+= ${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
+
+SUBST_CLASSES+= doc
+SUBST_MESSAGE.doc= Fixing rst2man name due to python versioning.
+SUBST_STAGE.doc= pre-configure
+SUBST_FILES.doc= doc/CMakeLists.txt
+SUBST_SED.doc= -e 's,rst2man.py,rst2man-${PYVERSSUFFIX},g'
+
+USE_CMAKE= yes
+CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX}
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+
+WRKSRC= ${WRKDIR}/raymonad-xss-lock-${DISTNAME}
+
+.include "../../x11/xcb-util/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 424f54022575 -r 059ecfc127b7 x11/xss-lock/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xss-lock/PLIST Sat Nov 05 18:13:44 2022 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2022/11/05 18:13:44 pin Exp $
+bin/xss-lock
+man/man1/xss-lock.1
+share/bash-completion/completions/xss-lock
+share/doc/xss-lock/NEWS
+share/doc/xss-lock/dim-screen.sh
+share/doc/xss-lock/transfer-sleep-lock-generic-delay.sh
+share/doc/xss-lock/transfer-sleep-lock-i3lock.sh
+share/doc/xss-lock/xdg-screensaver.patch
+share/zsh/site-functions/_xss-lock
diff -r 424f54022575 -r 059ecfc127b7 x11/xss-lock/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xss-lock/distinfo Sat Nov 05 18:13:44 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2022/11/05 18:13:44 pin Exp $
+
+BLAKE2s (xss-lock-0.3.0/1e158fb20108.zip) = 3d13015d33597dc399b5c3292d9177454b8ea77dd4a11d4d3b40eca05c4209cc
+SHA512 (xss-lock-0.3.0/1e158fb20108.zip) = 6db44edcce4fd21f8788504919cfbb0baccda4f97fc27be844ee7ef24ea9cba7ec9d6f080951021e3ac65592724ba079c38b55841b3caaa2b7c7e8c41efffeb5
+Size (xss-lock-0.3.0/1e158fb20108.zip) = 18436 bytes
+SHA1 (patch-doc_CMakeLists.txt) = 31e2bf67d746cfec5b89cfe0071290f60c9e4e3f
+SHA1 (patch-src_xss-lock.c) = 19afb8f344883f88a1b9a68ca0152321fbf5e51d
diff -r 424f54022575 -r 059ecfc127b7 x11/xss-lock/patches/patch-doc_CMakeLists.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xss-lock/patches/patch-doc_CMakeLists.txt Sat Nov 05 18:13:44 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-doc_CMakeLists.txt,v 1.1 2022/11/05 18:13:44 pin Exp $
+
+Fix man page destination.
+
+--- doc/CMakeLists.txt.orig 2014-03-02 10:46:32.000000000 +0000
++++ doc/CMakeLists.txt
+@@ -8,7 +8,7 @@ if(rst2man)
+ COMMAND ${rst2man} ${man_input} ${man_output}
+ DEPENDS ${man_input})
+ add_custom_target(man ALL DEPENDS ${man_output})
+- install(FILES ${man_output} DESTINATION share/man/man1)
++ install(FILES ${man_output} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
+ else()
+ message(WARNING "rst2man (docutils) not found, disabling man page generation")
+ endif()
diff -r 424f54022575 -r 059ecfc127b7 x11/xss-lock/patches/patch-src_xss-lock.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xss-lock/patches/patch-src_xss-lock.c Sat Nov 05 18:13:44 2022 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_xss-lock.c,v 1.1 2022/11/05 18:13:44 pin Exp $
+
+Avoid core dump when exiting due to loss of X connection.
+Fix warning for deprecated declaration.
+
+--- src/xss-lock.c.orig 2014-03-02 10:46:32.000000000 +0000
++++ src/xss-lock.c
+@@ -158,9 +158,11 @@ screensaver_event_cb(xcb_connection_t *c
+ {
+ 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) {
+ xcb_generic_error_t *error = (xcb_generic_error_t *)event;
+@@ -256,7 +258,7 @@ child_watch_cb(GPid pid, gint status, Ch
+ #if GLIB_CHECK_VERSION(2, 34, 0)
+ GError *error = NULL;
+
+- if (!g_spawn_check_exit_status(status, &error)) {
++ if (!g_spawn_check_wait_status(status, &error)) {
+ g_message("%s exited abnormally: %s", child->name, error->message);
+ g_error_free(error);
+ }
Home |
Main Index |
Thread Index |
Old Index