Source1: http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.06.tar.gz
# Source1-md5: ab705f8a0be0598770014bd5498b2eb2
Source2: %{name}-build.sh
-Patch0: https://github.com/Tomas-M/linux-live/pull/5.patch
-# Patch0-md5: 603c98f4c516929044bccf0419423586
+Patch0: pld.patch
+Patch1: https://github.com/Tomas-M/linux-live/pull/5.patch
+# Patch1-md5: 603c98f4c516929044bccf0419423586
URL: http://www.linux-live.org/
BuildRequires: nasm
BuildRequires: perl-base
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
cd initramfs/static
./update
# rebuild isolinux to be in /pld/ subdir
cd tools
CC="%{__cc}" \
-sh -x ./isolinux.bin.update
+sed -e '/rm/d' ./isolinux.bin.update | sh -x
%install
rm -rf $RPM_BUILD_ROOT
cp -a bootfiles bootinfo.txt build initramfs livekitlib tools $RPM_BUILD_ROOT%{_libexecdir}
install -p %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/linux-live-build
+rm -r $RPM_BUILD_ROOT%{_libexecdir}/tools/syslinux-*
+
install -d $RPM_BUILD_ROOT%{_sysconfdir}
cp -p .config $RPM_BUILD_ROOT%{_sysconfdir}/config
--- /dev/null
+--- linux-live-1.8/.config~ 2013-01-04 16:17:07.000000000 +0200
++++ linux-live-1.8/.config 2013-03-25 09:20:51.899864473 +0200
+@@ -7,7 +7,7 @@
+ # Must not contain any spaces.
+ # If you change it, you must run ./tools/isolinux.bin.update script
+ # in order to update isolinux.bin for CD booting.
+-LIVEKITNAME="mylinux"
++LIVEKITNAME="pld"
+
+ # Kernel file, will be copied to your Live Kit
+ VMLINUZ=/boot/vmlinuz