ipfiredist() {
if [ -f $BASEDIR/build/usr/src/lfs/$1 ]; then
- if [ "`ls -w1 $BASEDIR/packages/ | grep $1; echo $?`" -ne "0" ]; then
+ ls $BASEDIR/packages/$1* >& /dev/null
+ if [ $? -eq 1 ]; then
echo "`date -u '+%b %e %T'`: Packaging $1" | tee -a $LOGFILE
cp -f $BASEDIR/src/scripts/make-packages.sh $BASEDIR/build/usr/local/bin
chroot $LFS /tools/bin/env -i HOME=/root \
exiterror "Packaging $1"
fi
else
- echo "`date -u '+%b %e %T'`: Package $1 already exists" | tee -a $LOGFILE
- fi
+ echo -e "`date -u '+%b %e %T'`: Package with name $1 already exists!" | tee -a $LOGFILE
+ fi
else
exiterror "No such file or directory: $BASEDIR/build/usr/src/lfs/$1"
fi
ipcopmake fcdslusb SMP=1
ipcopmake fcdslslusb SMP=1
ipcopmake fcpci SMP=1
+ ipcopmake fcclassic SMP=1
ipcopmake pulsar SMP=1
ipcopmake unicorn SMP=1
fi
ipcopmake fcdslsl
ipcopmake fcdslusb
ipcopmake fcdslslusb
- ipcopmake fcpci
+ ipcopmake fcpci
+ ipcopmake fcclassic
ipcopmake pulsar
ipcopmake unicorn
fi
ipcopmake Archive-Zip
ipcopmake GeoIP
ipcopmake fwhits
+ ipcopmake berkeley
+ ipcopmake BerkeleyDB ## The Perl module
ipcopmake noip_updater
ipcopmake ntp
ipcopmake oinkmaster
ipcopmake setup
ipcopmake snort
#ipcopmake speedycgi
+ ipcopmake saslauthd PASS=1
+ ipcopmake openldap
+ ipcopmake saslauthd PASS=2
ipcopmake squid
ipcopmake squid-graph
ipcopmake tcpdump
ipcopmake pakfire
ipcopmake startscripts
## Zuerst die Libs und dann die Programme. Ordnung muss sein!
- ipcopmake berkeley
- ipcopmake BerkeleyDB ## The Perl module
ipcopmake java
ipcopmake libtiff
ipcopmake libjpeg
ipcopmake xampp
ipcopmake pam
ipcopmake pammysql
- ipcopmake saslauthd PASS=1
- ipcopmake openldap
- ipcopmake saslauthd PASS=2
ipcopmake xinetd
ipcopmake ghostscript
ipcopmake cups
rm -f $LFS/license.txt >> $LOGFILE 2>&1
cd $BASEDIR
fi
-
-# Create update for this version
-# echo "`date -u '+%b %e %T'`: Building update $VERSION tgz" | tee -a $LOGFILE
-# tar -cz -C $BASEDIR/build --files-from=$BASEDIR/updates/$VERSION/ROOTFILES.$MACHINE-$VERSION -f $BASEDIR/updates/$VERSION/patch.tar.gz --exclude='#*';
-# chmod 755 $BASEDIR/updates/$VERSION/setup
-# tar -cz -C $BASEDIR/updates/$VERSION -f $LFS/install/images/$SNAME-update-$VERSION.$MACHINE.tgz patch.tar.gz setup information
-# rm -f $LFS/var/run/{need-depmod-$KVER,need-depmod-$KVER-smp}
# Generating list of packages used
echo "`date -u '+%b %e %T'`: Generating packages list from logs" | tee -a $LOGFILE
fi
done
echo "====== List of softwares used to build $NAME Version: $VERSION ======" > $BASEDIR/doc/packages-list.txt
- grep -v 'configroot$\|img$\|initrd$\|initscripts$\|installer$\|install$\|ipcop$\|setup$\|stage2$\|smp$\|tools$\|tools1$\|tools2$' \
+ grep -v 'configroot$\|img$\|initrd$\|initscripts$\|installer$\|install$\|ipcop$\|setup$\|pakfire$\|stage2$\|smp$\|tools$\|tools1$\|tools2$' \
$BASEDIR/doc/packages-list | sort >> $BASEDIR/doc/packages-list.txt
rm -f $BASEDIR/doc/packages-list
# packages-list.txt is ready to be displayed for wiki page
# Create ISO for CDRom and USB-superfloppy
ipcopmake cdrom
+ rm -f $LFS/install/images/*usb*
cp $LFS/install/images/{*.iso,*.tgz} $BASEDIR >> $LOGFILE 2>&1
+ ipfirepackages
+
+ # Cleanup
+ stdumount
+ rm -rf $BASEDIR/build/tmp/*
+
+ # Generating total list of files
+ echo "`date -u '+%b %e %T'`: Generating files list from logs" | tee -a $LOGFILE
+ rm -f $BASEDIR/log/FILES
+ for i in `ls -1tr $BASEDIR/log/[^_]*`; do
+ if [ "$i" != "$BASEDIR/log/FILES" -a -n $i ]; then
+ echo "##" >>$BASEDIR/log/FILES
+ echo "## `basename $i`" >>$BASEDIR/log/FILES
+ echo "##" >>$BASEDIR/log/FILES
+ cat $i | sed "s%^\./%#%" | sort >> $BASEDIR/log/FILES
+ fi
+ done
+
+ cd $PWD
+
+}
+
+ipfirepackages() {
ipfiredist applejuice
ipfiredist asterisk
ipfiredist cyrusimap
ipfiredist fetchmail
ipfiredist gnump3d
+ ipfiredist java
ipfiredist lame
ipfiredist libtiff
ipfiredist libxml2
mv -f $LFS/paks/*.tar.gz $LFS/paks/*.md5 $BASEDIR/packages >> $LOGFILE 2>&1
rm -rf $LFS/paks
rm -rf $BASEDIR/build/tmp/*
-
- # Cleanup
- stdumount
- rm -rf $BASEDIR/build/tmp/*
-
- # Generating total list of files
- echo "`date -u '+%b %e %T'`: Generating files list from logs" | tee -a $LOGFILE
- rm -f $BASEDIR/log/FILES
- for i in `ls -1tr $BASEDIR/log/[^_]*`; do
- if [ "$i" != "$BASEDIR/log/FILES" -a -n $i ]; then
- echo "##" >>$BASEDIR/log/FILES
- echo "## `basename $i`" >>$BASEDIR/log/FILES
- echo "##" >>$BASEDIR/log/FILES
- cat $i | sed "s%^\./%#%" | sort >> $BASEDIR/log/FILES
- fi
- done
-
- cd $PWD
-
}
# See what we're supposed to do
echo "`date -u '+%b %e %T'`: toolchain md5 ok" | tee -a $LOGFILE
echo "`date -u '+%b %e %T'`: Uncompressing toolchain" | tee -a $LOGFILE
cd $BASEDIR && tar xfz cache/$PACKAGE.tar.gz -C .
- rm -vf $BASEDIR/cache/$PACKAGE.{tar.gz,md5}
+ rm -f $BASEDIR/cache/$PACKAGE.{tar.gz,md5}
else
exiterror "$PACKAGE.md5 did not match, check downloaded package"
fi
paks)
prepareenv
buildpackages
+ # ipfirepackages
;;
update)
echo "Load the latest source-files:"
commit)
echo "Upload the changed files:"
svn commit
+ ./make.sh sync
+ svn up > /dev/null
;;
make)
echo "Do a complete compile:"
done
rm -f ftplist
;;
+pub-iso)
+ echo -e "Upload the ISO to the beta-mirror!"
+ echo -ne "Password for mirror.ipfire.org: "; read PASS
+ ncftpls -u web3 -p $PASS ftp://mirror.ipfire.org/html/source-packages/beta/ | grep `svn info | grep Revision | cut -c 11-`
+ if [ "$?" -eq "1" ]; then
+ cp $BASEDIR/ipfire-install-1.4.i386.iso $BASEDIR/ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso
+ md5sum ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso > ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso.md5
+ ncftpput -u web3 -p $PASS mirror.ipfire.org /html/source-packages/beta/ ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso
+ ncftpput -u web3 -p $PASS mirror.ipfire.org /html/source-packages/beta/ ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso.md5
+ if [ "$?" -eq "0" ]; then
+ echo -e "The ISO of Revision `svn info | grep Revision | cut -c 11-` was successfully uploaded to the ftp server."
+ else
+ echo -e "There was an error while uploading the ISO to the ftp server."
+ fi
+ else
+ echo -e "File with name ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso already exists on the ftp server!"
+ fi
+ rm -f ipfire-install-1.4.i386-r`svn info | grep Revision | cut -c 11-`.iso{,.md5}
+ ;;
+pub-paks)
+ echo -e "Upload the packages to the beta-mirror!"
+ echo -ne "Password for mirror.ipfire.org: "; read PASS
+ ncftpput -z -u web3 -p $PASS mirror.ipfire.org /html/source-packages/packages/ packages/*
+ if [ "$?" -eq "0" ]; then
+ echo -e "The packages were successfully uploaded to the ftp server."
+ else
+ echo -e "There was an error while uploading the packages to the ftp server."
+ fi
+ ;;
*)
- echo "Usage: $0 {build|changelog|check|checkclean|clean|commit|diff|dist|gettoolchain|make|newpak|prefetch|shell|sync|toolchain|update}"
+ echo "Usage: $0 {build|changelog|check|checkclean|clean|commit|diff|dist|gettoolchain|make|newpak|prefetch|pub-iso|pub-paks|shell|sync|toolchain|update}"
cat doc/make.sh-usage
exit 1
;;