pkgsrc-WIP-changes archive

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

wip/i3lock-color: import i3lock-color-2.12.c.5



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Oct 21 21:36:08 2020 +0200
Changeset:	4c1c047e6594b57ac9f4f7c12a4faee91d85a456

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

Log Message:
wip/i3lock-color: import i3lock-color-2.12.c.5

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 see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4c1c047e6594b57ac9f4f7c12a4faee91d85a456

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

diffstat:
 i3lock-color/DESCR               |  8 ++++++++
 i3lock-color/MESSAGE             | 12 ++++++++++++
 i3lock-color/Makefile            | 42 ++++++++++++++++++++++++++++++++++++++++
 i3lock-color/PLIST               |  4 ++++
 i3lock-color/distinfo            |  7 +++++++
 i3lock-color/patches/patch-jpg.c | 18 +++++++++++++++++
 6 files changed, 91 insertions(+)

diffs:
diff --git a/i3lock-color/DESCR b/i3lock-color/DESCR
new file mode 100644
index 0000000000..20c909dbea
--- /dev/null
+++ b/i3lock-color/DESCR
@@ -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.
diff --git a/i3lock-color/MESSAGE b/i3lock-color/MESSAGE
new file mode 100644
index 0000000000..f900f49513
--- /dev/null
+++ b/i3lock-color/MESSAGE
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2016/06/11 23:00:13 kamil 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.
+
+===========================================================================
diff --git a/i3lock-color/Makefile b/i3lock-color/Makefile
new file mode 100644
index 0000000000..0966b67ee9
--- /dev/null
+++ b/i3lock-color/Makefile
@@ -0,0 +1,42 @@
+#	$NetBSD$
+
+DISTNAME=	i3lock-color-2.12.c.5
+CATEGORIES=	x11
+MASTER_SITES=	${MASTER_SITE_GITHUB:=Raymo111/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://i3wm.org/i3lock/
+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"
diff --git a/i3lock-color/PLIST b/i3lock-color/PLIST
new file mode 100644
index 0000000000..9ecc2d2bb1
--- /dev/null
+++ b/i3lock-color/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2016/06/11 23:00:13 kamil Exp $
+bin/i3lock
+man/man1/i3lock.1
+share/examples/i3lock/pam.d/i3lock
diff --git a/i3lock-color/distinfo b/i3lock-color/distinfo
new file mode 100644
index 0000000000..45bed86c8e
--- /dev/null
+++ b/i3lock-color/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.2 2016/06/12 19:48:02 kamil Exp $
+
+SHA1 (i3lock-color-2.12.c.5.tar.gz) = 813eafc4daa794045759abf80e8d274ef1b36ce2
+RMD160 (i3lock-color-2.12.c.5.tar.gz) = d50e44560f2d4fc2b12e1054cc74547c3a2a4310
+SHA512 (i3lock-color-2.12.c.5.tar.gz) = b579a9511c9c4220db2b9bc406b76fd9daac5dff27c8e7a646bc2c0feb15edf6a136c26a0945684791e0be554c0ce56fe986d79cc8a9b572c6d584be52f61b89
+Size (i3lock-color-2.12.c.5.tar.gz) = 208461 bytes
+SHA1 (patch-jpg.c) = 2da0ba7d6ac2080991a47dad91e9813133f76a8f
diff --git a/i3lock-color/patches/patch-jpg.c b/i3lock-color/patches/patch-jpg.c
new file mode 100644
index 0000000000..87aa7fb9e9
--- /dev/null
+++ b/i3lock-color/patches/patch-jpg.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+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