]> git.sur5r.net Git - i3/i3lock/commitdiff
add i3lock.pam (installed as /etc/pam.d/i3lock) which includes 'login' (Thanks Семён)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 20 Jan 2011 09:36:03 +0000 (10:36 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 20 Jan 2011 09:36:03 +0000 (10:36 +0100)
Makefile
i3lock.pam [new file with mode: 0644]

index fc855e366b8ba3cbc1d4dbd38f1d16070904fe79..ab25d4e55a201b30fa6711cbb1d58268392d775c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 INSTALL=install
 PREFIX=/usr
+SYSCONFDIR=/etc
 
 # Check if pkg-config is installed, we need it for building CFLAGS/LDFLAGS
 ifeq ($(shell which pkg-config 2>/dev/null 1>/dev/null || echo 1),1)
@@ -39,7 +40,9 @@ clean:
 
 install: all
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
+       $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/pam.d
        $(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
+       $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(SYSCONFDIR)/pam.d/i3lock
 
 uninstall:
        rm -f $(DESTDIR)$(PREFIX)/bin/i3lock
diff --git a/i3lock.pam b/i3lock.pam
new file mode 100644 (file)
index 0000000..5cc4379
--- /dev/null
@@ -0,0 +1,6 @@
+#
+# PAM configuration file for the i3lock screen locker. By default, it includes
+# the 'login' configuration file (see /etc/pam.d/login)
+#
+
+@include login