source: ProjectBuilder/projects/dploy/devel/dploy-dhcp/rpm/dploy-dhcp.spec@ 388

Last change on this file since 388 was 388, checked in by Bruno Cornec, 16 years ago

dploy is now managed by pb 0.9.0

File size: 1.2 KB
Line 
1#
2# $Id$
3#
4
5Summary: dploy.org DHCP interface tools
6Summary(fr): Outils d'interface DHCP pour dploy.org
7
8Name: PBPKG
9Version: PBVER
10Release: PBTAGPBSUF
11License: GPL
12Group: PBGRP
13Url: PBURL
14Source: PBSRC
15BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
16Requires: dploy-common, dhcp-server, sudo, perl, PBDEP
17
18%description
19PBDESC
20
21%description -l fr
22Outils d'interface DHCP pour dploy.org
23
24%prep
25%setup -q
26
27%install
28%{__rm} -rf $RPM_BUILD_ROOT
29export DESTDIR=$RPM_BUILD_ROOT
30export PREFIX=%{_exec_prefix}
31export CONFDIR=%{_sysconfdir}/PBPROJ
32./install.sh
33
34%clean
35%{__rm} -rf $RPM_BUILD_ROOT
36
37%files
38%defattr(-,root,root)
39%doc ChangeLog
40#%doc INSTALL COPYING README AUTHORS NEWS
41%{_bindir}/*
42
43%post
44# Include our configuration file in std dhcp.conf file
45grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf
46if [ $? -ne 0 ]; then
47 echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf
48fi
49
50# Include dploy in sudoers
51grep -qE '^dploy ' /etc/sudoers
52if [ $? -ne 0 ]; then
53 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers
54fi
55
56%changelog
57PBLOG
Note: See TracBrowser for help on using the repository browser.