about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-21 00:34:59 +0100
committerJames Booth <boothj5@gmail.com>2015-07-21 00:34:59 +0100
commitf736a248f741c0ce6eb49606edd1296456de201c (patch)
treeb67c7df6d893dea7cd8df0e7c5bc61f52e0b1fb1
parent55b3e9d48fa1a3ea306b9c354254d332add59c68 (diff)
downloadprofani-tty-f736a248f741c0ce6eb49606edd1296456de201c.tar.gz
Added centos to install-all.sh
-rwxr-xr-xinstall-all.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/install-all.sh b/install-all.sh
index 0b1719a4..d98819c7 100755
--- a/install-all.sh
+++ b/install-all.sh
@@ -47,6 +47,18 @@ opensuse_prepare()
     sudo zypper -n in gcc git automake make autoconf libopenssl-devel expat libexpat-devel ncurses-devel glib2-devel libnotify-devel libcurl-devel libXScrnSaver-devel libotr-devel readline-devel libtool libuuid-devel
 }
 
+centos_prepare()
+{
+    echo
+    echo Profanity installer...installing dependencies
+    echo
+
+    sudo yum -y install epel-release
+    sudo yum -y install git
+    sudo yum -y install gcc autoconf automake cmake
+    sudo yum -y install openssl-devel expat-devel ncurses-devel glib2-devel libnotify-devel libcurl-devel libXScrnSaver-devel libotr-devel readline-devel libtool libuuid-devel gpgme-devel
+}
+
 cygwin_prepare()
 {
     echo
@@ -157,6 +169,8 @@ if [ "${OS}" = "Linux" ]; then
         DIST=debian
     elif [ -f /etc/os-release ]; then
         DIST=opensuse
+    elif [ -f /etc/centos-release ]; then
+        DIST=centos
     fi
 else
     echo $OS | grep -i cygwin
@@ -183,6 +197,11 @@ opensuse)   opensuse_prepare
             sudo /sbin/ldconfig
             install_profanity
             ;;
+centos)     centos_prepare
+            install_lib_strophe /usr
+            sudo ldconfig
+            install_profanity
+            ;;
 cygwin)     cygwin_prepare
             cyg_install_lib_strophe
             cyg_install_profanity