From f1ad6d273f4ec2a860b025a7a2d9b1de00024a75 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Mon, 1 Sep 2014 15:02:25 +0200
Subject: [PATCH] New package: mate-screensaver-1.8.0.

---
 .../files/mate-screensaver.pam                | 11 ++++++++++
 srcpkgs/mate-screensaver/template             | 22 +++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 srcpkgs/mate-screensaver/files/mate-screensaver.pam
 create mode 100644 srcpkgs/mate-screensaver/template

diff --git a/srcpkgs/mate-screensaver/files/mate-screensaver.pam b/srcpkgs/mate-screensaver/files/mate-screensaver.pam
new file mode 100644
index 0000000000..f5159817c0
--- /dev/null
+++ b/srcpkgs/mate-screensaver/files/mate-screensaver.pam
@@ -0,0 +1,11 @@
+auth            requisite       pam_nologin.so
+auth            required        pam_env.so
+auth            required        pam_unix.so
+-auth		optional	pam_gnome_keyring.so
+account         required        pam_unix.so
+session         required        pam_limits.so
+session         required        pam_unix.so
+-session 	optional 	pam_systemd.so
+-session	optional	pam_ck_connector.so nox11
+-session 	optional	pam_gnome_keyring.so auto_start
+password        required        pam_unix.so
diff --git a/srcpkgs/mate-screensaver/template b/srcpkgs/mate-screensaver/template
new file mode 100644
index 0000000000..93285c1cae
--- /dev/null
+++ b/srcpkgs/mate-screensaver/template
@@ -0,0 +1,22 @@
+# Template file for 'mate-screensaver'
+pkgname=mate-screensaver
+version=1.8.0
+revision=1
+build_style=gnu-configure
+build_options="systemd"
+configure_args="--with-gtk=2.0 $(vopt_enable systemd)"
+hostmakedepends="pkg-config intltool itstool"
+makedepends="gtk+-devel dbus-glib-devel libnotify-devel libXScrnSaver-devel
+ libmatekbd-devel mate-menus-devel mate-desktop-devel pam-devel
+ $(vopt_if systemd systemd-devel)"
+depends="mate-desktop mate-session-manager"
+short_desc="Screensaver for MATE"
+maintainer="Juan RP <xtraeme@gmail.com>"
+license="GPL-2"
+homepage="http://mate-desktop.org"
+distfiles="http://pub.mate-desktop.org/releases/1.8/${pkgname}-${version}.tar.xz"
+checksum=93979d0a6203fa0b59eb5477bdd5b78788a1b1adc861c3d0085339b859ec3106
+
+post_install() {
+	vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}
+}