Changeset 1043 in MondoRescue for trunk/tools/build2pkg
- Timestamp:
- Jan 8, 2007, 11:31:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/build2pkg
r932 r1043 11 11 dname=`dirname $0` 12 12 prem=`echo $dname |cut -c1` 13 if [ ${prem} =="/" ]; then13 if [ _${prem} = _"/" ]; then 14 14 export TOOLHOME=$dname 15 15 else … … 115 115 status=-1 116 116 fi 117 export pkg="$pkg $p-${PVER}.ebuild" 117 118 elif [ _"$dtype" = _"deb" ]; then 118 119 cd $TOPBUILDDIR … … 122 123 ln -s distributions/${ddir}-$dver debian 123 124 dpkg-buildpackage -us -uc -rfakeroot 125 export pkg="$pkg $p-${PVER}.deb" 124 126 # Et voila ! 127 elif [ _"$dtype" = _"port" ]; then 128 cd $TOPBUILDDIR 129 tar xfz $src 130 cd ${p}-${PVER} 131 mv distributions/${ddir}-$dver/* $TOPBUILDDIR 132 cd .. 133 rm -rf ${p}-${PVER} 134 make DISTDIR=$TOPBUILDDIR 135 elif [ _"$dfam" = _"slackware" ]; then 136 mkdir -p $TOPBUILDDIR/build-${p}/install 137 cd $TOPBUILDDIR 138 tar xfz $src 139 cd ${p}-${PVER} 140 mv distributions/${ddir}-$dver/slack-* $TOPBUILDDIR/build-${p}/install 141 if [ -e distributions/${ddir}-$dver/doinst.sh ]; then 142 mv distributions/${ddir}-$dver/doinst.sh $TOPBUILDDIR/build-${p}/install 143 fi 144 if [ _"$p" = _"mindi-busybox" ]; then 145 make oldconfig 146 make busybox 147 DESTDIR=$TOPBUILDDIR/build-${p}/usr/lib/mindi/rootfs 148 make PREFIX=$DESTDIR install 149 elif [ _"$p" = _"mindi" ]; then 150 export DONT_RELINK=1 151 export HEAD=$TOPBUILDDIR/build-${p} 152 export PREFIX=/usr 153 export CONFDIR=/etc 154 export MANDIR=/usr/man 155 export DOCDIR=/usr/doc 156 export LIBDIR=/usr/lib 157 export RPMBUILDMINDI="true" 158 ./install.sh 159 elif [ _"$p" = _"mondo" ]; then 160 ./configure --prefix=/usr 161 make VERSION=$PVER 162 make DESTDIR=$TOPBUILDDIR/build-${p} install 163 elif [ _"$p" = _"mondo-doc" ]; then 164 make -f Makefile.man VERSION=$PVER 165 make -f Makefile.howto VERSION=$PVER 166 make -f Makefile.man install INSTALLDIR=$TOPBUILDDIR/build-${p}/usr/doc/$p-${PVER} 167 make -f Makefile.howto install INSTALLDIR=$TOPBUILDDIR/build-${p}/usr/doc/$p-${PVER} 168 else 169 echo "Package $p not configured for $dfam" 170 fi 171 cd $TOPBUILDDIR/build-${p} 172 ar=`arch` 173 pkg1=$p-${PVER}-${ar}-${TAG}mr.tgz 174 echo "Running sudo /sbin/makepkg -p -l y -c y $pkg1" 175 sudo /sbin/makepkg -p -l y -c y $pkg1 176 export pkg="$pkg $pkg1" 125 177 else 126 178 echo "Unknown"
Note:
See TracChangeset
for help on using the changeset viewer.