[cdm] Initial import (#675726)

Mikhail Kulemin mkulemin at fedoraproject.org
Fri Feb 25 09:33:06 UTC 2011


commit 0097eee06085bd9f7ea452f7d2effe51d68e5c44
Author: Mikhail Kulemin <mihkulemin at gmail.com>
Date:   Fri Feb 25 12:20:52 2011 +0300

    Initial import (#675726)

 .gitignore                      |    1 +
 cdm-fedora-default-config.patch |   77 +++++++++++++++++++++++++++++++++++++++
 cdm.spec                        |   69 +++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 4 files changed, 148 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..216aea1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cdm-0.5.3.tar.gz
diff --git a/cdm-fedora-default-config.patch b/cdm-fedora-default-config.patch
new file mode 100644
index 0000000..18d0c23
--- /dev/null
+++ b/cdm-fedora-default-config.patch
@@ -0,0 +1,77 @@
+diff -aur cdm-0.5.3/src/cdmrc cdm-0.5.3-new/src/cdmrc
+--- cdm-0.5.3/src/cdmrc	2011-01-03 02:19:49.000000000 +0300
++++ cdm-0.5.3-new/src/cdmrc	2011-02-09 13:36:00.276509071 +0300
+@@ -7,10 +7,10 @@
+ countfrom=1
+ 
+ # List all WM binary names
+-wmbinlist=(awesome openbox-session)
++wmbinlist=(openbox-session)
+ 
+ # List all WM display names
+-wmdisplist=(Awesome Openbox)
++wmdisplist=(Openbox)
+ 
+ # Allow console login?
+ allowconsole=yes
+@@ -28,33 +28,38 @@
+ allowhibernate=no
+ hibernatecommand='sudo pm-hibernate'
+ 
+-# Set configuration for specific users?
+-userconfig=(courtney)
++# Set configuration for specific users? 
++#
++# For example for users 'courtney' and 'jack' next line looks like
++# userconfig=(courtney jack)
++userconfig=()
+ 
+ ##########################
+ ### USER CONFIGURATION ###
+ ##########################
+ 
+-courtney() {
+-	# Set CDM theme
+-	theme=lime
+-
+-	# List user allowed WM binary names
+-	wmbinlist=(openbox-session)
+-
+-	# List user allowed WM display names
+-	wmdisplist=(Openbox)
+-
+-	# Allow console login?
+-	allowconsole=yes
+-
+-	# Allow shutdown?
+-	allowshutdown=no
+-
+-	# Set specific display for user
+-	# (Not honored unless locktty=yes)
+-	# display=1
+-}
++# Example confir for user courtney
++#
++#courtney() {
++#	# Set CDM theme
++#	theme=lime
++#
++#	# List user allowed WM binary names
++#	wmbinlist=(openbox-session)
++#
++#	# List user allowed WM display names
++#	wmdisplist=(Openbox)
++#
++#	# Allow console login?
++#	allowconsole=yes
++#
++#	# Allow shutdown?
++#	allowshutdown=no
++#
++#	# Set specific display for user
++#	# (Not honored unless locktty=yes)
++#	# display=1
++#}
+ 
+ ############################
+ ### SYSTEM CONFIGURATION ###
diff --git a/cdm.spec b/cdm.spec
new file mode 100644
index 0000000..5f1abbf
--- /dev/null
+++ b/cdm.spec
@@ -0,0 +1,69 @@
+Name:		cdm	
+Version:	0.5.3
+Release:	4%{?dist}
+Summary:	Very minimalistic login manager	
+
+Group:		User Interface/X
+License:	GPLv2+
+URL:		http://cdm.ghost1227.com
+Source0:	http://cdm.ghost1227.com/repo/%{name}-%{version}.tar.gz
+
+Requires:	dialog xorg-x11-xinit xorg-x11-utils ConsoleKit pm-utils
+Patch0:		cdm-fedora-default-config.patch
+BuildArchitectures:	noarch
+
+%description
+
+CDM is a minimalistic, yet full-featured replacement for login-managers 
+like slim, kdm, gdm and qingy that provides a fast, dialog-based login 
+system without the overhead of the X Window System. Written in pure bash.
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+mkdir -p $RPM_BUILD_ROOT/%{_datarootdir}/%{name}/
+
+install -Dm755 src/cdm $RPM_BUILD_ROOT/%{_bindir}/cdm
+install -Dm644 src/zzz-cdm-profile.sh $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/zzz-cdm-profile.sh
+install -Dm644 src/cdmrc $RPM_BUILD_ROOT/%{_sysconfdir}/cdmrc
+install -m755 src/xinitrc $RPM_BUILD_ROOT/%{_datarootdir}/%{name}/
+cp -rf src/themes/* $RPM_BUILD_ROOT/%{_datarootdir}/%{name}/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING CHANGELOG src/xinitrc.skel
+%{_bindir}/cdm
+%{_sysconfdir}/profile.d/zzz-cdm-profile.sh
+%{_datarootdir}/%{name}/
+
+%config(noreplace) %{_sysconfdir}/cdmrc
+
+
+
+
+%changelog
+* Tue Feb 22 2011 Mikhail Kulemin <mihkulelin at gmail.com> - 0.5.3-4
+- Add xinitrc file
+- Add requires 
+- Add patch to config for Fedora
+- Correct license issues
+
+* Tue Feb 8 2011 Mikhail Kulemin <mihkulemin at gmail.com> - 0.5.3-3
+- Fix doc files installation
+- Minor fixes in spec 
+
+* Mon Feb 7 2011 Mikhail Kulemin <mihkulemin at gmail.com> - 0.5.3-2
+- First build
+- Fix errors in spec
diff --git a/sources b/sources
index e69de29..7017be1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9a7b00559cfc72f761ad172819c61c7f  cdm-0.5.3.tar.gz


More information about the scm-commits mailing list