563bfe8bb45278c563476400237489a2da24482b
[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         libjavascript-rpc-perl libipc-run3-perl
32
33 useradd freeside
34 groupadd freeside
35 su postgres -c "createuser -P freeside"
36
37 su freeside -c "createdb freeside"
38
39 perl -p -i.fsbackup -e 's/^(User|Group) .*/$1 freeside/' /etc/apache/httpd.conf
40 ( cd /usr/share/doc/libapache-mod-ssl/examples/;
41   cp mod-ssl.conf vhost.conf.gz /etc/apache/conf.d
42 )
43 gunzip /etc/apache/conf.d/vhost.conf.gz
44
45 #?
46 cd ../../..
47 make install-perl-modules
48 make create-config
49 freeside-adduser -c -h /usr/local/etc/freeside/htpasswd ivan
50 freeside-adduser fs_queue
51 su freeside -c 'freeside-setup ivan'
52 su freeside -c '/home/ivan/freeside/bin/populate-msgcat ivan'
53 make deploy