X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=install%2Fopenbsd%2FINSTALL;fp=install%2Fopenbsd%2FINSTALL;h=1beef9208561f9aceb90f2c9c4828e773cf45842;hp=0000000000000000000000000000000000000000;hb=db8213a6e1f89a0ff5f6e8a4ee40ce3db59d1c09;hpb=23e2dbc925c01f035984b3a7f3dccfa5ff7c4ccf diff --git a/install/openbsd/INSTALL b/install/openbsd/INSTALL new file mode 100644 index 000000000..1beef9208 --- /dev/null +++ b/install/openbsd/INSTALL @@ -0,0 +1,54 @@ +#!/bin/sh + +DIR=`pwd` + +#cd /usr/ports +#cvs -q -d anoncvs@anoncvs6.usa.openbsd.org:/cvs up -r OPENBSD_`uname -r | perl -pe 's/\./_/g;'` -Pd + +for a in `grep -v '^ *#' $DIR/ports` +do cd /usr/ports/$a + make install +done + +for a in `grep -v '^ *#' $DIR/cpan` +do perl -MCPAN -e "install $a" +done + +#from /usr/local/share/doc/postgresql/README.OpenBSD +useradd -c "PostgreSQL Admin User" -g =uid -m -d /var/postgresql -s /bin/sh postgresql + +su -l postgresql -c 'mkdir /var/postgresql/data' +su -l postgresql -c 'initdb -D /var/postgresql/data' + +cat <>/etc/rc.local +if [ -x /usr/local/bin/pg_ctl ]; then + su -l postgresql -c "/usr/local/bin/pg_ctl start \ + -D /var/postgresql/data -l /var/postgresql/logfile \ + -o '-D /var/postgresql/data'" + echo -n ' postgresql' +fi +END + +cat <>/etc/rc.shutdown +if [ -f /var/postgresql/data/postmaster.pid ]; then + su -l postgresql -c "/usr/local/bin/pg_ctl stop -m fast \ + -D /var/postgresql/data" + rm -f /var/postgresql/data/postmaster.pid +fi + +su -l postgresql -c "/usr/local/bin/pg_ctl start \ + -D /var/postgresql/data -l /var/postgresql/logfile \ + -o '-D /var/postgresql/data'" + +useradd -c "Freeside" -g =uid -m freeside +su -l postgresql -c 'createuser -P freeside' +su -l freeside -c 'createdb freeside' + +#? +cd ../.. +make install-perl-modules +make create-config +make deploy + +#edit apache config, etc. +