# Makefile to install prerequisites for OpenSRF
#
# Currently supports Debian (etch/lenny), Ubuntu (hardy/karmic), and Gentoo.
-# Working towards support of CentOS 5 / RHEL 5.
+# Working towards support of CentOS 5 / RHEL 5 and Fedora.
# Installs Perl prereqs, libjs with Perl wrapper
#
# usage:
# make -f Makefile.install rhel
# - or -
# make -f Makefile.install gentoo
+# - or -
+# make -f Makefile.install fedora13
#
# Notes:
#
CENTOS_PERL = \
+FEDORAS = \
+ autoconf \
+ automake \
+ ejabberd \
+ expat-devel \
+ gcc \
+ gdbm-devel \
+ httpd \
+ httpd-devel \
+ less \
+ libgcrypt-devel \
+ libmemcached \
+ libmemcached-devel \
+ libtool \
+ libxml2-devel \
+ libxml2-python \
+ libxslt-devel \
+ make \
+ memcached \
+ mod_perl \
+ ntpdate \
+ perl-Cache-Memcached \
+ perl-Class-DBI \
+ perl-Class-DBI-SQLite \
+ perl-DateTime-Format-Builder \
+ perl-DateTime-Format-Mail \
+ perl-devel \
+ perl-Error \
+ perl-File-Find-Rule \
+ perl-FreezeThaw \
+ perl-libwww-perl \
+ perl-Log-Log4perl \
+ perl-Module-Build \
+ perl-Net-Jabber \
+ perl-RPC-XML \
+ perl-SQL-Abstract-Limit \
+ perl-Template-Toolkit \
+ perl-Test-Deep \
+ perl-Test-Exception \
+ perl-Test-Pod \
+ perl-Tie-IxHash \
+ perl-UNIVERSAL-require \
+ perl-Unix-Syslog \
+ perl-XML-LibXML \
+ perl-XML-LibXSLT \
+ perl-XML-Simple \
+ psmisc \
+ python-devel \
+ python-memcached \
+ python-setuptools \
+ readline-devel
+
+FEDORA_CPAN = \
+ Class::DBI::AbstractSearch
+
GENTOOS = \
vim\
ntp\
lenny: install_extra_debs
generic_debian: install_debs install_cpan_force install_cpan_xml debian_sys_config
+fedora13: install_fedora_rpms install_fedora_perl
+
gentoo: install_gentoos install_gentoo_rc install_gentoo_perl install
rhel: centos
# ------------------------------------------------------------------
+# Fedora
+install_fedora_rpms:
+ yum -y install $(FEDORAS)
+
+install_fedora_perl:
+ for m in $(FEDORA_CPAN); do perl -MCPAN -e "install \"$$m\";"; done
+
# CENTOS
install_centos_rpms:
yum -y install $(CENTOS)