Koozali.org: home of the SME Server

devtools-7.0

guest22

devtools-7.0
« on: June 04, 2005, 07:13:33 AM »
Hi,

I've 'created' a script that will download the devtools-7.0 for the SME Server 7alpha series.

http://no.longer.valid/phpwiki/index.php/devtools-7.0

Thanks to all for example code that was put into the script.

guest

Offline gregswallow

  • *
  • 651
  • +1/-0
devtools-7.0
« Reply #1 on: June 04, 2005, 05:03:04 PM »
You're making that way more complicated than it needs to be.  Why not just use yum?  

yum install XXX XXX XXX

and to remove ...

yum remove XXX XXX XXX

Although you have a good idea to use mirrors.  The yum.conf should be changed to use mirrors as well - you should make that suggestion on the sf mailing list though

guest22

devtools-7.0
« Reply #2 on: June 05, 2005, 10:58:40 AM »
Sure Greg, it is just that the above is the 'old fashioned' way. I do not understand Yum yet so I figuered to stick to the manual approach just to be sure.

guest

Offline electroman00

  • *****
  • 491
  • +0/-0
devtools-7.0
« Reply #3 on: February 02, 2006, 01:36:47 AM »
Quote from: "guest22"
Sure Greg, it is just that the above is the 'old fashioned' way. I do not understand Yum yet so I figuered to stick to the manual approach just to be sure.
guest


Key phase .......... old fashioned

Here ya go......... devtools sme 7pre1

updated 01/01/2006

Code: [Select]
#!/bin/bash
# Copied from http://contribs.org and modified by RequestedDeletion.
# Use at your own risc!! I DO NOT accept any responsibility whatsoever.
# Please leave this header intact. The latest version can be found at:
# http://no.longer.valid/phpwiki/index.php/devtools-7.0

while [ "$start" != "y" ] ; do
echo ''
echo '***************  Note NEW Kernel FTP source location   ******************'
echo '*                                                                       *'
echo '*                        !!!!!! WARNING !!!!!!                          *'
echo '*                                                                       *'
echo '*     This script has change to include the new Centos 4.2 Kernel       *'
echo '*                  Sources Location for SME 7pre1                       *'
echo '*                                                                       *'
echo '*                    Kernel 2.6.9.22.el.src.rpm                         *'
echo '*                                                                       *'
echo '*                         Updated 01/01/2006                            *'
echo '*************************************************************************'
echo ''
echo ''
echo '**************************************************************************'
echo '* This script will download the SME Server developers tools version 7.0  *'
echo '* Please be aware that installing additional software to your SME Server *'
echo '* may lead to potential security issues. Use this at YOUR OWN RISK!!     *'
echo '**************************************************************************'
echo ''
echo ''

echo 'Do you accept the above warning and want to download SME Server dev-tools? Y/n'

read start

if [ "$start" = "n" ] ; then
    exit 1
fi
done

#architecture, uncomment the desired architecture
arch='i386'
#arch='x86_64'

#pentium='i586'
pentium='i686'

# Note: new Kernel source location

newsrc='os/SRPMS'

# Download mirrors, uncomment the mirror closest to your location.

#Europe
#dl_mirror='ftp://ftp.nluug.nl/pub/os/Linux/distr/CentOS/4.2'
#dl_mirror='http://ftp.belnet.be/packages/centos/4.2/'
#dl_mirror='ftp://ftp.tu-chemnitz.de/pub/linux/centos/4.2/'
#dl_mirror='ftp://mirror.nsc.liu.se/CentOS/4.2/'

#North America
dl_mirror='ftp://ftp.net.usf.edu/pub/centos/4.2'
#dl_mirror='ftp://mirror.cs.wisc.edu/pub/mirrors/linux/centos/4.2/'
#dl_mirror='ftp://mirrors.jtlnet.com/centos/4.2/'
#dl_mirror='http://mirror.trouble-free.net/centos/4.2/'

#Asia
#dl_mirror='ftp://ftp.riken.jp/Linux/centos/4.2/'
#dl_mirror='http://ftp.hostrino.com/pub/centos/4.2/'
#dl_mirror='ftp://ftp2.tnc.edu.tw/pub1/centos/4.2/'

