- updated to 0.5.3, PLD merge master
authorMarcin Krol <hawk@tld-linux.org>
Wed, 20 Apr 2016 07:50:05 +0000 (07:50 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Wed, 20 Apr 2016 07:50:05 +0000 (07:50 +0000)
greeter-skip-services.patch
lxdm-werror.patch [deleted file]
lxdm.spec
softlockup.patch [deleted file]

index f0488e97a533caf1ea12e501042f228fa053cee8..2ec0cff1db184100b581f585dd63dd745372bc41 100644 (file)
@@ -1,14 +1,14 @@
---- lxdm-0.3.0/src/lxdm.c~     2010-09-24 18:43:49.000000000 +0300
-+++ lxdm-0.3.0/src/lxdm.c      2011-07-10 22:35:30.209784033 +0300
-@@ -1560,6 +1560,11 @@
-       {
+diff -dur lxdm-0.5.1.bak/src/lxdm.c lxdm-0.5.1/src/lxdm.c
+--- lxdm-0.5.1.bak/src/lxdm.c  2015-02-14 04:07:16.000000000 +0100
++++ lxdm-0.5.1/src/lxdm.c      2015-10-12 21:08:11.385134263 +0200
+@@ -1588,6 +1588,10 @@
                if(strstr(pw->pw_shell, "nologin"))
                        continue;
-+
 +              // TLD Linux: skip users with homedir = /home/services
 +              if(!strncmp(pw->pw_dir,"/home/services/",15))
 +                      continue;
 +
-               if(strncmp(pw->pw_dir,"/home/",6))
-               {
-                       if(!strv_find(white,pw->pw_name))
+               ret = FALSE;
+               setusershell();
+               while ((valid_shell = getusershell()) != NULL) {
diff --git a/lxdm-werror.patch b/lxdm-werror.patch
deleted file mode 100644 (file)
index ea9c388..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur lxdm-0.4.1.orig/src/ui.c lxdm-0.4.1.fix/src/ui.c
---- lxdm-0.4.1.orig/src/ui.c   2013-07-19 07:38:38.000000000 +0000
-+++ lxdm-0.4.1.fix/src/ui.c    2013-07-19 07:53:15.643067820 +0000
-@@ -146,7 +146,7 @@
-       else if( !strncmp(str, "shutdown", 6) )
-               lxdm_do_shutdown();
-       else if( !strncmp(str, "log ", 4) )
--              g_message(str + 4);
-+              g_message("%s", str + 4);
-       else if( !strncmp(str, "login ", 6) )
-       {
-               char *user = greeter_param(str, "user");
index e35e86bd330cc0b7ea07e0d428f57609fe3db263..8b55e0b99f1e6fb0639914453b9615277da25fb3 100644 (file)
--- a/lxdm.spec
+++ b/lxdm.spec
@@ -1,18 +1,16 @@
 Summary:       Light weight X11 display manager
 Name:          lxdm
-Version:       0.4.1
-Release:       14
+Version:       0.5.3
+Release:       1
 License:       GPL v3
 Group:         X11/Applications
-Source0:       http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
-# Source0-md5: 8da1cfc2be6dc9217c85a7cf51e1e821
+Source0:       http://downloads.sourceforge.net/lxdm/%{name}-%{version}.tar.xz
+# Source0-md5: 061caae432634e6db38bbdc84bc6ffa0
 Source1:       %{name}.pamd
 Source2:       %{name}.init
 Source3:       %{name}.Xsession
 Patch0:                %{name}-setuid.patch
 Patch1:                greeter-skip-services.patch
-Patch2:                softlockup.patch
-Patch3:                %{name}-werror.patch
 URL:           http://wiki.lxde.org/en/LXDM
 BuildRequires: ConsoleKit-devel
 BuildRequires: gettext-tools
@@ -21,6 +19,8 @@ BuildRequires:        intltool
 BuildRequires: pam-devel
 BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.627
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 Requires:      /usr/bin/X
 Requires:      iso-codes
 Requires:      xinitrc-ng >= 1.0
@@ -50,8 +50,6 @@ Skrypt init dla lxdm-a.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-%patch3 -p1
 
 %build
 rm -f data/lxdm.conf
@@ -85,8 +83,6 @@ if [ "$1" = "0" ]; then
        %service %{name} stop
 fi
 
-%postun init
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS README TODO
@@ -107,6 +103,7 @@ fi
 %attr(755,root,root) %{_libexecdir}/%{name}-greeter-gtk
 %attr(755,root,root) %{_libdir}/%{name}-greeter-gdk
 %attr(755,root,root) %{_libdir}/%{name}-numlock
+%attr(755,root,root) %{_libdir}/%{name}-session
 %{_datadir}/%{name}
 
 %files init
diff --git a/softlockup.patch b/softlockup.patch
deleted file mode 100644 (file)
index 034707c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-From: dgod <dgod.osa@gmail.com>
-Date: Sun, 25 Dec 2011 07:23:19 +0000 (+0800)
-Subject: fix event check bug caused cpu 100%
-X-Git-Url: http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde%2Flxdm;a=commitdiff_plain;h=d4e41ecb36a1ea29482b75674d804bb0f05540b2;hp=f0951bdf736026b041001e846d2cb93f7f2852e1
-
-fix event check bug caused cpu 100%
----
-
-diff --git a/src/lxcom.c b/src/lxcom.c
-index 02763eb..18ee12e 100644
---- a/src/lxcom.c
-+++ b/src/lxcom.c
-@@ -89,7 +89,7 @@ static gboolean lxcom_prepare (GSource *source,gint *timeout)
- static gboolean lxcom_check(GSource *source)
- {
--      return TRUE;
-+      return (((LXComSource*)source)->poll.revents&G_IO_IN)?TRUE:FALSE;
- }
- static gboolean lxcom_dispatch (GSource *source,GSourceFunc callback,gpointer user_data)