1 |
ennael |
66861 |
Summary: Automatically log in |
2 |
|
|
Name: autologin |
3 |
|
|
Version: 1.0.0 |
4 |
umeabot |
1295172 |
Release: %mkrel 38 |
5 |
ennael |
66861 |
Group: System/Base |
6 |
misc |
135148 |
License: GPLv2 |
7 |
ennael |
66861 |
URL: http://www.linux-easy.com/development/autologin/ |
8 |
|
|
Source0: %{name}-%{version}.tar.bz2 |
9 |
|
|
Source1: startx.autologin |
10 |
zezinho |
157213 |
Patch0: autologin-1.0.0-mga.patch |
11 |
ennael |
66861 |
Patch1: autologin-glibc28_fix.diff |
12 |
colin |
229141 |
Patch2: autologin-1.0.0-tty1.patch |
13 |
ovitters |
644341 |
BuildRequires: pam-devel |
14 |
|
|
BuildRequires: automake |
15 |
|
|
BuildRequires: autoconf |
16 |
ennael |
66863 |
Requires: initscripts |
17 |
ennael |
66861 |
|
18 |
|
|
%description |
19 |
|
|
Autologin automatically logs in as the user specified in |
20 |
|
|
/etc/sysconfig/autologin and starts the X session defined there. |
21 |
|
|
|
22 |
|
|
Install autologin if you want to bypass the login screen. |
23 |
|
|
|
24 |
|
|
%prep |
25 |
|
|
%setup -q |
26 |
|
|
|
27 |
|
|
%patch0 -p1 -b .fred |
28 |
|
|
%patch1 -p0 -b .glibc28_fix |
29 |
colin |
229141 |
%patch2 -p1 -b .tty |
30 |
ennael |
66861 |
|
31 |
wally |
336508 |
# fix build with new automake 1.13 |
32 |
|
|
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.* |
33 |
|
|
|
34 |
ennael |
66861 |
%build |
35 |
|
|
#FORCE_AUTOCONF_2_5=1 AUTOMAKE="automake --add-missing" autoreconf |
36 |
|
|
autoreconf -fiv |
37 |
|
|
%configure2_5x |
38 |
|
|
%make |
39 |
|
|
|
40 |
|
|
%install |
41 |
|
|
%makeinstall_std |
42 |
|
|
|
43 |
|
|
install -m755 %{SOURCE1} -D %{buildroot}%{_bindir}/startx.autologin |
44 |
|
|
|
45 |
misc |
135146 |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/ |
46 |
|
|
cat > %{buildroot}%{_sysconfdir}/sysconfig/autologin <<EOF |
47 |
|
|
# uncomment and set the user |
48 |
|
|
#USER= |
49 |
|
|
# |
50 |
|
|
# uncomment if you want to run something else than startx |
51 |
|
|
#EXEC= |
52 |
|
|
# |
53 |
|
|
# uncomment to enable autologin, after setting USER |
54 |
|
|
#AUTOLOGIN=yes |
55 |
|
|
EOF |
56 |
|
|
|
57 |
zezinho |
162730 |
#rename README to show it at install time |
58 |
|
|
mv README README.urpmi |
59 |
|
|
|
60 |
|
|
|
61 |
ennael |
66861 |
%files |
62 |
zezinho |
162730 |
%doc README.urpmi AUTHORS |
63 |
ennael |
66861 |
%{_sbindir}/autologin |
64 |
|
|
%{_bindir}/startx.autologin |
65 |
|
|
%config(noreplace) /etc/pam.d/autologin |
66 |
misc |
135146 |
%config(noreplace) %{_sysconfdir}/sysconfig/autologin |
67 |
ennael |
66861 |
|