pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/x11/xss-lock



Module Name:    pkgsrc
Committed By:   pin
Date:           Sat Nov  5 18:13:44 UTC 2022

Added Files:
        pkgsrc/x11/xss-lock: DESCR Makefile PLIST distinfo
        pkgsrc/x11/xss-lock/patches: patch-doc_CMakeLists.txt
            patch-src_xss-lock.c

Log Message:
x11/xss-lock: import pkg

xss-lock allows to set an external locker as the X screensaver.

By Paolo Vincenzo Olivo in wip


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/xss-lock/DESCR pkgsrc/x11/xss-lock/Makefile \
    pkgsrc/x11/xss-lock/PLIST pkgsrc/x11/xss-lock/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/xss-lock/patches/patch-doc_CMakeLists.txt \
    pkgsrc/x11/xss-lock/patches/patch-src_xss-lock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/x11/xss-lock/DESCR
diff -u /dev/null pkgsrc/x11/xss-lock/DESCR:1.1
--- /dev/null   Sat Nov  5 18:13:44 2022
+++ pkgsrc/x11/xss-lock/DESCR   Sat Nov  5 18:13:44 2022
@@ -0,0 +1 @@
+xss-lock allows to set an external locker as the X screensaver.
Index: pkgsrc/x11/xss-lock/Makefile
diff -u /dev/null pkgsrc/x11/xss-lock/Makefile:1.1
--- /dev/null   Sat Nov  5 18:13:44 2022
+++ pkgsrc/x11/xss-lock/Makefile        Sat Nov  5 18:13:44 2022
@@ -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"
Index: pkgsrc/x11/xss-lock/PLIST
diff -u /dev/null pkgsrc/x11/xss-lock/PLIST:1.1
--- /dev/null   Sat Nov  5 18:13:44 2022
+++ pkgsrc/x11/xss-lock/PLIST   Sat Nov  5 18:13:44 2022
@@ -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
Index: pkgsrc/x11/xss-lock/distinfo
diff -u /dev/null pkgsrc/x11/xss-lock/distinfo:1.1
--- /dev/null   Sat Nov  5 18:13:44 2022
+++ pkgsrc/x11/xss-lock/distinfo        Sat Nov  5 18:13:44 2022
@@ -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

Index: pkgsrc/x11/xss-lock/patches/patch-doc_CMakeLists.txt
diff -u /dev/null pkgsrc/x11/xss-lock/patches/patch-doc_CMakeLists.txt:1.1
--- /dev/null   Sat Nov  5 18:13:44 2022
+++ pkgsrc/x11/xss-lock/patches/patch-doc_CMakeLists.txt        Sat Nov  5 18:13:44 2022
@@ -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()
Index: pkgsrc/x11/xss-lock/patches/patch-src_xss-lock.c
diff -u /dev/null pkgsrc/x11/xss-lock/patches/patch-src_xss-lock.c:1.1
--- /dev/null   Sat Nov  5 18:13:44 2022
+++ pkgsrc/x11/xss-lock/patches/patch-src_xss-lock.c    Sat Nov  5 18:13:44 2022
@@ -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