-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnetroot.spec.in
66 lines (53 loc) · 1.43 KB
/
netroot.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.gz
License: GPL
Summary: Diskless Boot Support
Group: Applications/System
Requires: syslinux
Requires: memtest86+
Requires: dracut-network
Requires: rsync, gzip, cpio, tar, kexec-tools, kernel
Requires: munge keyutils
Requires: diod >= 1.0.20
Requires: kmod-9nbd
Requires(post): syslinux
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
%define bootdir /boot
%define dracutmoddir /usr/lib/dracut/modules.d
%description
Diskless boot support.
%prep
%setup -q -n %{name}-%{version}
%build
%configure --with-bootdir=%{bootdir} --with-dracutmoddir=%{dracutmoddir}
make
%install
rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
PATH=/sbin:/usr/sbin:$PATH
rm -f %{bootdir}/pxelinux.0 %{bootdir}/memdisk
install -m 644 %{_datadir}/syslinux/pxelinux.0 %{bootdir}/
install -m 644 %{_datadir}/syslinux/memdisk %{bootdir}/
%{_sbindir}/netroot-rebuild
%files
%defattr(-,root,root)
%doc NEWS
%doc ChangeLog
%config(noreplace) %{bootdir}/pxelinux.cfg
%config(noreplace) %{bootdir}/pxelinux.msg
%{bootdir}/freedos.img
%{_sbindir}/*
%{_mandir}/man8/*
%{dracutmoddir}/*
%{_sysconfdir}/kernel/postinst.d/*
%{_sysconfdir}/kernel/prerm.d/*
%changelog
* Mon Mar 30 2015 Jim Garlick <[email protected]>
- Update for rhel7 and package rename to netroot
* Mon Jun 19 2006 Jim Garlick <[email protected]>
- Created