[omd-commits] OMD Git: omd: Add distro detection for RH6.1

git version control git at mathias-kettner.de
Fri Jun 17 01:11:44 CEST 2011


Module:   omd
Branch:   master
Commit:   58994b03d1dae16a31fbdfe551391aff11f21da6
URL:      http://omdistro.org/projects/omd/repository/revisions/58994b03d1dae16a31fbdfe551391aff11f21da6

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Fri Jun 17 01:11:36 2011 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Fri Jun 17 01:11:36 2011 +0200

Add distro detection for RH6.1

---

 distro                      |    4 ++
 distros/Makefile.REDHAT_6.1 |   71 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/distro b/distro
index 027f2f5..1c6a08b 100755
--- a/distro
+++ b/distro
@@ -42,6 +42,10 @@ then
     then
 	echo "REDHAT${SEP}6.0"
 	exit 0
+    elif [ "${VERSION:0:43}" = "Red Hat Enterprise Linux Server release 6.1" ]
+    then
+	echo "REDHAT${SEP}6.1"
+	exit 0
     fi
 fi
 
diff --git a/distros/Makefile.REDHAT_6.1 b/distros/Makefile.REDHAT_6.1
new file mode 100644
index 0000000..4e9c38e
--- /dev/null
+++ b/distros/Makefile.REDHAT_6.1
@@ -0,0 +1,71 @@
+DISTRO_CODE       = rh61
+BUILD_PACKAGES    =
+BUILD_PACKAGES   += cairo-devel
+BUILD_PACKAGES   += expat-devel
+BUILD_PACKAGES   += gcc
+BUILD_PACKAGES   += gcc-c++
+BUILD_PACKAGES   += libevent-devel
+BUILD_PACKAGES   += libtool-ltdl-devel
+BUILD_PACKAGES   += gd-devel
+BUILD_PACKAGES   += httpd-devel
+BUILD_PACKAGES   += libmcrypt-devel
+BUILD_PACKAGES   += libxml2-devel
+BUILD_PACKAGES   += mysql-devel
+BUILD_PACKAGES   += ncurses-devel
+BUILD_PACKAGES   += net-snmp
+BUILD_PACKAGES   += net-snmp-utils
+BUILD_PACKAGES   += openssl-devel
+BUILD_PACKAGES   += pango-devel
+BUILD_PACKAGES   += patch
+BUILD_PACKAGES   += perl-Net-SNMP
+BUILD_PACKAGES   += python-devel
+BUILD_PACKAGES   += readline-devel
+BUILD_PACKAGES   += compat-readline5
+BUILD_PACKAGES   += rpm-build
+BUILD_PACKAGES   += samba-client
+BUILD_PACKAGES   += libuuid-devel
+BUILD_PACKAGES   += which
+BUILD_PACKAGES   += perl-devel
+BUILD_PACKAGES   += perl-ExtUtils-Embed
+BUILD_PACKAGES   += perl-Time-HiRes
+BUILD_PACKAGES   += rsync
+OS_PACKAGES       =
+OS_PACKAGES      += curl
+OS_PACKAGES      += dialog
+OS_PACKAGES      += expat
+OS_PACKAGES      += graphviz
+OS_PACKAGES      += graphviz-gd
+OS_PACKAGES      += httpd
+OS_PACKAGES      += libevent
+OS_PACKAGES      += libmcrypt
+OS_PACKAGES      += libtool-ltdl
+OS_PACKAGES      += mod_fcgid
+OS_PACKAGES      += mod_python
+OS_PACKAGES      += mysql-server
+OS_PACKAGES      += net-snmp
+OS_PACKAGES      += pango
+OS_PACKAGES      += patch
+OS_PACKAGES      += php
+OS_PACKAGES      += php-mbstring
+OS_PACKAGES      += php-pdo
+OS_PACKAGES      += php-gd
+OS_PACKAGES      += readline
+OS_PACKAGES      += rsync
+OS_PACKAGES      += uuid
+USERADD_OPTIONS   = -M
+ADD_USER_TO_GROUP = gpasswd -a %(user)s %(group)s
+PACKAGE_INSTALL   = yum -y makecache ; yum -y install
+ACTIVATE_INITSCRIPT = chkconfig --add %s && chkconfig %s on
+APACHE_CONF_DIR   = /etc/httpd/conf.d
+APACHE_INIT       = /etc/init.d/httpd
+APACHE_USER       = apache
+APACHE_GROUP      = apache
+APACHE_BIN        = /usr/sbin/httpd
+APACHE_CTL        = /usr/sbin/apachectl
+APACHE_MODULE_DIR = /usr/lib/httpd/modules
+APACHE_MODULE_DIR_64 = /usr/lib64/httpd/modules
+APACHE_PYTHON_MODULE = mod_python.so
+APACHE_FCGID_MODULE = mod_fcgid.so
+PHP_FCGI_BIN	  = /usr/bin/php-cgi
+APACHE_ENMOD      = true %s
+BECOME_ROOT       = su -c



More information about the omd-commits mailing list