Changeset 32 for devel


Ignore:
Timestamp:
01/17/08 20:39:26 (4 years ago)
Author:
bruno
Message:

First set of files allowing a packageable dploy-dhcp

Location:
devel
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • devel/dploy-dhcp/bin/dploy-add2dhcp

    r31 r32  
    99use File::Copy; 
    1010 
    11 my $dhcp="/etc/dhcpd.d/dploy.org.conf"; 
     11my $dhcp="PBCONF/dhcpd.conf"; 
    1212# 
    1313# /etc/dhcpd.conf should include that line: 
  • devel/dploy-dhcp/install.sh

    r31 r32  
    1212 
    1313echo "PBPKG PBVER-rPBREV will be installed under $local" 
     14mkdir -p $local/bin 
    1415install -m 0755 -g dploy -o dploy bin/dploy-add2dhcp $local/bin  
  • devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec

    r30 r32  
    1414Source:         PBSRC 
    1515BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) 
    16 Requires:       PBDEP 
     16Requires:       dhcp-server, sudo, perl, PBDEP 
    1717 
    1818%description 
     
    2525%setup -q 
    2626 
    27 %build 
    28 %configure 
    29 make %{?_smp_mflags} 
    30  
    3127%install 
    3228%{__rm} -rf $RPM_BUILD_ROOT 
    33 make DESTDIR=$RPM_BUILD_ROOT install 
     29export DESTDIR=$RPM_BUILD_ROOT 
     30export PREFIX=%{_exec_prefix} 
     31./install.sh 
    3432 
    3533%clean 
     
    3937%defattr(-,root,root) 
    4038%doc ChangeLog 
    41 %doc INSTALL COPYING README AUTHORS NEWS 
     39#%doc INSTALL COPYING README AUTHORS NEWS 
     40%{_bindir}/* 
     41 
     42%pre 
     43# Create dploy Account and group if needed 
     44grep -qE '^dploy:' /etc/group 
     45if [ $? -ne 0 ]; then 
     46    addgroup dploy 
     47fi 
     48grep -qE '^dploy:' /etc/passwd 
     49if [ $? -ne 0 ]; then 
     50    adduser dploy dploy 
     51fi 
     52 
     53%post 
     54# Include our configuration file in std dhcp.conf file 
     55grep -qE '^include "PBCONF/dhcpd.conf";' /etc/passwd 
     56if [ $? -ne 0 ]; then 
     57    echo 'include "PBCONF/dhcpd.conf";' >> /etc/dhcpd.conf 
     58fi 
    4259 
    4360%changelog 
    4461PBLOG 
    45  
  • devel/pbconf/dploy.pb

    r30 r32  
    8080 
    8181# Hash of valid version names 
    82 version devel 
    83 version stable 
     82version pb = devel,stable 
    8483 
    8584# List of files per pkg on which to apply filters 
    8685# Files are mentioned relatively to pbroot/defpkgdir 
    87 #filteredfiles dploy-dhcp = Makefile.PL 
     86filteredfiles dploy-dhcp = install.sh,bin/dploy-add2dhcp, 
    8887#filteredfiles pkg1-doc = configure.in 
  • devel/pbconf/pbfilter/all.pbf

    r30 r32  
    3333# PBURL contains the URL of the Web site of the project 
    3434filter PBURL = http://www.dploy.org 
     35 
     36# Where are stored conf files 
     37filter PBCONF = /etc/dploy.org 
Note: See TracChangeset for help on using the changeset viewer.