/[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.6 by slords, Sat Jun 2 05:15:03 2007 UTC Revision 1.7 by slords, Tue Jul 3 17:54:41 2007 UTC
# Line 3  Line 3 
3  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
4    
5  distname='SME Server'  distname='SME Server'
6    distrel=7
7  distvers=$(basename $(pwd))  distvers=$(basename $(pwd))
8  distarch=$(uname -i)  distarch=$(uname -i)
9    
# Line 14  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a Line 15  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a
15          $(pwd)/cdrom.image \          $(pwd)/cdrom.image \
16          $distarch > pkgorder          $distarch > pkgorder
17    
18  PACKAGES="glibc glibc-common setup openssl python newt slang libselinux  for PKG in /releases/$distrel/smeextras/$distarch/RPMS/*.rpm
          libsepol libtermcap zlib ash e2fsprogs util-linux raidtools popt mdadm  
          procps rpm rpm-libs XFree86 Xconfigurator anaconda tzdata  
          anaconda-runtime kudzu hwdata bzip2 beecrypt ncurses readline  
          bzip2-libs dosfstools pciutils reiserfs-utils parted sed  
          busybox-anaconda rpm-python booty hdparm lvm2 beecrypt device-mapper  
          rhpl pyxf86config libxml2 libxml2-python glib2 audit-libs  
          elfutils-libelf bogl-bterm bogl krb5-libs convertdb1 jfsutils  
          xfsprogs xfsdump dmapi libacl libattr attr acl bogl-devel  
          policy policycoreutils pyparted xorg-x11 selinux-policy-targeted  
          kernel-pcmcia-cs kernel-utils"  
   
 PACKAGESGR="anaconda XFree86-libs libpng XFree86-75dpi-fonts  
            XFree86-ISO8859-2-75dpi-fonts gtk2  
            XFree86-ISO8859-9-75dpi-fonts esound audiofile libgnome  
            XFree86-100dpi-fonts fonts-ISO8859-2 fonts-ISO8859-9  
            XFree86-xfs e2fsprogs coreutils glibc glibc-common  
            readline popt specspo util-linux rpm rpm-libs tzdata  
            procps ncurses bash cpio gpm  
            XFree86 Xconfigurator gnome-python2 pygtk2 gdk-pixbuf  
            XFree86-KOI8-R XFree86-KOI8-R-75dpi-fonts pam  
            reiserfs-utils atk pango freetype gnome-python2-canvas  
            libgnomecanvas libart_lgpl libgcc libacl libattr libstdc++ expat  
            anaconda-images anaconda-help XFree86-base-fonts  
            ttfonts-ko taipeifonts XFree86-ISO8859-15-75dpi-fonts rhpl  
            system-config-keyboard Xft fontconfig redhat-artwork audit-libs  
            ttfonts-ja ttfonts-zh_TW bitmap-fonts-cjk urw-fonts fonts-arabic  
            comps-extras XFree86-libs-data convertdb1 fonts-bengali  
            vnc-server libjpeg tcp_wrappers system-config-date  
            xfsprogs xfsdump dmapi attr acl policy policycoreutils  
            selinux-policy-targeted ttfonts-zh_CN  
            xorg-x11-libs xorg-x11-ISO8859-2-75dpi-fonts  
            xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-100dpi-fonts  
            xorg-x11-xfs xorg-x11 xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts  
            xorg-x11-base-fonts xorg-x11-ISO8859-15-75dpi-fonts  
            fonts-xorg-ISO8859-2-75dpi fonts-xorg-ISO8859-15-75dpi  
            fonts-xorg-ISO8859-9-75dpi fonts-xorg-100dpi  
            fonts-xorg-KOI8-R fonts-xorg-KOI8-R-75dpi fonts-xorg-base  
            xorg-x11-base xorg-x11-ISO8859-15-75dpi  
            xorg-x11-libs-data xorg-x11-xfs prelink redhat-logos fedora-logos  
            ttfonts-ta ttfonts-bn ttfonts-gu ttfonts-hi ttfonts-pa  
            syslinux memtest86+"  
   
 PACKAGESRESCUE="bzip2 bzip2-libs dump  
                 findutils ftp gzip iputils joe krb5-libs less man  
                 modutils mtools mt-st mtr net-tools open  
                 openssh openssh-clients pciutils rsh traceroute tar"  
   
 for PKG in $PACKAGES $PACKAGESGR $PACKAGESRESCUE  
19  do  do
20      PACKAGEFILES=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4/updates/$distarch/RPMS/$PKG*.rpm | grep "^$PKG " | sed 's/.* //')      PKGFILE=$(basename $PKG)
21      if [ -n "$PACKAGEFILES" ];      if [ ! -f $(pwd)/cdrom.image/SME/$PKGFILE ]
22      then      then
23          for PKGFILE in $PACKAGEFILES          ln -sf $PKG  $(pwd)/cdrom.image/SME/
         do  
             if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ];  
             then  
                 ln -sf /mirrors/centos/4/updates/$distarch/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE  
             fi  
         done  
     else  
         PACKAGEFILES=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKG*.rpm | grep "^$PKG " | sed 's/.* //')  
         if [ -n "$PACKAGEFILES" ];  
         then  
             for PKGFILE in $PACKAGEFILES  
             do  
                 if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ];  
                 then  
                     ln -sf /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE  
                 fi  
             done  
         fi  
24      fi      fi
25  done  done
26    
27  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
         --comp dist-4.3 \  
         --pkgorder pkgorder \  
         --release "$distname" \  
28          --product "$distname" \          --product "$distname" \
29          --version 7.0 \          --version "$distrel.0" \
30            --release "$distname" \
31            --pkgorder pkgorder \
32          $(pwd)/cdrom.image/          $(pwd)/cdrom.image/
33    
34  # Remove previous linked files  # Remove previous linked files


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