[omd-commits] OMD Git: omd: Added Makefile for OPENSUSE 12.1

git version control git at mathias-kettner.de
Sun Jun 10 22:01:05 CEST 2012


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

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Sun Jun 10 22:00:59 2012 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Sun Jun 10 22:00:59 2012 +0200

Added Makefile for OPENSUSE 12.1

---

 distro                         |   17 +++++++--
 distros/Makefile.OPENSUSE_12.1 |   79 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+), 4 deletions(-)

diff --git a/distro b/distro
index de0917e..b507a08 100755
--- a/distro
+++ b/distro
@@ -6,7 +6,7 @@
 
 # Ubuntu is detected with /etc/lsb-release
 SEP=${1:- }
-if [ -e /etc/lsb-release ]
+if [ -e /etc/lsb-release ] 
 then
     . /etc/lsb-release
     if [ -n "$DISTRIB_ID" -a -n "$DISTRIB_RELEASE" ] ; then
@@ -22,9 +22,6 @@ then
     if [ "${VERSION:3:1}" = . ] ; then
         VERSION=${VERSION:0:3}
     fi
-    if [ "${VERSION:0:6}" = "wheezy" ] ; then
-        VERSION="7.0"
-    fi
     echo "DEBIAN$SEP$VERSION"
     exit 0
 fi
@@ -70,10 +67,22 @@ then
     then
         echo "SLES$SEP${VERSION}SP2"
         exit 0
+    elif [ "$VERSION" = 10 -a "$SP" = 1 ] 
+    then
+        echo "SLES$SEP${VERSION}SP1"
+        exit 0
+    elif [ "$VERSION" = 10 -a "$SP" = 2 ] 
+    then
+        echo "SLES$SEP${VERSION}SP2"
+        exit 0
     elif [ "$VERSION" = 11 ]
     then
         echo "SLES$SEP${VERSION}"
         exit 0
+    elif [ "$VERSION" = 12.1 ]
+    then
+	echo "OPENSUSE$SEP${VERSION}"
+        exit 0
     fi
 fi
 
diff --git a/distros/Makefile.OPENSUSE_12.1 b/distros/Makefile.OPENSUSE_12.1
new file mode 100644
index 0000000..bdf10ec
--- /dev/null
+++ b/distros/Makefile.OPENSUSE_12.1
@@ -0,0 +1,79 @@
+DISTRO_CODE     = opensuse121
+BUILD_PACKAGES  =
+BUILD_PACKAGES += boost-devel
+BUILD_PACKAGES += cairo-devel
+BUILD_PACKAGES += fping
+BUILD_PACKAGES += freetype2-devel
+BUILD_PACKAGES += gcc
+BUILD_PACKAGES += gcc-c++
+BUILD_PACKAGES += gd-devel
+BUILD_PACKAGES += glib2-devel
+BUILD_PACKAGES += libexpat-devel
+BUILD_PACKAGES += libevent-devel
+BUILD_PACKAGES += libgnutls-devel
+BUILD_PACKAGES += libjpeg62-devel
+BUILD_PACKAGES += libmcrypt-devel
+BUILD_PACKAGES += libmysqlclient-devel
+BUILD_PACKAGES += libopenssl-devel
+BUILD_PACKAGES += libpng14-devel
+BUILD_PACKAGES += libuuid-devel
+BUILD_PACKAGES += libxml2-devel
+BUILD_PACKAGES += make
+BUILD_PACKAGES += net-snmp
+BUILD_PACKAGES += openldap2-devel
+BUILD_PACKAGES += pango-devel
+BUILD_PACKAGES += patch
+BUILD_PACKAGES += python
+BUILD_PACKAGES += python-devel
+BUILD_PACKAGES += readline-devel
+BUILD_PACKAGES += apache2-devel
+OS_PACKAGES     =
+OS_PACKAGES    += apache2
+OS_PACKAGES    += apache2-mod_fcgid
+OS_PACKAGES    += bind-utils
+OS_PACKAGES    += curl
+OS_PACKAGES    += dialog
+OS_PACKAGES    += fping
+OS_PACKAGES    += graphviz
+OS_PACKAGES    += libboost_program_options1_36_0
+OS_PACKAGES    += libpng12-0
+OS_PACKAGES    += libevent-1_4-2
+OS_PACKAGES    += libltdl7
+OS_PACKAGES    += libreadline5
+OS_PACKAGES    += libuuid1
+OS_PACKAGES    += mysql
+OS_PACKAGES    += net-snmp
+OS_PACKAGES    += pango
+OS_PACKAGES    += patch
+OS_PACKAGES    += perl-Net-SNMP
+OS_PACKAGES    += perl-SNMP
+OS_PACKAGES    += php5-fastcgi
+OS_PACKAGES    += php5-gd
+OS_PACKAGES    += php5-iconv
+OS_PACKAGES    += php5-mbstring
+OS_PACKAGES    += php5-mcrypt
+OS_PACKAGES    += php5-pear
+OS_PACKAGES    += php5-sockets
+OS_PACKAGES    += php5-sqlite
+OS_PACKAGES    += rsync
+OS_PACKAGES    += samba-client
+OS_PACKAGES    += unzip
+OS_PACKAGES    += xinetd
+OS_PACKAGES    += xorg-x11-fonts
+USERADD_OPTIONS   = -M
+ADD_USER_TO_GROUP = groupmod -A %(user)s %(group)s
+PACKAGE_INSTALL   = zypper -n refresh ; zypper -n install
+ACTIVATE_INITSCRIPT = chkconfig --add %s
+APACHE_CONF_DIR   = /etc/apache2/conf.d
+APACHE_INIT       = /etc/init.d/apache2
+APACHE_USER       = wwwrun
+APACHE_GROUP      = www
+APACHE_BIN        = /usr/sbin/httpd2-prefork
+APACHE_CTL        = /usr/sbin/apache2ctl
+APACHE_MODULE_DIR = /usr/lib/apache2-prefork
+APACHE_MODULE_DIR_64 = /usr/lib64/apache2-prefork
+APACHE_FCGID_MODULE = ../apache2/mod_fcgid.so
+PHP_FCGI_BIN	  = /usr/bin/php-cgi
+APACHE_ENMOD      = a2enmod %s
+BECOME_ROOT       = su -c
+MOUNT_OPTIONS     =



More information about the omd-commits mailing list