ff9e2f37529cb9395950c223a678f4c1d51557d6
[freeside.git] / install / debian / 3.1 / INSTALL
1 #!/bin/sh
2
3 #echo "deb http://pouncequick.420.am/~ivan/freeside-sarge/ ./" >>/etc/apt/sources.list
4
5 apt-get update
6 apt-get install make screen zsh cvs fsh rsync \
7         apache libapache-mod-ssl libapache-mod-ssl-doc libapache-mod-perl \
8         postgresql postgresql-contrib \
9         tetex-base tetex-bin tetex-extra \
10         gs lpr libpaper-utils psutils dialog psfontmgr \
11         liburi-perl libhtml-tagset-perl libnet-perl \
12         libwww-perl libbusiness-creditcard-perl \
13         libmailtools-perl libtimedate-perl libdate-manip-perl \
14         libfile-counterfile-perl libfreezethaw-perl libstring-approx-perl \
15         libtext-template-perl libdbi-perl libdbd-pg-perl \
16         libdbix-dbschema-perl libnet-ssh-perl \
17         libstring-shellquote-perl libnet-scp-perl libhtml-mason-perl \
18         libtie-ixhash-perl libtime-duration-perl \
19         libhtml-widgets-selectlayers-perl \
20         libapache-dbi-perl libcache-cache-perl libdbd-mysql-perl \
21         libcrypt-passwdmd5-perl libnetaddr-ip-perl \
22         libnet-whois-raw-perl libchart-perl \
23         libmime-perl libapache-session-perl libhtml-tree-perl \
24         libhtml-format-perl libtest-inline-perl libclass-returnvalue-perl \
25         libdbix-searchbuilder-perl  liblog-dispatch-perl \
26         liblocale-maketext-lexicon-perl liblocale-maketext-fuzzy-perl \
27         libtext-wrapper-perl libtime-modules-perl libterm-readkey-perl \
28         libtext-autoformat-perl libtext-quoted-perl libregexp-common-perl \
29         libhtml-scrubber-perl libtree-simple-perl liblocale-subcountry-perl \
30         libtext-csv-perl libspreadsheet-writeexcel-perl libfrontier-rpc-perl
31
32 useradd freeside
33 su postgres -c "createuser -P freeside"
34
35 su freeside -c "createdb freeside"
36
37 perl -p -i.fsbackup -e 's/^(User|Group) .*/$1 freeside/' /etc/apache/httpd.conf
38
39 #?
40 cd ../../..
41 make install-perl-modules
42 make create-config
43 freeside-adduser -c -h /usr/local/etc/freeside/htpasswd ivan
44 su freeside -c 'freeside-setup ivan'
45 su freeside -c '/home/ivan/freeside/bin/populate-msgcat ivan'
46 make deploy