#Australia
#dl_mirror='ftp://ftp.planetmirror.com/pub/centos/4.2/'
#dl_mirror='http://mirror.pacific.net.au/linux/CentOS/4.2/'


mkdir -p devtools-7.0-CentOS-4.2
cd devtools-7.0-CentOS-4.2
echo ''
echo 'Downloading devtools-7.0. Please be patient, some files are big and your milage may vary...' | tee devtools-7.0.log
echo ''
echo '[----------------------------] progress indicator, downloading 29 packages.'
echo -n "["


#wget -nc -nd -S http://download.fedoralegacy.org/redhat/7.3/updates/i386/apache-devel-1.3.27-6.legacy.i386.rpm -a devtools-7.0.log
#echo -n "."
# Still trying to find out where to find apache-devel

wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/anaconda-10.1.1.25-1.centos4.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/anaconda-runtime-10.1.1.25-1.centos4.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/autoconf-2.59-5.noarch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/automake-1.9.2-3.noarch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch//CentOS/RPMS/bison-1.875c-2.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/cpp-3.4.4-2.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/e2fsprogs-devel-1.35-12.2.EL4.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/gcc-3.4.4-2.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/gcc-c++-3.4.4-2.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/glibc-devel-2.3.4-2.13.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/glibc-headers-2.3.4-2.13.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/glibc-kernheaders-2.4-9.1.98.EL.$arch.rpm -a devtools-7.0.log
echo -n "."

# **************    Note new Kernel source location   01/01/2006  ******************

wget -nc -nd -S $dl_mirror/$newsrc/kernel-2.6.9-22.EL.src.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/kernel-smp-devel-2.6.9-22.EL.$pentium.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/krb5-devel-1.3.4-17.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/libacl-devel-2.2.23-5.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/libattr-devel-2.4.16-3.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/libstdc++-devel-3.4.4-2.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/libtermcap-devel-2.0.8-39.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/libtool-1.5.6-4.EL4.1.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nc -S $dl_mirror/os/$arch/CentOS/RPMS/m4-1.4.1-16.i386.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/mysqlclient10-3.23.58-4.RHEL4.1.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/ncurses-devel-5.4-13.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/openssl096b-0.9.6b-22.3.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/openssl-devel-0.9.7a-43.2.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/pam-devel-0.77-66.11.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/patch-2.5.4-20.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/readline-devel-4.3-13.$arch.rpm -a devtools-7.0.log
echo -n "."
wget -nc -nd -S $dl_mirror/os/$arch/CentOS/RPMS/zlib-devel-1.2.1.2-1.2.i386.rpm -a devtools-7.0.log
echo -n "] files downloading complete, checking for any errors..."
echo ''

IS_ERROR=pic devtools-7.0.log | grep -c ERROR

# ******  added 'Failed' check to script to better test log for failed downloads

IS_ERROR=pic devtools-7.0.log | grep -c Failed

if [ $IS_ERROR -ge 1 ] ; then
cp devtools-7.0.log ../devtools-7.0-ERROR.log
cd ..
echo '' >> devtools-7.0-ERROR.log
echo '********* NOTE ADDED BY THE "download_devtools-7.0" SCIPT ***********' >> devtools-7.0-ERROR.log
echo 'The download was not completely succesfull. For security reasons the (partial) downloaded files have not been removed.' >> devtools-7.0-ERROR.log
echo 'Check the above log entries to see what is wrong or go the documentation or forums over at http://contribs.org.' >> devtools-7.0-ERROR.log
echo '' >> devtools-7.0-ERROR.log
echo 'Sorry :-('  >> devtools-7.0-ERROR.log
#rm -rf devtools-7.0
echo ''
echo ''
echo '************************************************************************'
echo '*                        !!!!!! WARNING !!!!!!                         *'
echo '************************************************************************'
echo ''
echo 'The download of devtools-7.0 is NOT complete or incorrect. For security'
echo 'reasons the (partial) donwloaded files have been not deleted. Check the'
echo '"devtools-7.0-ERROR.log" in this directory and find out what is going on'
echo 'or seek help in the documentation or forums on http://contribs.org.'
echo ''
echo 'Exiting due to ERROR(S) :-('
echo ''
exit 1
fi

