Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
alogin-xen
> alogin-xen.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File alogin-xen.spec of Package alogin-xen
#!BuildIgnore: post-build-checks %define realname alogin Name: alogin-xen Summary: incredible login tool Version: 0.11 Release: 1 URL: http://www.energymech.net/madcamel/fm/ Source: %{realname}-%{version}.tgz Patch0: %{realname}.diff Group: System Environment/Base License: (c) 2000 Robert Salizar, freely destributable Vendor: linux-administrator.com Packager: Carsten Schoene <cs@linux-administrator.com> BuildRoot: %{_tmppath}/%{name}-%{version}-root AutoReqProv: no BuildArch: noarch Requires: perl Requires: perl-User-Utmp Requires: util-linux BuildPreReq: patch gcc %if 0%{?suse_version} Patch1: %{name}-suse.diff %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} Patch1: %{name}-fedora.diff %endif %description Auto login of consoles %prep %setup -n %{realname}-%{version} %patch0 -p1 %patch1 -p1 %build %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT # echo install -g 0 -o 0 -m 755 alogin /bin/alogin install -d $RPM_BUILD_ROOT/bin install -m 755 alogin $RPM_BUILD_ROOT/bin/alogin # Installscript Ende install -d $RPM_BUILD_ROOT/etc cp PATCH/alogin.conf $RPM_BUILD_ROOT/etc/ install -d $RPM_BUILD_ROOT/usr/share/alogin cp PATCH/inittab $RPM_BUILD_ROOT/usr/share/alogin/inittab cp PATCH/securetty $RPM_BUILD_ROOT/usr/share/alogin/securetty touch $RPM_BUILD_ROOT/etc/inittab-without-alogin touch $RPM_BUILD_ROOT/etc/securetty-without-alogin %post esc=`echo -en "\033"` green="${esc}[1;32m" yellow="${esc}[1;33m" red="${esc}[1;31m" blue="${esc}[1;34m" norm=`echo -en "${esc}[m\017"` cp /etc/inittab /etc/inittab-without-alogin cp /usr/share/alogin/inittab /etc/inittab cp /etc/securetty /etc/securetty-without-alogin cp /usr/share/alogin/securetty /etc/securetty /sbin/init q || : echo -e "${red} Currently no grub.conf patch available!${norm}" echo -e "${blue} Please add something like: console=tty0 console=ttyS0,9600 ${norm}" echo -e "${blue} to your /boot/grub/menu.lst into the kernel line ${norm}" %postun %preun if [ -e /etc/securetty-without-alogin ]; then mv /etc/securetty-without-alogin /etc/securetty touch /etc/securetty-without-alogin fi if [ -e /etc/inittab-without-alogin ] ; then mv /etc/inittab-without-alogin /etc/inittab touch /etc/inittab-without-alogin /sbin/init q || : fi %files %defattr(-,root,root) %config(noreplace) /etc/alogin.conf /etc/inittab-without-alogin /etc/securetty-without-alogin %dir /usr/share/alogin /usr/share/alogin/* /bin/alogin %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -rf %{_builddir}/%{name}-%{version} %changelog * Tue Jan 15 2008 Carsten Schoene <cs@linux-administrator.com> - 0.11 - modified patches to fit xen environments and create alogin-xen package * Sun Apr 01 2007 Carsten Schoene <cs@linux-administrator.com> - combined suse & fedora package into one source base - remove perl-User-Utmp module from this package and create it as standalone package. - migrated the package to buildservice