pkgsrc-Changes archive

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

CVS commit: pkgsrc/x11



Module Name:    pkgsrc
Committed By:   nikita
Date:           Tue May 23 22:31:46 UTC 2023

Modified Files:
        pkgsrc/x11: Makefile
Added Files:
        pkgsrc/x11/i3lock-color: DESCR MESSAGE Makefile PLIST distinfo
        pkgsrc/x11/i3lock-color/patches: patch-jpg.c

Log Message:
i3lock-color: import as x11/i3lock-color version 2.13.c.4

packaged in wip by kamil

i3lock improves slock by making it fork() and therefore combinable with
commands to suspend your computer. Additionally, instead of turning off
your screen via DPMS and/or displaying a black screen, i3lock displays
a white screen so you can see if your computer failed to resume from
suspend or if your screen is just locked. Also, when entering a wrong
password, i3lock does not call XBell(). This is important because
i3lock/slock think you've entered a password when resuming from suspend,
at least sometimes.


To generate a diff of this commit:
cvs rdiff -u -r1.987 -r1.988 pkgsrc/x11/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/i3lock-color/DESCR \
    pkgsrc/x11/i3lock-color/MESSAGE pkgsrc/x11/i3lock-color/Makefile \
    pkgsrc/x11/i3lock-color/PLIST pkgsrc/x11/i3lock-color/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/i3lock-color/patches/patch-jpg.c

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

Modified files:

Index: pkgsrc/x11/Makefile
diff -u pkgsrc/x11/Makefile:1.987 pkgsrc/x11/Makefile:1.988
--- pkgsrc/x11/Makefile:1.987   Wed May  3 12:49:56 2023
+++ pkgsrc/x11/Makefile Tue May 23 22:31:45 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.987 2023/05/03 12:49:56 wiz Exp $
+# $NetBSD: Makefile,v 1.988 2023/05/23 22:31:45 nikita Exp $
 #
 
 COMMENT=       Packages to support the X Window System
@@ -113,6 +113,7 @@ SUBDIR+=    hs-X11
 SUBDIR+=       hs-X11-xft
 SUBDIR+=       hsetroot
 SUBDIR+=       i3lock
+SUBDIR+=       i3lock-color
 SUBDIR+=       iceauth
 SUBDIR+=       ico
 SUBDIR+=       imwheel

Added files:

