rpms/i3lock/devel i3lock.pam,NONE,1.1 i3lock.spec,1.1,1.2

Simon Wesp cassmodiah at fedoraproject.org
Wed Jan 13 16:37:10 UTC 2010


Author: cassmodiah

Update of /cvs/pkgs/rpms/i3lock/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32515

Modified Files:
	i3lock.spec 
Added Files:
	i3lock.pam 
Log Message:
* Sat Jan 09 2010 Simon Wesp <cassmodiah at fedoraproject.org> - 1.0-2
- Add a PAM configfile as SOURCE1



--- NEW FILE i3lock.pam ---
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
-session   optional     pam_ck_connector.so


Index: i3lock.spec
===================================================================
RCS file: /cvs/pkgs/rpms/i3lock/devel/i3lock.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- i3lock.spec	2 Dec 2009 19:50:04 -0000	1.1
+++ i3lock.spec	13 Jan 2010 16:37:09 -0000	1.2
@@ -1,12 +1,13 @@
 Name:           i3lock
 Version:        1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Simple X display locker
 
 Group:          User Interface/Desktops
 License:        MIT
 URL:            http://i3.zekjur.net/i3lock/
 Source0:        http://i3.zekjur.net/%{name}/%{name}-%{version}.tar.gz
+Source1:        %{name}.pam
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libX11-devel
@@ -27,13 +28,9 @@ resuming from suspend, at least sometime
 %prep
 %setup -q
 
-#####         I M P O R T A N T          #####
-##### !!!! TO CHECK ON EVERY UPDATE !!!! #####
-# honor optflags and generate debugpackage
 sed -e 's|CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}|CFLAGS = -std=c99 -pedantic %{optflags} ${INCS} ${CPPFLAGS}|g' \
     -e 's|LDFLAGS = -s ${LIBS}|LDFLAGS = ${LIBS}|g' \
     -i config.mk
-##############################################
 
 
 %build
@@ -42,7 +39,13 @@ make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
-make install DESTDIR=%{buildroot} INSTALL="install -p"
+make install \
+     DESTDIR=%{buildroot} \
+     INSTALL="install -p"
+
+mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
+install -Dpm0644 %{SOURCE1} \
+        %{buildroot}/%{_sysconfdir}/pam.d/%{name}
 
 
 %clean
@@ -54,8 +57,12 @@ rm -rf %{buildroot}
 %doc LICENSE
 %{_bindir}/%{name}
 %{_mandir}/man*/%{name}*
+%{_sysconfdir}/pam.d/%{name}
 
 
 %changelog
+* Sat Jan 09 2010 Simon Wesp <cassmodiah at fedoraproject.org> - 1.0-2
+- Add a PAM configfile as SOURCE1
+
 * Wed Dec 02 2009 Simon Wesp <cassmodiah at fedoraproject.org> - 1.0-1
 - Package build for Fedora



More information about the scm-commits mailing list