This commit was generated by cvs2svn to compensate for changes in r4407,
[freeside.git] / install / freebsd / INSTALL
1 #!/bin/sh
2
3 # if /usr/local/sbin/portupgrade does not exist
4 # then install portupgrade
5 ( cd /usr/ports/sysutils/portupgrade
6   #??? setenv WITH_OPENSSL_PORT "yes"
7   make install clean
8 )
9
10 # ???
11 ##rehash
12 #pkgdb -u
13
14 # if cvsup is not installed, then
15 portinstall -PR cvsup-without-gui
16
17 #cp /usr/share/examples/cvsup/ports-supfile /root
18 #perl -pi -e 's/CHANGE_THIS/cvsup13/;' /root/ports-supfile
19 #cvsup /root/ports-supfile
20
21 # choose the fastest cvsup server, then cvsup update
22 /usr/local/bin/cvsup -g -L 2 -h cvsup2.freebsd.org /usr/share/examples/cvsup/ports-supfile
23
24 # Update the ports database
25 #/usr/local/sbin/portsdb -Uu
26 portsdb -Uu
27
28 portinstall -PR portupgrade
29
30 portinstall -PR lang/perl5.8
31 # if FreeBSD 4.x, then
32 /usr/local/bin/use.perl port
33
34 #portupgrade -f `(pkg_info -R perl-5\* |tail +4; \
35 #        find /usr/local/lib/perl5/site_perl/5.[68].[1245] -type f -print0 \
36 #        | xargs -0 pkg_which -fv | sed -e '/: ?/d' -e 's/.*: //')|sort -u`
37
38
39 for port in `grep -v '^ *#' ports`; do
40   portinstall -PR $port
41 done
42
43 for a in JavaScript::RPC::Server::CGI Chart::LinesPoints Frontier::RPC2; do perl -MCPAN -e"install $a"; done
44
45 su -l pgsql -c initdb
46 echo '
47 postgresql_enable="YES"
48 postgresql_data="/usr/local/pgsql/data"
49 postgresql_flags="-w -s -m fast"
50 ' >>/etc/rc.conf
51
52 /usr/local/etc/rc.d/010.pgsql.sh start
53
54 pw user add freeside -m
55
56 su -l pgsql -c 'createuser -P freeside'
57
58 su -l freeside -c 'createdb freeside'
59
60 #?
61 cd ../..
62 make install-perl-modules
63 make create-config
64 freeside-adduser -c -h /usr/local/etc/freeside/htpasswd ivan
65 su freeside -c 'freeside-setup ivan'
66 su freeside -c '/home/ivan/freeside/bin/populate-msgcat ivan'
67
68 #edit apache config, etc.
69
70 echo '
71 apache_enable="YES"
72 apache_flags="-DSSL"
73 ' >>/etc/rc.conf
74
75 make deploy
76