#!/bin/bash apt-get update /bin/cat</tmp/pkglist # Web 2.0 Devel # debconf-utils defoma file groff gs gs-common gs-gpl gsfonts imagemagick libclass-accessor-perl libcompress-zlib-perl libfont-afm-perl libfreetype6 libft-perl libhtml-format-perl libhtml-parser-perl libhtml-prototype-perl libhtml-tagset-perl libhtml-tree-perl libice6 libjasper-1.701-1 libjpeg62 liblcms1 libmagic1 libmagick9 libmailtools-perl libnetpbm10 libpaper-utils libpaper1 libpng12-0 libsm6 libterm-readkey-perl libterm-readline-gnu-perl libterm-readline-perl-perl libtiff4 libtimedate-perl libttf2 liburi-perl libwww-perl libx11-6 libx11-data libxau6 libxaw7 libxdmcp6 libxext6 libxml2 libxmu6 libxpm4 libxt6 netpbm perl perl-doc perl-modules psutils sgml-base ucf x11-common xml-core defoma file gs-common gs-gpl gsfonts libclass-accessor-perl libfont-afm-perl libfreetype6 libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libice6 libjasper-1.701-1 libjpeg62 liblcms1 libmagic1 libmagick9 libnetpbm10 libpng12-0 libsm6 libterm-readkey-perl libtiff4 libtimedate-perl libttf2 liburi-perl libx11-6 libx11-data libxau6 libxaw7 libxdmcp6 libxext6 libxml2 libxmu6 libxpm4 libxt6 perl perl-modules sgml-base ucf x11-common # Amazon Control Node # # @Web 2.0 Devel binutils debhelper dpkg-dev fakeroot gettext gettext-base html2text intltool-debian libclass-accessor-chained-perl libfile-chdir-perl libmodule-depends-perl libyaml-perl make patch po-debconf binutils debhelper dh-make-perl dpkg-dev fakeroot gettext gettext-base html2text intltool-debian libclass-accessor-chained-perl libfile-chdir-perl libmodule-depends-perl libyaml-perl make patch po-debconf # amazon_s3: libdatetime-format-strptime-perl libclass-factory-util-perl libclass-singleton-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libparams-validate-perl libclass-factory-util-perl libclass-singleton-perl libdatetime-format-strptime-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libparams-validate-perl libxml2-dev build-essential cpp cpp-4.1 g++ g++-4.1 gcc gcc-4.1 libc6-dev libssp0 libstdc++6-4.1-dev linux-kernel-headers perlmagick # GnuPG gnupg gnupg-agent pinentry-curses pinentry-doc expect EOPKGS PKGS=$(/bin/sed -e 's/#.*//g' /tmp/pkglist|grep .|while read line; do echo -n "${line} "; done) apt-get install -y --force-yes ${PKGS} # These all Need to be Packaged. /bin/cat<>/tmp/pkglist liblwp-useragent-determined-perl libxml-simple-perl libxml-libxml-perl libdatetime-format-strptime-perl libsub-identify-perl libsub-name-perl libtest-exception-perl libtest-longstring-perl libalgorithm-c3-perl libdigest-hmac-perl libdigest-sha1-perl libsub-install-perl libdata-optlist-perl libparams-util-perl libxml-libxml-common-perl libxml-namespacesupport-perl libxml-sax-perl libclass-mop-perl libarchive-tar-perl libcrypt-ssleay-perl libdigest-md5-file-perl libextutils-cbuilder-perl libextutils-parsexs-perl libio-stringy-perl libio-zlib-perl liblog-log4perl-perl libmodule-build-perl libmodule-install-perl libmodule-scandeps-perl libnet-ssleay-perl libpar-dist-perl libpod-escapes-perl libpod-simple-perl libsub-exporter-perl libtest-pod-perl libnet-amazon-perl libnet-amazon-s3-perl EOPKGS PKGS=$(/bin/sed -e 's/#.*//g' /tmp/pkglist|grep .|while read line; do echo -n "${line} "; done) apt-get install -y --force-yes ${PKGS} # Amazon::S3 [CPAN] Amazon-S3-0.441.tar.gz # Digest::HMAC_SHA1 [CPAN] Digest-HMAC-1.01.tar.gz # Digest::MD5::File [CPAN] Digest-MD5-File-0.07.tar.gz # LWP::UserAgent::Determined [websages] liblwp-useragent-determined-perl # XML::Simple [websages] libxml-simple-perl # # Net::Amazon::S3 [CPAN] Net-Amazon-S3-0.44.tar.gz # XML::LibXML [CPAN] XML-LibXML-1.66.tar.gz # XML::LibXML::XPathContext [websages] libxml-libxml-perl # DateTime::Format::Strptime [etch] libdatetime-format-strptime-perl # # Net::Amazon::EC2 [CPAN] Net-Amazon-EC2-0.06.tar.gz # Moose [CPAN] Moose-0.54.tar.gz # Class::MOP 0.49 [CPAN] Class-MOP-0.63.tar.gz # MRO::Compat [CPAN] MRO-Compat-0.09.tar.gz # Class::C3 [CPAN] Class-C3-0.19.tar.gz # Class::C3:XS [CPAN] Class-C3-XS-0.08.tar.gz # Sub::Identify [etch] libsub-identify-perl # Sub::Exporter [CPAN] Sub-Exporter-0.979.tar.gz # Sub::Name 0.02 [etch] libsub-name-perl # Test::Exception [etch] libtest-exception-perl # Test::LongString [etch] libtest-longstring-perl CPANDIR="/opt/local/src/CPAN" if [ ! -d ${CPANDIR} ];then mkdir -p /opt/local/src/CPAN; fi /bin/cat</tmp/cpan http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-1.01.tar.gz http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/Digest-MD5-File-0.07.tar.gz http://search.cpan.org/CPAN/authors/id/T/TI/TIMA/Amazon-S3-0.441.tar.gz http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-1.66.tar.gz http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/Net-Amazon-S3-0.44.tar.gz http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-0.979.tar.gz http://search.cpan.org/CPAN/authors/id/B/BL/BLBLACK/Class-C3-XS-0.08.tar.gz http://search.cpan.org/CPAN/authors/id/B/BL/BLBLACK/Class-C3-0.19.tar.gz http://search.cpan.org/CPAN/authors/id/B/BL/BLBLACK/MRO-Compat-0.09.tar.gz http://search.cpan.org/CPAN/authors/id/S/SA/SARTAK/Class-MOP-0.63.tar.gz http://search.cpan.org/CPAN/authors/id/S/ST/STEVAN/Moose-0.54.tar.gz http://search.cpan.org/CPAN/authors/id/J/JK/JKIM/Net-Amazon-EC2-0.06.tar.gz EOCPAN # END Amazon Control Node # for url in `sed -e 's/#.*//g' /tmp/cpan|grep .`;do file=$(echo ${url}| sed -e 's/.*\///g';) if [ ! -f ${CPANDIR}/${file} ];then wget -O ${CPANDIR}/${file} "${url}" fi workdir=$(tar tzf ${CPANDIR}/${file}| sed -e 's/\/.*//'| sort -u) if [ -d ${CPANDIR}/${workdir} ];then rm -fr ${CPANDIR}/${workdir} fi (cd ${CPANDIR}; tar xvzf ${file}) (cd ${CPANDIR}/${workdir}; perl Makefile.PL && make && make install) # (cd ${CPANDIR}/${workdir}; perl Makefile.PL; echo "continue..."; read x) # (cd ${CPANDIR}/${workdir}; make; echo "continue..."; read x) # (cd ${CPANDIR}/${workdir}; make install; echo "continue..."; read x) done perl -le 'use Net::Amazon::S3; use Net::Amazon::EC2; use Amazon::S3;' # Catalyst setup # /bin/cat<>/tmp/pkglist libcatalyst-perl libcatalyst-view-tt-perl libhtml-prototype-perl libcatalyst-model-cdbi-perl libcatalyst-modules-extra-perl libcatalyst-modules-perl libcatalyst-plugin-formvalidator-perl libcatalyst-plugin-session-fastmmap-perl libdbd-sqlite3-perl libsqlite3-0 sqlite3 libclass-dbi-sqlite-perl EOPKGS PKGS=$(/bin/sed -e 's/#.*//g' /tmp/pkglist|grep .|while read line; do echo -n "${line} "; done) apt-get install -y --force-yes ${PKGS} /bin/cat</tmp/cpan http://search.cpan.org/CPAN/authors/id/A/AG/AGRUNDMA/HTTP-Body-1.04.tar.gz http://search.cpan.org/CPAN/authors/id/M/MR/MRAMBERG/Catalyst-Runtime-5.7014.tar.gz http://search.cpan.org/CPAN/authors/id/B/BC/BCHOATE/Text-Textile-2.03.tar.gz http://search.cpan.org/CPAN/authors/id/S/SR/SRI/Catalyst-Plugin-Textile-0.01.tar.gz http://search.cpan.org/CPAN/authors/id/G/GR/GRODITI/Catalyst-Component-InstancePerContext-0.001001.tar.gz http://search.cpan.org/CPAN/authors/id/A/AS/ASH/Catalyst-Model-File-0.06.tar.gz EOCPAN for url in `sed -e 's/#.*//g' /tmp/cpan|grep .`;do file=$(echo ${url}| sed -e 's/.*\///g';) if [ ! -f ${CPANDIR}/${file} ];then wget -O ${CPANDIR}/${file} "${url}" fi workdir=$(tar tzf ${CPANDIR}/${file}| sed -e 's/\/.*//'| sort -u) if [ -d ${CPANDIR}/${workdir} ];then rm -fr ${CPANDIR}/${workdir} fi (cd ${CPANDIR}; tar xvzf ${file}) (cd ${CPANDIR}/${workdir}; perl Makefile.PL && make && make install) # (cd ${CPANDIR}/${workdir}; perl Makefile.PL; echo "continue..."; read x) # (cd ${CPANDIR}/${workdir}; make; echo "continue..."; read x) # (cd ${CPANDIR}/${workdir}; make install; echo "continue..."; read x) done