echo ''
echo ''
echo ''
echo ''
echo 'All files have been downloaded succesfully. To INSTALL devtools-7.0'
echo 'change to the "/devtools-7.0/" directory and enter the following'
echo ''
echo 'command as root "rpm -Uvh --nodeps *.rpm"'
echo ''
echo 'Have a nice day ;-)'
echo ''
echo ''


Just in case your really old like me.....

So what's the line for yumming it down?

I love when people do poop like this
Quote

yum remove XXX XXX XXX

Offline electroman00

  • *****
  • 491
  • +0/-0
devtools-7.0
« Reply #4 on: February 02, 2006, 01:46:34 AM »
Just found another script that uses Yum

http://mirror.contribs.org/smeserver/contribs/hmuhammad/install-devtools-7.0.sh

This is also for SME 7 Centos 4.2

cc_skavenger

devtools-7.0
« Reply #5 on: February 05, 2006, 04:12:58 AM »
thanks for posting both of these scripts!  saved me alot of time searching.

Offline electroman00

  • *****
  • 491
  • +0/-0
devtools-7.0
« Reply #6 on: February 05, 2006, 05:44:49 AM »
Your welcome.

Be aware that there may be some pkgs needed, I was searching around after I posted this and there seems to be some uncertainty as to what should be included in dev-tools.

When I find all the right stuff I'll post it in the WiKi Watchi.

SME7pre1

Which reminds me, I found a nice little Wiki GPL called SnipSnap.
Reqires java.
When I get some time I will investigate it more.
Tooooooo busy right this moment.

Also while I'm here someone started to make a table of contribs in the
Wiki and I didn't bookmark it and now I can't find it.

If anyone knows sure would help.

Offline hmuhammad

  • ***
  • 65
  • +0/-0
devtools-7.0
« Reply #7 on: February 07, 2006, 08:35:50 PM »
from...

http://lists.contribs.org/mailman/public/devinfo/msg08669.html

--- Charlie Brady <charlieb-devinfo@xxxxxxxx.xxx> wrote:

>
> On Sun, 15 Jan 2006, Hasan Muhammad wrote:
>
> > --what are the 'correct' packages to be installed for development?
>
> Install CentOS-4.2, then add to it e-smith-lib and e-smith-devtools (and
> any required perl-* packages) from SME7.
>
> Isn't that so much simpler than what you are trying to do?
>
> --
> Charlie
>
>

Can it really be that simple? Wish I had sent the RFC *before* re-doing the
script. Thanks, I'll try that approach. Umm, seems I now remember you suggesting that months ago.
...............

Offline electroman00

  • *****
  • 491
  • +0/-0
devtools-7.0
« Reply #8 on: February 07, 2006, 10:23:00 PM »
hmuhammad
Quote

Install CentOS-4.2, then add to it e-smith-lib and e-smith-devtools (and
any required perl-* packages) from SME7


"then add to it" like

Does everyone know.

yum e-smith-lib

yum e-smith-devtools

???

Offline hmuhammad

  • ***
  • 65
  • +0/-0
devtools-7.0
« Reply #9 on: February 08, 2006, 02:52:51 AM »
.
--create a file named 'smeos' with this content...
[smeos]
enabled=1
name=SME Server - os
baseurl=http://mirror.contribs.org/smeserver/releases/7/os/i386
gpgcheck=1
enablegroups=1

--and create a file named 'smeupdates' with this content...
[smeupdates]
enabled=1
name=SME Server - updates
baseurl=http://mirror.contribs.org/smeserver/releases/7/updates/i386
gpgcheck=1
enablegroups=1

--put both files in this directory...
/etc/yum.repos.d/

--run this command...
yum --enablerepo=smeos --enablerepo=smeupdates install e-smith-lib e-smith-devtools
...............

Offline electroman00

  • *****
  • 491
  • +0/-0
devtools-7.0
« Reply #10 on: February 08, 2006, 04:08:38 AM »
hmuhammad

I thought that was already in yum.conf, will look again.

Thanks

Offline hmuhammad

  • ***
  • 65
  • +0/-0
devtools-7.0
« Reply #11 on: February 08, 2006, 04:07:01 PM »
.
Remember, we are now using a Centos Server as a development server to develop things for SME servers; which Charlie recommends instead of trying to add development packages to a clean SME server.

So, we are adding the smeos and smeupdates repositories to the Centos server's yum database (a clean Centos server does not know about SME).
...............