Commit 572f1f43 authored by Anton V. Boyarshinov's avatar Anton V. Boyarshinov

bootsplash added

parent 69433815
......@@ -31,6 +31,16 @@ Obsoletes: design-bootloader-system-%theme design-bootloader-livecd-%theme desig
%description bootloader
Here you find the graphical boot logo. Suitable for both lilo and syslinux.
%package bootsplash
Summary: Theme for splash animations during bootup
License: Distributable
Group: System/Configuration/Boot and Init
Provides: design-bootsplash design-bootsplash-%theme
Requires: bootsplash >= 3.3
%description bootsplash
This package contains graphics for boot process
(needs console splash screen enabled)
%prep
%setup -q
......@@ -38,6 +48,7 @@ Here you find the graphical boot logo. Suitable for both lilo and syslinux.
cp -a /usr/src/design-bootloader-source ./
cp -a bootloader/config bootloader/data-boot/ bootloader/data-install/ design-bootloader-source/
%build
#bootloader
pushd design-bootloader-source/
......@@ -53,24 +64,52 @@ Here you find the graphical boot logo. Suitable for both lilo and syslinux.
install -m 644 bootlogo %buildroot%_datadir/gfxboot/%theme
popd
%post bootloader
#bootsplash
## create directory structure
mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/bootsplash/themes/%theme
cp -a bootsplash/* $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme
pushd $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme/config
#for i in 1 2 3 4 5 11; do \
for i in 1; do \
for f in bootsplash-*.cfg; do \
res=`echo "$f"| sed 's|.*\-\(.*\)\.cfg|\1|'`
ln -s $f vt${i}-${res}.cfg
done
done
popd
#bootloader
%pre bootloader
[ -s /boot/splash/desktop ] && rm -fr /boot/splash/desktop
%post bootloader
%__ln_s -nf %theme/message /boot/splash/message
%__ln_s -nf /boot/splash/%theme /boot/splash/%theme
%__ln_s -nf %_datadir/gfxboot/%theme %_datadir/gfxboot/%theme
%preun bootloader
#bootloader
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%files bootloader
%_datadir/gfxboot/%theme
/boot/splash/%theme
#bootsplash
%post bootsplash
%__ln_s -nf %theme %_sysconfdir/bootsplash/themes/current
%preun bootsplash
[ $1 = 0 ] || exit 0
[ "`readlink %_sysconfdir/bootsplash/themes/current`" != %theme ] ||
%__rm -f %_sysconfdir/bootsplash/themes/current
%files bootsplash
%_sysconfdir/bootsplash/themes/%theme/
%changelog
* Thu Dec 18 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment