Changes

From SME Server
Jump to navigationJump to search
181 bytes added ,  21:49, 1 October 2014
Line 162: Line 162:  
  # now we generate a file list so we know what's in the RPM; see the
 
  # now we generate a file list so we know what's in the RPM; see the
 
  # %files section below for how it's actually used
 
  # %files section below for how it's actually used
 
+
# A you can see below we set permissions and ownership on files and directories
 
  rm -rf $RPM_BUILD_ROOT
 
  rm -rf $RPM_BUILD_ROOT
 +
rm -f %{name}-%{version}-filelist
 
  (cd root  ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
 
  (cd root  ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
+
  /sbin/e-smith/genfilelist \
 +
    '''--dir /var/lib/packageName/tmp 'attr(0770,root,www)' \'''
 
     --dir /var/service/tinydns 'attr(0755,root,root)' \
 
     --dir /var/service/tinydns 'attr(0755,root,root)' \
 
     --dir /var/service/tinydns/log 'attr(0755,root,root)' \
 
     --dir /var/service/tinydns/log 'attr(0755,root,root)' \
Line 177: Line 179:  
     --file /var/service/dhcp-dns/dhcp-dns 'attr(0750,root,root)' \
 
     --file /var/service/dhcp-dns/dhcp-dns 'attr(0750,root,root)' \
 
     --file /var/service/dhcp-dns/run 'attr(0750,root,root)' \
 
     --file /var/service/dhcp-dns/run 'attr(0750,root,root)' \
     > %{name}-%{version}-%{release}-filelist
+
     $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
 
  # This section will help clear out the build root before
 
  # This section will help clear out the build root before
 
  # building the RPM
 
  # building the RPM

Navigation menu