[omd-commits] OMD Git: omd: omd: added wheezy makefile

git version control git at mathias-kettner.de
Sat Jun 9 18:08:48 CEST 2012


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

Author:   Sven Nierlein <sven at consol.de>
Date:     Sat Jun  9 18:07:43 2012 +0200
Commiter: Sven Nierlein <sven at consol.de>
Date:     Sat Jun  9 18:08:44 2012 +0200

omd: added wheezy makefile

---

 distro                          |    5 ++-
 distros/Makefile.DEBIAN_7.0     |   80 +++++++++++++++++++++++++++++++++++++++
 packages/mysql-omd/skel/.my.cnf |    2 +
 3 files changed, 86 insertions(+), 1 deletions(-)

diff --git a/distro b/distro
index a691ece..de0917e 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,6 +22,9 @@ 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
diff --git a/distros/Makefile.DEBIAN_7.0 b/distros/Makefile.DEBIAN_7.0
new file mode 100644
index 0000000..b1771fa
--- /dev/null
+++ b/distros/Makefile.DEBIAN_7.0
@@ -0,0 +1,80 @@
+DISTRO_CODE       = wheezy
+BUILD_PACKAGES    =
+BUILD_PACKAGES   += build-essential
+BUILD_PACKAGES   += dpatch
+BUILD_PACKAGES   += fping
+BUILD_PACKAGES   += git-buildpackage
+BUILD_PACKAGES   += libboost-all-dev
+BUILD_PACKAGES   += libcairo2-dev
+BUILD_PACKAGES   += libcloog-ppl0      # needed by libgearman
+BUILD_PACKAGES   += libncurses5-dev    # needed by mod-gearman
+BUILD_PACKAGES   += libevent-dev
+BUILD_PACKAGES   += libgd2-xpm-dev
+BUILD_PACKAGES   += libglib2.0-dev
+BUILD_PACKAGES   += libgnutls-dev
+BUILD_PACKAGES   += libldap2-dev
+BUILD_PACKAGES   += libltdl-dev
+BUILD_PACKAGES   += libmcrypt-dev
+BUILD_PACKAGES   += libmysqlclient15-dev
+BUILD_PACKAGES   += libpango1.0-dev
+BUILD_PACKAGES   += libperl-dev
+BUILD_PACKAGES   += libreadline6-dev
+BUILD_PACKAGES   += libssl-dev
+BUILD_PACKAGES   += libxml2-dev
+BUILD_PACKAGES   += patch
+BUILD_PACKAGES   += python-dev
+BUILD_PACKAGES   += uuid-dev
+BUILD_PACKAGES   += snmp
+BUILD_PACKAGES   += apache2-threaded-dev  # compiling mod_python
+BUILD_PACKAGES   += apache2               # compiling mod_python
+OS_PACKAGES       =
+OS_PACKAGES      += curl
+OS_PACKAGES      += dialog
+OS_PACKAGES      += dnsutils
+OS_PACKAGES      += fping
+OS_PACKAGES      += graphviz
+OS_PACKAGES      += libapache2-mod-fcgid
+OS_PACKAGES      += libapache2-mod-proxy-html
+OS_PACKAGES      += libboost-program-options1.49.0
+OS_PACKAGES      += libdbi-dev
+OS_PACKAGES      += libevent-1.4-2
+OS_PACKAGES      += libgd2-xpm
+OS_PACKAGES      += libltdl7
+OS_PACKAGES      += libnet-snmp-perl
+OS_PACKAGES      += libpango1.0-0
+OS_PACKAGES      += libperl5.14
+OS_PACKAGES      += libreadline6
+OS_PACKAGES      += libsnmp-perl
+OS_PACKAGES      += libuuid1
+OS_PACKAGES      += libpython2.6
+OS_PACKAGES      += mysql-server
+OS_PACKAGES      += patch
+OS_PACKAGES      += php5
+OS_PACKAGES      += php5-cgi
+OS_PACKAGES      += php5-cli
+OS_PACKAGES      += php5-gd
+OS_PACKAGES      += php5-mcrypt
+OS_PACKAGES      += php5-sqlite
+OS_PACKAGES      += php-pear
+OS_PACKAGES      += rsync
+OS_PACKAGES      += snmp
+OS_PACKAGES      += unzip
+OS_PACKAGES      += xinetd
+USERADD_OPTIONS   =
+ADD_USER_TO_GROUP = gpasswd -a %(user)s %(group)s
+PACKAGE_INSTALL   = aptitude -y update ; aptitude -y install
+ACTIVATE_INITSCRIPT = update-rc.d %s defaults
+APACHE_CONF_DIR   = /etc/apache2/conf.d
+APACHE_INIT       = /etc/init.d/apache2
+APACHE_USER       = www-data
+APACHE_GROUP      = www-data
+APACHE_BIN        = /usr/sbin/apache2
+APACHE_CTL        = /usr/sbin/apache2ctl
+APACHE_MODULE_DIR = /usr/lib/apache2/modules
+APACHE_MODULE_DIR_64 = /usr/lib/apache2/modules
+APACHE_FCGID_MODULE = mod_fcgid.so
+APACHE_ENMOD      = a2enmod %s
+PHP_FCGI_BIN      = /usr/bin/php5-cgi
+BECOME_ROOT       = su -c
+ARCH              = $(shell dpkg --print-architecture)
+MOUNT_OPTIONS     =
diff --git a/packages/mysql-omd/skel/.my.cnf b/packages/mysql-omd/skel/.my.cnf
index 26897eb..acdc8cd 100644
--- a/packages/mysql-omd/skel/.my.cnf
+++ b/packages/mysql-omd/skel/.my.cnf
@@ -26,9 +26,11 @@ socket		= ###ROOT###/tmp/run/mysqld/mysqld.sock
 # This was formally known as [safe_mysqld]. Both versions are currently parsed.
 [mysqld_safe]
 socket		= ###ROOT###/tmp/run/mysqld/mysqld.sock
+user		= ###SITE###
 nice		= 0
 
 [mysqld]
+user		= ###SITE###
 port		= 3306
 
 # mysql does not support relative directorys



More information about the omd-commits mailing list