Index: pkgsrc/x11/i3lock-color/DESCR
diff -u /dev/null pkgsrc/x11/i3lock-color/DESCR:1.1
--- /dev/null   Tue May 23 22:31:46 2023
+++ pkgsrc/x11/i3lock-color/DESCR       Tue May 23 22:31:45 2023
@@ -0,0 +1,8 @@
+i3lock improves slock by making it fork() and therefore combinable with
+commands to suspend your computer. Additionally, instead of turning off
+your screen via DPMS and/or displaying a black screen, i3lock displays
+a white screen so you can see if your computer failed to resume from
+suspend or if your screen is just locked. Also, when entering a wrong
+password, i3lock does not call XBell(). This is important because
+i3lock/slock think you've entered a password when resuming from suspend,
+at least sometimes.
Index: pkgsrc/x11/i3lock-color/MESSAGE
diff -u /dev/null pkgsrc/x11/i3lock-color/MESSAGE:1.1
--- /dev/null   Tue May 23 22:31:46 2023
+++ pkgsrc/x11/i3lock-color/MESSAGE     Tue May 23 22:31:45 2023
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2023/05/23 22:31:45 nikita Exp $
+
+You need to copy the i3lock PAM configuration file to your PAM
+configuration directory (typically /etc/pam.d).  You can find a sample
+file in:
+
+       ${EGDIR}/pam.d/i3lock
+
+It may need to be manually adjusted.
+
+===========================================================================
Index: pkgsrc/x11/i3lock-color/Makefile
diff -u /dev/null pkgsrc/x11/i3lock-color/Makefile:1.1
--- /dev/null   Tue May 23 22:31:46 2023
+++ pkgsrc/x11/i3lock-color/Makefile    Tue May 23 22:31:45 2023
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2023/05/23 22:31:45 nikita Exp $
+
+DISTNAME=      i3lock-color-2.13.c.4
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=Raymo111/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/Raymo111/i3lock-color/
+COMMENT=       Slightly improved screen locker based on slock
+LICENSE=       modified-bsd
+
+USE_TOOLS+=    gmake pkg-config autoconf automake autoreconf
+USE_LANGUAGES= c99
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFBASEDIR}
+
+INSTALL_MAKE_FLAGS+=   sysconfdir=${PREFIX}/share/examples/i3lock
+
+EGDIR= ${PREFIX}/share/examples/i3lock
+
+MESSAGE_SUBST+=        EGDIR=${EGDIR}
+
+MAKE_DIRS+=    ${PKG_SYSCONFBASEDIR}/pam.d
+CONF_FILES+=   ${EGDIR}/pam.d/i3lock ${PKG_SYSCONFBASEDIR}/pam.d/i3lock
+
+CONFLICTS+=    i3lock-[0-9]*
+
+pre-configure:
+       ${RUN} cd ${WRKSRC} && autoreconf -if
+
+.include "../../devel/libev/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../x11/libxcb/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../x11/xcb-util/buildlink3.mk"
+.include "../../x11/xcb-util-image/buildlink3.mk"
+#.include "../../x11/xcb-util-keysyms/buildlink3.mk"
+.include "../../x11/xcb-util-xrm/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/pam.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/x11/i3lock-color/PLIST
diff -u /dev/null pkgsrc/x11/i3lock-color/PLIST:1.1
--- /dev/null   Tue May 23 22:31:46 2023
+++ pkgsrc/x11/i3lock-color/PLIST       Tue May 23 22:31:45 2023
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2023/05/23 22:31:45 nikita Exp $
+bin/i3lock
+man/man1/i3lock.1
+share/examples/i3lock/pam.d/i3lock
Index: pkgsrc/x11/i3lock-color/distinfo
diff -u /dev/null pkgsrc/x11/i3lock-color/distinfo:1.1
--- /dev/null   Tue May 23 22:31:46 2023
+++ pkgsrc/x11/i3lock-color/distinfo    Tue May 23 22:31:45 2023
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/05/23 22:31:45 nikita Exp $
+
+BLAKE2s (i3lock-color-2.13.c.4.tar.gz) = 4db9c24672a329948737b62c3a3747b44c975ef77c3dbe8b73c2a7ea72661243
+SHA512 (i3lock-color-2.13.c.4.tar.gz) = 67b7b558f2894f8a389e559a5b146e176d4d0410b8da2a756190691062fa60e085449bc3afa57cbbdee7d2f002f995649d123bfb9d88eaae55da3cf8f68eee02
+Size (i3lock-color-2.13.c.4.tar.gz) = 215078 bytes
+SHA1 (patch-jpg.c) = 2da0ba7d6ac2080991a47dad91e9813133f76a8f

Index: pkgsrc/x11/i3lock-color/patches/patch-jpg.c
diff -u /dev/null pkgsrc/x11/i3lock-color/patches/patch-jpg.c:1.1
--- /dev/null   Tue May 23 22:31:46 2023
+++ pkgsrc/x11/i3lock-color/patches/patch-jpg.c Tue May 23 22:31:46 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-jpg.c,v 1.1 2023/05/23 22:31:46 nikita Exp $
+
+Build with both jpeg and libjpeg-turbo.
+
+--- jpg.c.orig 2020-08-05 04:57:41.000000000 +0000
++++ jpg.c
+@@ -67,7 +67,11 @@ void* read_JPEG_file(char *file_path, JP
+ 
+     // BGRA + endianness change = RGBA?
+     // TODO: Test this code on non-x86_64 platforms
++#ifdef JCS_EXTENSIONS
+     cinfo.out_color_space = JCS_EXT_BGRA;
++#else
++    cinfo.out_color_space = JCS_RGB;
++#endif
+ 
+     (void) jpeg_start_decompress(&cinfo);
+ 



Home | Main Index | Thread Index | Old Index