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 |
|
---|
5 | Summary: dploy.org DHCP interface tools
|
---|
6 | Summary(fr): Outils d'interface DHCP pour dploy.org
|
---|
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)
|
---|
16 | Requires: dploy-common, dhcp-server, sudo, perl, PBDEP
|
---|
17 |
|
---|
18 | %description
|
---|
19 | PBDESC
|
---|
20 |
|
---|
21 | %description -l fr
|
---|
22 | Outils d'interface DHCP pour dploy.org
|
---|
23 |
|
---|
24 | %prep
|
---|
25 | %setup -q
|
---|
26 |
|
---|
27 | %install
|
---|
28 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
29 | export DESTDIR=$RPM_BUILD_ROOT
|
---|
30 | export PREFIX=%{_exec_prefix}
|
---|
31 | export 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
|
---|
45 | grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf
|
---|
46 | if [ $? -ne 0 ]; then
|
---|
47 | echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf
|
---|
48 | fi
|
---|
49 |
|
---|
50 | # Include dploy in sudoers
|
---|
51 | grep -qE '^dploy ' /etc/sudoers
|
---|
52 | if [ $? -ne 0 ]; then
|
---|
53 | echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers
|
---|
54 | fi
|
---|
55 |
|
---|
56 | %changelog
|
---|
57 | PBLOG
|
---|
Note:
See
TracBrowser
for help on using the repository browser.