Ignore:
Timestamp:
01/24/08 20:05:59 (4 years ago)
Author:
bruno
Message:

first working packages for common and dhcp.
dhcp needs more work to handle correctly subnet, which was not considered up to now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec

    r33 r34  
    2828%{__rm} -rf $RPM_BUILD_ROOT 
    2929export DESTDIR=$RPM_BUILD_ROOT 
    30 export PREFIX=%{_exec_prefix} 
     30export PREFIX=%{_exec_prefix}  
     31export CONFDIR=%{_sysconfdir}/PBPROJ 
    3132./install.sh 
    3233 
     
    4243%post 
    4344# Include our configuration file in std dhcp.conf file 
    44 grep -qE '^include "PBCONF/dhcpd.conf";' /etc/dhcpd.conf 
     45grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf 
    4546if [ $? -ne 0 ]; then 
    46     echo 'include "PBCONF/dhcpd.conf";' >> /etc/dhcpd.conf 
     47    echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf 
    4748fi 
    4849 
     
    5051grep -qE '^dploy ' /etc/sudoers 
    5152if [ $? -ne 0 ]; then 
    52     echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/dhcpd.conf 
     53    echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers 
    5354fi 
    5455 
Note: See TracChangeset for help on using the changeset viewer.