Magellan Linux

Diff of /trunk/mage-buildserver/buildserver-prepare.sh

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

revision 2588 by niro, Thu Feb 6 13:07:22 2014 UTC revision 2730 by niro, Sun Aug 10 19:35:40 2014 UTC
# Line 73  do Line 73  do
73   echo "Warning: subversion already installed for arch '${arch}'"   echo "Warning: subversion already installed for arch '${arch}'"
74   fi   fi
75    
76     # install openssh
77     if [ ! -f ${BUILDROOT}/.stamps/${arch}_openssh-ok ]
78     then
79     runarch "${arch}" mage install openssh || die "${arch} install openssh"
80     touch ${BUILDROOT}/.stamps/${arch}_openssh-ok
81     else
82     echo "Warning: openssh already installed for arch '${arch}'"
83     fi
84    
85   if [[ ${arch} != src ]]   if [[ ${arch} != src ]]
86   then   then
87   if [ ! -f ${BUILDROOT}/.stamps/${arch}_common-devutils-ok ]   if [ ! -f ${BUILDROOT}/.stamps/${arch}_common-devutils-ok ]
# Line 100  do Line 109  do
109   echo "Warning: ccache already configured for arch '${arch}'"   echo "Warning: ccache already configured for arch '${arch}'"
110   fi   fi
111   fi   fi
112    
113     # update-ca-certificates
114     runarch "${arch}" update-ca-certificates # no die here, cmd may missing
115    
116     # create list of protected packages
117     echo "BUILDSERVER_CONFIG_DIR=\"${BUILDSERVER_CONFIG_DIR}\"" > ${BUILDROOT}/${arch}/.runrc
118     install -d ${BUILDSERVER_CONFIG_DIR}/protected
119     cat >> ${BUILDROOT}/${arch}/.runrc << "EOF"
120    env-rebuild
121    source /etc/profile
122    
123    if [ -f /etc/rc.d/init.d/functions ]
124    then
125     source /etc/rc.d/init.d/functions
126    else
127     die "/etc/rc.d/init.d/functions not found"
128    fi
129    if [ -f /etc/mage.rc.global ]
130    then
131     source /etc/mage.rc.global
132    else
133     die "/etc/mage.rc.global not found"
134    fi
135    if [ -f /etc/mage.rc ]
136    then
137     source /etc/mage.rc
138    else
139     die "/etc/mage.rc not found"
140    fi
141    
142    for mage in $(find ${INSTALLDB} -name \*.${MAGESUFFIX})
143    do
144     pkgname=$(basename ${i} .${MAGESUFFIX})
145     pkgname="${pkgname%-*-*}"
146     echo "${pkgname}" > ${BUILDSERVER_CONFIG_DIR}/protected/"${pkgname}"
147    done
148    EOF
149    
150   # cleanup   # cleanup
151   runarch "${arch}" mage clean || die "${arch} mage clean"   runarch "${arch}" mage clean || die "${arch} mage clean"
152    

Legend:
Removed from v.2588  
changed lines
  Added in v.2730