6 #cvs -q -d anoncvs@anoncvs6.usa.openbsd.org:/cvs up -r OPENBSD_`uname -r | perl -pe 's/\./_/g;'` -Pd
8 for a in `grep -v '^ *#' $DIR/ports`
13 for a in `grep -v '^ *#' $DIR/cpan`
14 do perl -MCPAN -e "install $a"
17 #from /usr/local/share/doc/postgresql/README.OpenBSD
18 useradd -c "PostgreSQL Admin User" -g =uid -m -d /var/postgresql -s /bin/sh postgresql
20 su -l postgresql -c 'mkdir /var/postgresql/data'
21 su -l postgresql -c 'initdb -D /var/postgresql/data'
23 cat <<END >>/etc/rc.local
24 if [ -x /usr/local/bin/pg_ctl ]; then
25 su -l postgresql -c "/usr/local/bin/pg_ctl start \
26 -D /var/postgresql/data -l /var/postgresql/logfile \
27 -o '-D /var/postgresql/data'"
32 cat <<END >>/etc/rc.shutdown
33 if [ -f /var/postgresql/data/postmaster.pid ]; then
34 su -l postgresql -c "/usr/local/bin/pg_ctl stop -m fast \
35 -D /var/postgresql/data"
36 rm -f /var/postgresql/data/postmaster.pid
39 su -l postgresql -c "/usr/local/bin/pg_ctl start \
40 -D /var/postgresql/data -l /var/postgresql/logfile \
41 -o '-D /var/postgresql/data'"
43 useradd -c "Freeside" -g =uid -m freeside
44 su -l postgresql -c 'createuser -P freeside'
45 su -l freeside -c 'createdb freeside'
49 make install-perl-modules
53 #edit apache config, etc.