path: root/syslinux.spec.in
diff options
authorH. Peter Anvin <hpa@zytor.com>2006-09-18 15:19:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-09-18 15:19:45 -0700
commitf38f3262a88ea9d1a448d3ac7ef8861fa666588e (patch)
treed77ecbefd7ec5382ab66c40b924f7fb5bd379395 /syslinux.spec.in
parentd0826f484a0f5adf46afceebd264a5d3955a2a9b (diff)
rpm spec: add syslinux-tftpboot module
Diffstat (limited to 'syslinux.spec.in')
1 files changed, 35 insertions, 15 deletions
diff --git a/syslinux.spec.in b/syslinux.spec.in
index 05bd31e5..1160f297 100644
--- a/syslinux.spec.in
+++ b/syslinux.spec.in
@@ -1,7 +1,7 @@
# -*- rpm -*-
-Summary: Kernel loader which uses a FAT or iso9660 filesystem or a PXE network
+Summary: Kernel loader which uses a FAT, ext2/3 or iso9660 filesystem or a PXE network
Name: syslinux
Version: %{RPMVERSION}
Release: 1
@@ -27,6 +27,7 @@ Requires: mtools, libc.so.6()(64bit)
%package devel
Summary: Development environment for SYSLINUX add-on modules
Group: Development/Libraries
+Requires: syslinux
SYSLINUX is a suite of bootloaders, currently supporting DOS FAT
@@ -39,6 +40,15 @@ The SYSLINUX boot loader contains an API, called COM32, for writing
sophisticated add-on modules. This package contains the libraries
necessary to compile such modules.
+%package tftpboot
+Summary: SYSLINUX modules in /tftpboot, available for network booting
+Group: Applications/Internet
+Requires: syslinux
+%description tftpboot
+All the SYSLINUX/PXELINUX modules directly available for network
+booting in the /tftpboot directory.
%setup -q -n syslinux-%{VERSION}
@@ -51,15 +61,19 @@ make -C sample tidy
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
-mkdir -p %{buildroot}%{_libdir}/syslinux
+mkdir -p %{buildroot}%{_sharedir}/syslinux
mkdir -p %{buildroot}%{_includedir}
-mkdir -p %{buildroot}/boot
+mkdir -p %{buildroot}/boot %{buildroot}/tftpboot/pxelinux.cfg
make install-all \
INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
- LIBDIR=%{_libdir} INCDIR=%{_includedir}
+ LIBDIR=%{_sharedir} INCDIR=%{_includedir}
make -C sample tidy
-cp mkdiskimage sys2ansi.pl keytab-lilo.pl %{buildroot}%{_libdir}/syslinux
-cp %{buildroot}%{_libdir}/syslinux/*.c32 %{buildroot}/boot
+cp mkdiskimage sys2ansi.pl keytab-lilo.pl %{buildroot}%{_sharedir}/syslinux
+cp %{buildroot}%{_sharedir}/syslinux/*.c32 %{buildroot}/boot
+cp %{buildroot}%{_sharedir}/syslinux/memdisk %{buildroot}/boot
+cp %{buildroot}%{_sharedir}/syslinux/*.c32 %{buildroot}/tftpboot
+cp %{buildroot}%{_sharedir}/syslinux/pxelinux.0 %{buildroot}/tftpboot
+cp %{buildroot}%{_sharedir}/syslinux/memdisk %{buildroot}/tftpboot
rm -rf %{buildroot}
@@ -73,18 +87,21 @@ rm -rf %{buildroot}
%files devel
+%files tftpboot
# If we have a /boot/extlinux.conf file, assume extlinux is our bootloader
@@ -94,6 +111,9 @@ if [ -f /boot/extlinux.conf ]; then extlinux --update /boot; fi
+* Mon Sep 19 2006 H. Peter Anvin <hpa@zytor.com>
+- Add a syslinux-tftpboot module.
* Wed Sep 21 2005 H. Peter Anvin <hpa@zytor.com>
- If /boot/extlinux.conf exist, run extlinux --update.