[Opensrf-commits] r1995 - trunk/src/extras (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 13 12:16:08 EDT 2010


Author: dbs
Date: 2010-08-13 12:16:05 -0400 (Fri, 13 Aug 2010)
New Revision: 1995

Modified:
   trunk/src/extras/Makefile.install
Log:
First cut at adding Debian Squeeze to OpenSRF prerequisite installer

Along the way, make a few other changes:
  * drop Debian Etch and Gentoo support
  * add dscott at laurentian.ca to the author list
  * remove Class::DBI as that's actually a prereq for Evergreen, not OpenSRF


Modified: trunk/src/extras/Makefile.install
===================================================================
--- trunk/src/extras/Makefile.install	2010-08-11 02:58:25 UTC (rev 1994)
+++ trunk/src/extras/Makefile.install	2010-08-13 16:16:05 UTC (rev 1995)
@@ -1,17 +1,18 @@
 # ---------------------------------------------------------------------
 # Author: Bill Erickson <erickson at esilibrary.com>
+# Author: Dan Scott <dscott at laurentian.ca>
 #
 # Makefile to install prerequisites for OpenSRF
 #
-# Currently supports Debian (etch/lenny), Ubuntu (hardy/lucid), and Gentoo.
+# Currently supports Debian (lenny/squeeze), Ubuntu (hardy/lucid)
 # Working towards support of CentOS 5 / RHEL 5 and Fedora.
 # Installs Perl prereqs, libjs with Perl wrapper
 #
 # usage:
-# 	make -f Makefile.install debian-etch
-# 	- or -
 # 	make -f Makefile.install debian-lenny
 # 	- or -
+# 	make -f Makefile.install debian-squeeze
+# 	- or -
 # 	make -f Makefile.install ubuntu-hardy
 # 	- or -
 # 	make -f Makefile.install ubuntu-lucid
@@ -20,19 +21,13 @@
 # 	- or -
 # 	make -f Makefile.install rhel
 # 	- or -
-# 	make -f Makefile.install gentoo
-# 	- or -
 # 	make -f Makefile.install fedora13
 #
 # Notes:
 #
 # 	This makefile has been tested much more with Ubuntu and Debian than
-#   CentOS, Fedora, Gentoo, or RHEL.
+#   CentOS, Fedora, or RHEL.
 #
-# 	Gentoo (especially amd64) requires a good bit of masked package
-# 	mangling for some packages.  These are not documented here because
-# 	they will continue to evolve
-#
 # ---------------------------------------------------------------------
 
 # Make any assumptions about the shell being used explicit
@@ -246,41 +241,6 @@
 	python-simplejson \
 	readline-devel
 
-GENTOOS = \
-	vim\
-	ntp\
-	memcached\
-	libmemcached\
-	net-misc/telnet-bsd\
-	app-portage/gentoolkit\
-	gsasl\
-	ejabberd\
-	mod_perl\
-	net-fs/nfs-utils\
-	dev-libs/apr\
-	dev-perl/Cache-Memcached\
-	dev-perl/DBI\
-	dev-perl/Log-Log4perl\
-	dev-perl/Unix-Syslog\
-	dev-perl/XML-LibXML\
-	dev-perl/XML-LibXSLT\
-	dev-perl/XML-Simple\
-	dev-perl/Net-Jabber\
-	dev-perl/libwww-perl\
-	dev-perl/Template-Toolkit\
-	dev-perl/Error\
-	dev-perl/Tie-IxHash\
-	dev-perl/FreezeThaw
-
-GENTOO_RC = \
-	ejabberd\
-	memcached\
-	portmap
-
-GENTOO_PERL = \
-	Class::DBI::AbstractSearch\
-	UNIVERSAL::require
-
 DEB_APACHE_MODS = \
 	ssl
 
@@ -289,6 +249,12 @@
 	libjson-xs-perl \
 	libnet-server-perl
 
+EXTRA_DEBS_SQUEEZE = \
+	libmemcached-dev \
+	libxml-libxml-perl \
+	libxml-libxslt-perl \
+	memcached-tools
+
 EXTRA_DEBS_UBUNTU_LUCID = \
 	libmemcached-dev\
 	libxml-libxml-perl \
@@ -311,10 +277,6 @@
 	XML::LibXML \
 	XML::LibXSLT
 
-# generic CPAN modules to force
-CPAN_MODULES_FORCE = \
-	TMTM/Class-DBI-0.96.tar.gz
-
 # ----------------------------------------------------------------------------
 
 all: 
@@ -323,23 +285,21 @@
 
 centos: install_rpmforge install_centos_rpms install_ejabberd install_buildutils install_libmemcached install_libxml2 install_libxslt install_centos_perl create_ld_local
 
-debian-etch: generic_debian etch install_libmemcached
-debian-lenny: generic_debian lenny install_libmemcached
-etch: install_cpan
+debian-lenny: generic_debian install_cpan_xml lenny install_libmemcached
+debian-squeeze: generic_debian squeeze
 lenny: install_extra_debs
-generic_debian: install_debs install_cpan_force install_cpan_xml debian_sys_config
+squeeze: install_extra_squeeze_debs
+generic_debian: install_debs debian_sys_config
 
 fedora13: install_fedora_rpms
 
-gentoo: install_gentoos install_gentoo_rc install_gentoo_perl install
-
 rhel: centos
 
 ubuntu-hardy: generic_ubuntu install_cpan_xml hardy
 ubuntu-lucid: generic_ubuntu lucid
 hardy: install_cpan install_libmemcached 
 lucid: install_extra_debs install_extra_debs_lucid
-generic_ubuntu: install_debs install_cpan_force debian_sys_config
+generic_ubuntu: install_debs debian_sys_config
 
 # - COMMON TARGETS ---------------------------------------------------------
 
@@ -451,24 +411,13 @@
 install_extra_debs:
 	$(APT_TOOL) install $(EXTRA_DEBS)
 
+install_extra_debs_squeeze:
+	$(APT_TOOL) install $(EXTRA_DEBS_SQUEEZE)
+
 # Install even more packaged dependencies on modern distros
 install_extra_debs_lucid:
 	$(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_LUCID)
 
-# ------------------------------------------------------------------
-# - GENTOO ---------------------------------------------------------
-
-install_gentoos:
-	emerge -n $(GENTOOS)
-
-install_gentoo_rc:
-	for m in $(GENTOO_RC); do rc-update add $$m default; done;
-
-install_gentoo_perl:
-	for m in $(GENTOO_PERL); do perl -MCPAN -e "install \"$$m\";"; done
-
-# ------------------------------------------------------------------
-
 # Fedora
 install_fedora_rpms:
 	yum -y install $(FEDORAS)



More information about the opensrf-commits mailing list