1 |
# $Id: smeserver-pxe.spec,v 1.0 2022/04/28 18:45:26 brianr Exp $ |
2 |
# Authority: nocvs |
3 |
# Name: Trevor Batley |
4 |
|
5 |
Summary: Allow pxeboot of client machines over network |
6 |
%define name smeserver-pxe |
7 |
Name: %{name} |
8 |
%define version 0.1 |
9 |
%define release 4 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Network |
14 |
Source: %{name}-%{version}.tar.xz |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArch: noarch |
17 |
Requires: e-smith-base |
18 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
19 |
AutoReq: yes |
20 |
Patch1: smeserver-pxe-0.1-update_default_arch.patch |
21 |
Patch2: smeserver-pxe-0.1-nextserver.patch |
22 |
|
23 |
%description |
24 |
Global settings for dhcp to allow clients to network boot. |
25 |
Assumes sme server is acting as dhcp server. |
26 |
|
27 |
%changelog |
28 |
* Sat Jul 2 2022 Trevor Batley ,trevor@batley.id.au> 0.1-4.sme |
29 |
- add event smeserver-pxe-update to trigger dhcpd restart via creatlinks [12087] |
30 |
|
31 |
* Sat May 28 2022 Trevor Batley <trevor@batley.id.au> 0.1-3.sme |
32 |
- Remove incorrect = sign from nextserver parameter and enclsing "'s |
33 |
|
34 |
* Mon May 09 2022 Trevor Batley <trevor@batley.id.au> 0.1-2.sme |
35 |
- Set default architecture executables to Centos 7 defaults [SME 11969] |
36 |
|
37 |
* Thu Apr 28 2022 Trevor Batley <trevor@batley.id.au> 0.1-1.sme |
38 |
- Initial release [SME 10821] |
39 |
- Split of PXE Global parameters out of smeserver-thinclient |
40 |
- Allow for different architectures (including UEFI booting) |
41 |
|
42 |
%prep |
43 |
|
44 |
%setup -q -n %{name}-%{version} |
45 |
%patch1 -p1 |
46 |
%patch2 -p1 |
47 |
|
48 |
%build |
49 |
perl createlinks |
50 |
|
51 |
%install |
52 |
/bin/rm -rf $RPM_BUILD_ROOT |
53 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
54 |
/bin/rm -f %{name}-%{version}-filelist |
55 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
56 |
|
57 |
%clean |
58 |
rm -rf $RPM_BUILD_ROOT |
59 |
|
60 |
%files -f %{name}-%{version}-filelist |
61 |
|
62 |
%defattr(-,root,root) |
63 |
|
64 |
%pre |
65 |
|
66 |
%preun |
67 |
|
68 |
%post |
69 |
|
70 |
%postun |