summaryrefslogtreecommitdiff
path: root/install/debian/3.1/INSTALL
blob: c047660f0947b3235cad9105181087f93d3809b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh

echo "deb http://420.am/~ivan/freeside-sarge/ ./" >>/etc/apt/sources.list

apt-get update
apt-get install make screen zsh cvs fsh rsync \
        apache libapache-mod-ssl libapache-mod-ssl-doc libapache-mod-perl \
        postgresql postgresql-contrib \
        tetex-base tetex-bin tetex-extra \
        gs lpr libpaper-utils psutils dialog psfontmgr \
        liburi-perl libhtml-tagset-perl libnet-perl \
        libwww-perl libbusiness-creditcard-perl \
        libmailtools-perl libtimedate-perl libdate-manip-perl \
        libfile-counterfile-perl libfreezethaw-perl libstring-approx-perl \
        libtext-template-perl libdbi-perl libdbd-pg-perl \
        libdbix-dbschema-perl libnet-ssh-perl \
        libstring-shellquote-perl libnet-scp-perl libhtml-mason-perl \
        libtie-ixhash-perl libtime-duration-perl \
        libhtml-widgets-selectlayers-perl \
        libapache-dbi-perl libcache-cache-perl libdbd-mysql-perl \
        libcrypt-passwdmd5-perl libnetaddr-ip-perl \
        libnet-whois-raw-perl libchart-perl \
        libmime-perl libapache-session-perl libhtml-tree-perl \
        libhtml-format-perl libtest-inline-perl libclass-returnvalue-perl \
        libdbix-searchbuilder-perl  liblog-dispatch-perl \
        liblocale-maketext-lexicon-perl liblocale-maketext-fuzzy-perl \
        libtext-wrapper-perl libtime-modules-perl libterm-readkey-perl \
        libtext-autoformat-perl libtext-quoted-perl libregexp-common-perl \
        libhtml-scrubber-perl libtree-simple-perl liblocale-subcountry-perl \
        libtext-csv-perl libspreadsheet-writeexcel-perl libfrontier-rpc-perl \
	libjavascript-rpc-perl libipc-run3-perl libjson-perl

useradd freeside
groupadd freeside
su postgres -c "createuser -P freeside"

su freeside -c "createdb freeside"

perl -p -i.fsbackup -e 's/^(User|Group) .*/$1 freeside/' /etc/apache/httpd.conf
( cd /usr/share/doc/libapache-mod-ssl/examples/;
  cp mod-ssl.conf vhost.conf.gz /etc/apache/conf.d
)
gunzip /etc/apache/conf.d/vhost.conf.gz

#?
cd ../../..
make install-perl-modules
make create-config
freeside-adduser -c -h /usr/local/etc/freeside/htpasswd ivan
freeside-adduser fs_queue
su freeside -c 'freeside-setup ivan'
su freeside -c '/home/ivan/freeside/bin/populate-msgcat ivan'
make configure-rt

#muck with pg perms
make create-rt
#unmuck pg perms

make deploy