# make -f Makefile.install ubuntu-precise
# - or -
# make -f Makefile.install fedora
+# - or -
+# make -f Makefile.install centos
#
# ---------------------------------------------------------------------
APT_TOOL=apt-get -yq
+# CentOS needs the EPEL repository
+EPEL_HOST=http://dl.fedoraproject.org/pub/epel/6/x86_64
+EPEL_PKG=epel-release-6-8.noarch.rpm
+
# Debian dependencies
DEBS = \
apache2-mpm-prefork\
tar\
zlib1g-dev
-FEDORAS = \
+RPMS = \
autoconf \
automake \
check \
squeeze: install_extra_debs_squeeze
generic_debian: install_debs debian_sys_config
-fedora: install_fedora_rpms
+fedora: install_rpms
+centos: install_epel install_rpms
ubuntu-lucid: generic_ubuntu lucid
ubuntu-precise: generic_ubuntu precise
install_extra_debs_precise:
$(APT_TOOL) install $(EXTRA_DEBS_UBUNTU_PRECISE)
-# Fedora
-install_fedora_rpms:
- yum -y install $(FEDORAS)
+# CentOS
+install_epel:
+ if [ -n "$$(uname -r | grep el6)" ]; then \
+ if [ -z "$$(rpm -qa | grep epel)" ]; then \
+ wget $(EPEL_HOST)/$(EPEL_PKG) ; \
+ rpm -Uvh $(EPEL_PKG) ; \
+ fi; \
+ fi;
+ yum update -y
+
+# Fedora/CentOS
+install_rpms:
+ yum -y install $(RPMS)
# vim:noet:sw=4:ts=4: