Magellan Linux

Diff of /trunk/extras/distcc/distcc-3.1-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4262 by niro, Tue Dec 1 10:43:57 2009 UTC revision 4263 by niro, Tue Dec 1 14:01:17 2009 UTC
# Line 45  split_info_distcc() Line 45  split_info_distcc()
45   >= dev-lang/python-2.6   >= dev-lang/python-2.6
46   >= dev-libs/popt-1.15   >= dev-libs/popt-1.15
47   >= net-dns/avahi-0.6.25"   >= net-dns/avahi-0.6.25"
48    
49     preinstall()
50     {
51     # stop daemon since script is being updated
52     if [[ -n $(pidof distccd) ]] && [[ -x /etc/init.d/distccd ]] &&
53     [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
54     then
55     /etc/init.d/distccd stop
56     fi
57    
58     # add user distcc
59     ${MLIBDIR}/museradd -o "-u 240 -g daemon -s /bin/false -d /dev/null -c distccd" distcc
60     }
61    
62     postinstall()
63     {
64     # install dirs and set right permissions
65     install -o distcc -g daemon -d ${MROOT}/var/run/distccd
66     chown -R distcc:daemon ${MROOT}/var/run/distccd
67    
68     # installs compiler symlinks
69     if [ -x /usr/bin/distcc-config ] && \
70     [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
71     then
72     /usr/bin/distcc-config -i
73     else
74     echo "You *must* run distcc-config -i in the chroot of ${MROOT}"
75     fi
76    
77     # show current settings of distcc
78     if [ -x /usr/bin/distcc-config ]
79     then
80     /usr/bin/distcc-config -p
81     fi
82    
83     echo
84     echo "The --allow options must be set with this version of distcc."
85     echo "Please change /etc/conf.d/distccd to your needs."
86     echo
87     }
88  }  }
89    
90  split_info_distccmon-gnome()  split_info_distccmon-gnome()
# Line 117  src_install_distccmon-gnome() Line 157  src_install_distccmon-gnome()
157   # remove all other stuff but the gtk2 client   # remove all other stuff but the gtk2 client
158   zapmost ${BINDIR} usr/bin/distccmon-gnome usr/share/distcc || die   zapmost ${BINDIR} usr/bin/distccmon-gnome usr/share/distcc || die
159  }  }
   
 preinstall()  
 {  
   
  # stop daemon since script is being updated  
  if [[ -n $(pidof distccd) ]] && [[ -x /etc/init.d/distccd ]] &&  
  [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]  
  then  
  /etc/init.d/distccd stop  
  fi  
   
  # add user distcc  
  ${MLIBDIR}/museradd -o "-u 240 -g daemon -s /bin/false -d /dev/null -c distccd" distcc  
 }  
   
 postinstall()  
 {  
  # install dirs and set right permissions  
  install -o distcc -g daemon -d ${MROOT}/var/run/distccd  
  chown -R distcc:daemon ${MROOT}/var/run/distccd  
   
  # installs compiler symlinks  
  if [ -x /usr/bin/distcc-config ] && \  
  [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]  
  then  
  /usr/bin/distcc-config -i  
  else  
  echo "You *must* run distcc-config -i in the chroot of ${MROOT}"  
  fi  
   
  # show current settings of distcc  
  if [ -x /usr/bin/distcc-config ]  
  then  
  /usr/bin/distcc-config -p  
  fi  
   
  echo  
  echo "The --allow options must be set with this version of distcc."  
  echo "Please change /etc/conf.d/distccd to your needs."  
  echo  
 }  

Legend:
Removed from v.4262  
changed lines
  Added in v.4263