2 # Install FusionForge from source
4 # Copyright (C) 2011 Roland Mas
5 # Copyright (C) 2011 Olivier Berger - Institut Telecom
6 # Copyright (C) 2014 Inria (Sylvain Beucler)
7 # Copyright 2017, Franck Villaume - TrivialDev
9 # This file is part of FusionForge. FusionForge is free software;
10 # you can redistribute it and/or modify it under the terms of the
11 # GNU General Public License as published by the Free Software
12 # Foundation; either version 2 of the Licence, or (at your option)
15 # FusionForge is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License along
21 # with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 . $(dirname $0)/common-backports
28 # Install FusionForge dependencies
29 if [ -e /etc/debian_version ]; then
30 export DEBIAN_FRONTEND=noninteractive
33 if grep -q ^8 /etc/debian_version; then
34 apt-get install -y make gettext php5-cli php5-pgsql php-htmlpurifier php-http php-text-captcha \
35 libapache2-mpm-itk libapache2-mod-svn \
37 apache2 postgresql postgresql-contrib libnss-pgsql2 unscd \
38 cvs subversion viewvc python-pycurl git mercurial bzr loggerhead xinetd \
39 python-moinmoin libapache2-mod-wsgi python-psycopg2 \
40 unoconv poppler-utils dpkg-dev \
44 apt-get -y install mediawiki -t jessie-backports
46 apt-get install -y make gettext php-cli php-pgsql php-htmlpurifier php-http php-text-captcha php-soap \
47 libapache2-mpm-itk libapache2-mod-svn \
49 apache2 postgresql postgresql-contrib libnss-pgsql2 unscd \
50 cvs subversion viewvc python-pycurl libcgi-pm-perl git mercurial bzr xinetd \
51 python-moinmoin libapache2-mod-wsgi python-psycopg2 \
52 unoconv poppler-utils dpkg-dev \
55 fonts-dejavu-core mediawiki
57 if ! dpkg-vendor --is Ubuntu; then
58 apt-get install locales-all # https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1394929
60 elif [ -e /etc/SuSE-release ]; then
63 suse_install_rpms make gettext-runtime php5 php5-gettext php5-posix php5-pgsql \
64 apache2 apache2-mod_php5 apache2-mod_wsgi apache2-mod_mpm_itk \
65 postgresql-server postgresql-contrib subversion \
66 php5-pear php5-pear-htmlpurifier php5-curl \
69 cvs rcs perl-IPC-Run perl-URI \
71 git git-web php5-pcntl \
74 mediawiki moinmoin-wiki \
76 suse_backport_from_fedora_rpm
78 yum install -y make tar
80 yum --enablerepo=epel install -y httpd-itk
81 yum install -y gettext php-cli php-pgsql php-process php-mbstring php-pear-HTTP php-pear-Text-CAPTCHA \
82 httpd mod_dav_svn mod_ssl postgresql-server postgresql-contrib nscd \
83 cvs subversion viewvc python-pycurl git gitweb mercurial xinetd \
84 moin mod_wsgi python-psycopg2 \
85 unoconv poppler-utils libreoffice-headless \
86 ImageMagick php-markdown \
92 cd $(dirname $0)/../src/
94 make install-base install-shell install-scm \
95 install-plugin-scmcvs install-plugin-scmsvn install-plugin-scmgit install-plugin-scmhg \
96 install-plugin-blocks install-plugin-moinmoin \
97 install-plugin-taskboard install-plugin-message \
98 install-plugin-repositoryapi \
99 install-plugin-mediawiki
100 if [ -e /etc/centos-release ] || grep -q ^8 /etc/debian_version; then
101 make install-plugin-scmbzr
103 if [ -e /etc/centos-release -o -e /etc/debian-release ]; then
104 make install-plugin-phptextcaptcha