summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-misc/sxlock/Manifest4
-rw-r--r--x11-misc/sxlock/files/sxlock-1.1-red-background.patch27
-rw-r--r--x11-misc/sxlock/metadata.xml8
-rw-r--r--x11-misc/sxlock/sxlock-1.1-r1.ebuild26
4 files changed, 65 insertions, 0 deletions
diff --git a/x11-misc/sxlock/Manifest b/x11-misc/sxlock/Manifest
new file mode 100644
index 0000000..44d5578
--- /dev/null
+++ b/x11-misc/sxlock/Manifest
@@ -0,0 +1,4 @@
+AUX sxlock-1.1-red-background.patch 1272 BLAKE2B ef3dbfa5347f80e3d34e2a56f86e372483064e78c2122a10ba70f87897f67b491d610a91ac2b730affd59225ed0fe0af8fe227e25d6226bf2bde756eac56df6d SHA512 96d8288298ab68cee428691c37e0773b323dc4246e8e7f78769f546cca3d65fe62b781a6f65756fc98535775e76327b92f14081a60b2c7fe328a66341d7ed75b
+DIST sxlock-1.1.tar.gz 7139 BLAKE2B 312e1b6b0d50a91e611ad5537df66991dd2377580aa371773dec1b6e1f3663a0361b99faab3abdffebb5c8d9352be5d576f47d02db42e3734e975a30111e6102 SHA512 8f6b7ebab103163200d6e7453274edba5003e1fd0ed487fb7f779186c46dd051d7f38c26b7bfacb45265396a46a53aa227863e1f088d3231a2191a58c2308538
+EBUILD sxlock-1.1-r1.ebuild 657 BLAKE2B 554b40fa87f42f55da1c94cec13d3407e8e471601ca626f3eb12aec36ac3ddee5ffcdd8a1e7f0478f4f364c24872f2363f6b710585bfc312f1899b73d2391614 SHA512 5e40e68745f81cf1ffe893ae1207876063e8aa5de9a003712e9da153bf370893236534c7d700f282c5c7be37b577ca185f1cfc3bc18d6e8a57ce2a29dafa1cd8
+MISC metadata.xml 241 BLAKE2B 117f3b263452b334f3adb70c3f15267e64b13d7335f35f84ead1de216b9f53a026ee25340525995e80ca4fd6cabdd101cd3f7563b0babae98d6c12806b4e664b SHA512 4fd289d5889d95606c00514daf808a41d37c998c80c21fed5337cd259ef3605c14dd75186bedfd1b5abed98fcb590232553332468cb218cddcc7c089af81bc76
diff --git a/x11-misc/sxlock/files/sxlock-1.1-red-background.patch b/x11-misc/sxlock/files/sxlock-1.1-red-background.patch
new file mode 100644
index 0000000..8ba0001
--- /dev/null
+++ b/x11-misc/sxlock/files/sxlock-1.1-red-background.patch
@@ -0,0 +1,27 @@
+diff --git a/sxlock.c b/sxlock.c
+index ca195d5..cc1f872 100644
+--- a/sxlock.c
++++ b/sxlock.c
+@@ -195,9 +195,10 @@ main_loop(Window w, GC gc, XFontStruct* font, WindowPositionInfo* info, char pas
+ /* draw new passdisp or 'auth failed' */
+ if (failed) {
+ x = base_x - XTextWidth(font, "authentication failed", 21) / 2;
+- XSetForeground(dpy, gc, red.pixel);
+- XDrawString(dpy, w, gc, x, base_y + ascent + 20, "authentication failed", 21);
+- XSetForeground(dpy, gc, white.pixel);
++ XSetWindowBackground(dpy, w, red.pixel);
++ //XSetForeground(dpy, gc, red.pixel);
++ //XDrawString(dpy, w, gc, x, base_y + ascent + 20, "authentication failed", 21);
++ //XSetForeground(dpy, gc, white.pixel);
+ } else {
+ int lendisp = len;
+ if (hidelength && len > 0)
+@@ -321,7 +322,7 @@ main(int argc, char** argv) {
+
+ /* set default values for command-line arguments */
+ opt_passchar = "*";
+- opt_font = "-misc-fixed-medium-r-*--17-120-*-*-*-*-iso8859-1";
++ opt_font = "-xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1";
+ opt_username = username;
+ opt_hidelength = False;
+
diff --git a/x11-misc/sxlock/metadata.xml b/x11-misc/sxlock/metadata.xml
new file mode 100644
index 0000000..f078bb8
--- /dev/null
+++ b/x11-misc/sxlock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andy@ndyk.de</email>
+ <name>Andrew Karpow</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/x11-misc/sxlock/sxlock-1.1-r1.ebuild b/x11-misc/sxlock/sxlock-1.1-r1.ebuild
new file mode 100644
index 0000000..f4c6971
--- /dev/null
+++ b/x11-misc/sxlock/sxlock-1.1-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Simple screen locker utility for X, fork of sflock, which is based on slock. Main difference is that sxlock uses PAM authentication, so no suid is needed."
+HOMEPAGE="https://github.com/lahwaacz/sxlock"
+SRC_URI="https://github.com/lahwaacz/sxlock/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrandr
+ sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-red-background.patch"
+}
+