ipfiredist() {
if [ -f $BASEDIR/build/usr/src/lfs/$1 ]; then
- ls $BASEDIR/packages/$1* >& /dev/null
- if [ $? -eq 1 ]; then
+# if [ ! `ls -w1 $BASEDIR/packages/*.tar.gz | grep $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 \
if [ $? -ne 0 ]; then
exiterror "Packaging $1"
fi
- else
- echo -e "`date -u '+%b %e %T'`: Packages with name $1 already exists!" | tee -a $LOGFILE
- fi
+# else
+# echo "`date -u '+%b %e %T'`: Packaging: The package $1 already exists"
+# fi
else
exiterror "No such file or directory: $BASEDIR/build/usr/src/lfs/$1"
fi
if [ 'i386' = $MACHINE ]; then
# abuse the SMP flag, and make an minimal installer kernel first
# so that the boot floppy always works.....
- ipcopmake linux LFS_PASS=ipcop SMP=installer
- ipcopmake linux LFS_PASS=ipcop SMP=1
+ ipcopmake linux LFS_PASS=ipfire SMP=installer
+ ipcopmake linux LFS_PASS=ipfire SMP=1
ipcopmake 3cp4218 SMP=1
ipcopmake amedyn SMP=1
ipcopmake cxacru SMP=1
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 linux LFS_PASS=ipcop
+ ipcopmake linux LFS_PASS=ipfire
ipcopmake 3cp4218
ipcopmake amedyn
ipcopmake cxacru
ipcopmake fcdslsl
ipcopmake fcdslusb
ipcopmake fcdslslusb
- ipcopmake fcpci
+ ipcopmake fcpci
+ ipcopmake fcclassic
ipcopmake pulsar
ipcopmake unicorn
fi
ipcopmake Convert-UUlib
ipcopmake Archive-Tar
ipcopmake Archive-Zip
+ ipcopmake Locale-Country
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 squidguard
ipcopmake tcpdump
ipcopmake traceroute
ipcopmake vlan
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
ipcopmake pwlib
ipcopmake openh323
ipcopmake wget
+ ipcopmake wput
ipcopmake bridge-utils
+ ipcopmake screen
+ ipcopmake hddtemp
+ ipcopmake htop
+ ipcopmake lynx
echo -ne "`date -u '+%b %e %T'`: Building ### Mailserver ### \n" | tee -a $LOGFILE
ipcopmake postfix
+ ipcopmake procmail
ipcopmake fetchmail
ipcopmake cyrusimap
- ipcopmake procmail
ipcopmake mailx
ipcopmake clamav
ipcopmake razor
ipcopmake applejuice
ipcopmake edonkeyclc
ipcopmake sane
+ echo -ne "`date -u '+%b %e %T'`: Building ### Net-Tools ### \n" | tee -a $LOGFILE
+ ipcopmake ntop
ipcopmake rsync
ipcopmake tcpwrapper
ipcopmake portmap
- ipcopmake screen
ipcopmake nmap
- ipcopmake htop
+ ipcopmake iftop
ipcopmake nfs
ipcopmake ncftp
+ ipcopmake cftp
+ ipcopmake etherwake
ipcopmake ethereal
-# wget http://www.guzu.net/linux/hddtemp.db && mv hddtemp.db $BASEDIR/build/etc/hddtemp.db
-# ipcopmake hddtemp
# ipcopmake stunnel # Ausgeschaltet, weil wir es doch nicht nutzen
}
echo "`date -u '+%b %e %T'`: Stripping files" | tee -a $LOGFILE
find $LFS/lib $LFS/usr/lib $LFS/usr/share/rrdtool-* $LFS/install ! -type l \( -name '*.so' -o -name '*.so[\.0-9]*' \) \
! -name 'libc.so' ! -name 'libpthread.so' ! -name 'libcrypto.so.0.9.7.sha1' \
- -ls -exec $LFS/tools/bin/strip --strip-all {} \; >> $LOGFILE 2>&1
+ -exec $LFS/tools/bin/strip --strip-all {} \; >> $LOGFILE 2>&1
# add -ls before -exec if you want to verify what files are stripped
find $LFS/{,s}bin $LFS/usr/{,s}bin $LFS/usr/local/{,s}bin ! -type l \
ipfiredist cyrusimap
ipfiredist fetchmail
ipfiredist gnump3d
+ ipfiredist java
ipfiredist lame
ipfiredist libtiff
ipfiredist libxml2
- ipfiredist mc
+ ipfiredist ntop
ipfiredist postfix
ipfiredist pwlib
- ipfiredist sane
- ipfiredist spandsp
- ipfiredist sudo
+ ipfiredist samba
ipfiredist xampp
ipfiredist xinetd
test -d $BASEDIR/packages || mkdir $BASEDIR/packages
case "$1" in
build)
BUILDMACHINE=`uname -m`
- PACKAGE=`ls -v -r $BASEDIR/cache/$SNAME-1.4.*-toolchain-$BUILDMACHINE.tar.gz 2> /dev/null | head -n 1`
+ PACKAGE=`ls -v -r $BASEDIR/cache/$SNAME-1.4-toolchain-$BUILDMACHINE.tar.gz 2> /dev/null | head -n 1`
#only restore on a clean disk
if [ ! -f log/perl-*-tools ]; then
if [ ! -n "$PACKAGE" ]; then
URL_IPFIRE=`grep URL_IPFIRE lfs/Config | awk '{ print $3 }'`
echo "`date -u '+%b %e %T'`: Load toolchain tar.gz for $BUILDMACHINE" | tee -a $LOGFILE
cd $BASEDIR/cache
- wget $URL_IPFIRE/toolchains/$PACKAGE.tar.gz $URL_IPFIRE/toolchains/$PACKAGE.md5
+ wget $URL_IPFIRE/toolchains/$PACKAGE.tar.gz $URL_IPFIRE/toolchains/$PACKAGE.md5 >& /dev/null
if [ $? -ne 0 ]; then
echo "`date -u '+%b %e %T'`: error downloading toolchain for $BUILDMACHINE machine" | tee -a $LOGFILE
- else
- if [ "`md5sum $PACKAGE.tar.gz | awk '{print $1}'`" = "`cat $PACKAGE.md5 | awk '{print $1}'`" ]; then
- 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}
- else
- exiterror "$PACKAGE.md5 did not match, check downloaded package"
- fi
+# else
+# if [ "`md5sum $PACKAGE.tar.gz | awk '{print $1}'`" = "`cat $PACKAGE.md5 | awk '{print $1}'`" ]; then
+# 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 -f $BASEDIR/cache/$PACKAGE.{tar.gz,md5}
+# else
+# exiterror "$PACKAGE.md5 did not match, check downloaded package"
+# fi
fi
;;
paks)
commit)
echo "Upload the changed files:"
svn commit
+ ./make.sh sync
svn up > /dev/null
;;
make)
;;
sync)
echo -e "Syncing Cache to FTP:"
- echo -ne "Password for mirror.ipfire.org: "; read PASS
+ if [ -f .pass ]; then
+ PASS="`cat .pass`"
+ else
+ echo -ne "Password for mirror.ipfire.org: "; read PASS
+ fi
rm -f doc/packages-to-remove-from-ftp
ncftpls -u web3 -p $PASS ftp://mirror.ipfire.org/html/source-packages/source/ > ftplist
for i in `ls -w1 cache/`; do
done
rm -f ftplist
;;
-pub)
+pub-iso)
echo -e "Upload the ISO to the beta-mirror!"
- echo -ne "Password for mirror.ipfire.org: "; read PASS
-
+ if [ -f .pass ]; then
+ PASS="`cat .pass`"
+ else
+ echo -ne "Password for mirror.ipfire.org: "; read PASS
+ fi
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
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!"
+ if [ -f .pass ]; then
+ PASS="`cat .pass`"
+ else
+ echo -ne "Password for mirror.ipfire.org: "; read PASS
+ fi
+ 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|pub|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
;;