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"
14 # if cvsup is not installed, then
15 portinstall -PR cvsup-without-gui
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
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
24 # Update the ports database
25 #/usr/local/sbin/portsdb -Uu
28 portinstall -PR portupgrade
30 portinstall -PR lang/perl5.8
31 # if FreeBSD 4.x, then
32 /usr/local/bin/use.perl port
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`
39 for port in `grep -v '^ *#' ports`; do
43 for a in JavaScript::RPC::Server::CGI Chart::LinesPoints Frontier::RPC2; do perl -MCPAN -e"install $a"; done
47 postgresql_enable="YES"
48 postgresql_data="/usr/local/pgsql/data"
49 postgresql_flags="-w -s -m fast"
52 /usr/local/etc/rc.d/010.pgsql.sh start
54 pw user add freeside -m
56 su -l pgsql -c 'createuser -P freeside'
58 su -l freeside -c 'createdb freeside'
62 make install-perl-modules
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'
68 #edit apache config, etc.