Last change
on this file since 470 was 470, checked in by Bruno Cornec, 16 years ago |
- dploy-pxe requires syslinux (at least on rhel 5)
- dploy-pxe adds permission to mount/umount iso images via sudoers
- dploy-pxe now creates all required dirs under /tftpboot
- dploy-dhcp owns the /etc/dhcpd.conf file
- dploy-dhcp doesn't include by default a non-existent /etc/dploy/dhcp.conf file
(Those post install script should become real scripts launched by all install means)
|
File size:
1.3 KB
|
Rev | Line | |
---|
[388] | 1 | #
|
---|
| 2 | # $Id$
|
---|
| 3 | #
|
---|
| 4 |
|
---|
[420] | 5 | Summary: dploy.org PXD interface tools
|
---|
| 6 | Summary(fr): Outils d'interface PXD pour dploy.org
|
---|
[388] | 7 |
|
---|
| 8 | Name: PBPKG
|
---|
| 9 | Version: PBVER
|
---|
| 10 | Release: PBTAGPBSUF
|
---|
| 11 | License: GPL
|
---|
| 12 | Group: PBGRP
|
---|
| 13 | Url: PBURL
|
---|
| 14 | Source: PBSRC
|
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
[421] | 16 | BuildArch: noarch
|
---|
[470] | 17 | Requires: dploy-common, tftp-server, sudo, perl, syslinux, PBDEP
|
---|
[388] | 18 |
|
---|
| 19 | %description
|
---|
| 20 | PBDESC
|
---|
| 21 |
|
---|
| 22 | %description -l fr
|
---|
[420] | 23 | Outils d'interface PXE pour dploy.org
|
---|
[388] | 24 |
|
---|
| 25 | %prep
|
---|
| 26 | %setup -q
|
---|
| 27 |
|
---|
| 28 | %install
|
---|
| 29 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 30 | export DESTDIR=$RPM_BUILD_ROOT
|
---|
| 31 | export PREFIX=%{_exec_prefix}
|
---|
| 32 | export CONFDIR=%{_sysconfdir}/PBPROJ
|
---|
| 33 | ./install.sh
|
---|
| 34 |
|
---|
| 35 | %clean
|
---|
| 36 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
| 37 |
|
---|
| 38 | %files
|
---|
| 39 | %defattr(-,root,root)
|
---|
| 40 | %doc ChangeLog
|
---|
| 41 | #%doc INSTALL COPYING README AUTHORS NEWS
|
---|
| 42 | %{_bindir}/*
|
---|
| 43 |
|
---|
| 44 | %post
|
---|
[470] | 45 | # Include dploy in sudoers
|
---|
| 46 | grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep /bin/umount
|
---|
| 47 | if [ $? -ne 0 ]; then
|
---|
| 48 | echo 'dploy ALL=NOPASSWD: /bin/mount -o loop ?*' >> %{_sysconfdir}/sudoers
|
---|
| 49 | echo 'dploy ALL=NOPASSWD: /bin/umount ?*' >> %{_sysconfdir}/sudoers
|
---|
| 50 | fi
|
---|
[388] | 51 |
|
---|
[470] | 52 | # Setup all required paths for tftpboot environment
|
---|
| 53 | pathpxe=`grep pathpxe %{_sysconfdir}/PBPROJ/dploy.conf | cut -d= -f2`
|
---|
| 54 | for p in $pathpxe $pathpxe/../mondorescue $pathpxe/../linuxcoe; do
|
---|
| 55 | if [ ! -d $p ]; then
|
---|
| 56 | mkdir -p $p
|
---|
| 57 | fi
|
---|
| 58 | chgrp dploy $p
|
---|
| 59 | chmod 775 $p
|
---|
| 60 | done
|
---|
| 61 |
|
---|
[388] | 62 | %changelog
|
---|
| 63 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.