/[packages]/cauldron/autologin/current/SPECS/autologin.spec
ViewVC logotype

Contents of /cauldron/autologin/current/SPECS/autologin.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1295172 - (show annotations) (download)
Fri Sep 21 18:02:05 2018 UTC (6 years, 6 months ago) by umeabot
File size: 1559 byte(s)
Mageia 7 Mass Rebuild
1 Summary: Automatically log in
2 Name: autologin
3 Version: 1.0.0
4 Release: %mkrel 38
5 Group: System/Base
6 License: GPLv2
7 URL: http://www.linux-easy.com/development/autologin/
8 Source0: %{name}-%{version}.tar.bz2
9 Source1: startx.autologin
10 Patch0: autologin-1.0.0-mga.patch
11 Patch1: autologin-glibc28_fix.diff
12 Patch2: autologin-1.0.0-tty1.patch
13 BuildRequires: pam-devel
14 BuildRequires: automake
15 BuildRequires: autoconf
16 Requires: initscripts
17
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 %patch2 -p1 -b .tty
30
31 # fix build with new automake 1.13
32 sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.*
33
34 %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 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 #rename README to show it at install time
58 mv README README.urpmi
59
60
61 %files
62 %doc README.urpmi AUTHORS
63 %{_sbindir}/autologin
64 %{_bindir}/startx.autologin
65 %config(noreplace) /etc/pam.d/autologin
66 %config(noreplace) %{_sysconfdir}/sysconfig/autologin
67

  ViewVC Help
Powered by ViewVC 1.1.30