/[smeserver]/builds_bin/build_installer
ViewVC logotype

Diff of /builds_bin/build_installer

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

Revision 1.9 by slords, Thu Jul 19 19:59:15 2007 UTC Revision 1.12 by slords, Mon Mar 17 03:08:23 2008 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
 [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)  
   
3  distname='SME Server'  distname='SME Server'
 distrel=7  
4  distvers=$(basename $(pwd))  distvers=$(basename $(pwd))
5    distrel=${distvers:0:1}
6  distarch=$(uname -i)  distarch=$(uname -i)
7    
8  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \  if ! [ -d $distarch ]
9    then
10        echo "No $distarch directory?"
11        exit 1
12    fi
13    
14    if [ "$distrel" == "7" ]
15    then
16        PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
17          --productpath SME \          --productpath SME \
18          --withnumbers \          --withnumbers \
19          $(pwd)/cdrom.image/          $(pwd)/$distarch/
20    
21  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \      PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
22          --product SME \          --product SME \
23          $(pwd)/cdrom.image \          $(pwd)/$distarch \
24          $distarch > pkgorder          $distarch > pkgorder.$distarch
25    
26  for PKG in /releases/$distrel/smeextras/$distarch/RPMS/*.rpm      for PKG in /releases/$distrel/smeextras/$distarch/RPMS/*.rpm
27  do      do
28      PKGFILE=$(basename $PKG)          PKGFILE=$(basename $PKG)
29      if [ ! -f $(pwd)/cdrom.image/SME/$PKGFILE ]          if [ ! -f $(pwd)/$distarch/SME/RPMS/$PKGFILE ]
30      then          then
31          ln -sf $PKG $(pwd)/cdrom.image/SME/RPMS/              ln -sf $PKG $(pwd)/$distarch/SME/RPMS/
32      fi          fi
33  done      done
34    
35  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \      PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
36          --product "$distname" \          --product "$distname" \
37          --version "$distrel.0" \          --version "$distrel.0" \
38          --release "$distname" \          --release "$distname" \
39          --prodpath SME \          --prodpath SME \
40          --pkgorder pkgorder \          --pkgorder pkgorder.$distarch \
41          $(pwd)/cdrom.image/          $(pwd)/$distarch/
42    
43        sed -i 's@1,2,3@1@' $(pwd)/$distarch/.discinfo
44    else
45        for PKG in /releases/testing/$distrel/smeextras/$distarch/RPMS/*.rpm
46        do
47            PKGFILE=$(basename $PKG)
48            if [ ! -f $(pwd)/$distarch/SME/$PKGFILE ]
49            then
50                ln -sf $PKG $(pwd)/$distarch/SME/
51            fi
52        done
53    
54        sed '/^cat .*pluginconf.d\/fedorakmod.conf.*<<.*EOF/,/^EOF$/s@^enabled.*@enabled = 0@' \
55            /usr/lib/anaconda-runtime/upd-instroot > upd-instroot
56        chmod 755 upd-instroot
57        sudo chown root:root upd-instroot
58    
59        PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
60            --product "$distname" \
61            --version "$distrel.0" \
62            --release "$distname" \
63            --prodpath SME \
64            --bugurl http://bugs.contribs.org/ \
65            $(pwd)/$distarch/
66    
67        sudo rm upd-instroot
68    fi
69    
70  # Remove previous linked files  # Remove previous linked files
71  find $(pwd)/cdrom.image/SME/RPMS/ -type l | xargs rm -f  find $(pwd)/$distarch/SME/ -type l | xargs rm -f
72    
73  # Copy updated isolinux files  # Copy updated isolinux files
74  sudo cp -f /builds/isolinux/* $(pwd)/cdrom.image/isolinux/  sudo cp -f /stage/extra/isolinux/$distrel/* $(pwd)/$distarch/isolinux/
   
 sed -i 's@1,2,3@1@' $(pwd)/cdrom.image/.discinfo  
75    
76  sudo chown -R buildcvs:developers $(pwd)/cdrom.image/  sudo chown -R 9000:9001 $(pwd)/$distarch/
77  sudo chmod -R g+w $(pwd)/cdrom.image/  sudo chmod -R u+rwX,g+rwX,o+rX,o-w $(pwd)/$distarch/
78    
79  echo "You now need to run /builds/bin/build_ISO as non-root"  echo "You now need to run /stage/bin/build_ISO as non-root"
80    
81  # That's it.  # That's it.


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed