From 5a2a1af55963ec6ae04661537bb6926e629c0aea Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2003 00:10:07 +0000 Subject: automated install foo --- install/freebsd/INSTALL | 9 +++++++++ install/freebsd/ports | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100755 install/freebsd/INSTALL create mode 100644 install/freebsd/ports (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL new file mode 100755 index 000000000..4840ac2be --- /dev/null +++ b/install/freebsd/INSTALL @@ -0,0 +1,9 @@ +#!/bin/sh + +for port in `grep -v '^ *#' ports`; do + cd /usr/ports/$port + make install || exit +done + +perl -MCPAN -e"install DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration" + diff --git a/install/freebsd/ports b/install/freebsd/ports new file mode 100644 index 000000000..329f084d6 --- /dev/null +++ b/install/freebsd/ports @@ -0,0 +1,42 @@ +shells/zsh +misc/screen +ftp/lftp +www/mod_perl +net/rsync +databases/postgresql7 +misc/p5-Array-PrintCols +devel/p5-Term-Query +converters/p5-MIME-Base64 +security/p5-Digest-MD5 +security/p5-MD5 +net/p5-URI +www/p5-HTML-Tagset +www/p5-HTML-Parser +www/p5-Net +misc/p5-Locale-Codes +net/p5-Net-Whois +www/p5-libwww +misc/p5-Business-CreditCard +devel/p5-Data-ShowTable +mail/p5-Mail-Tools +devel/p5-TimeDate +devel/p5-Date-Manip +misc/p5-File-CounterFile +devel/p5-FreezeThaw +devel/p5-String-Approx +textproc/p5-Text-Template +databases/p5-DBI +databases/p5-DBD-Pg +#databases/p5-DBD-mysql +databases/p5-DBIx-DataSource + #database/p5-DBIx-DBSchema + #net/p5-Net-SSH +textproc/p5-String-ShellQuote + #net/p5-Net-SCP +www/p5-Apache-ASP +www/p5-HTML-Mason +devel/p5-Tie-IxHash + #devel/p5-Time-Duration + #www/p5-HTML-Widgets-SelectLayers +devel/p5-Storable +www/p5-Apache-DBI -- cgit v1.2.1 From 14d7fe93445d40a8ae24cfd81e30d595ea2004d6 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2003 01:18:02 +0000 Subject: Net::SSH and Net::SCP are in ports --- install/freebsd/ports | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/freebsd') diff --git a/install/freebsd/ports b/install/freebsd/ports index 329f084d6..385d6b598 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -30,9 +30,9 @@ databases/p5-DBD-Pg #databases/p5-DBD-mysql databases/p5-DBIx-DataSource #database/p5-DBIx-DBSchema - #net/p5-Net-SSH +net/p5-Net-SSH textproc/p5-String-ShellQuote - #net/p5-Net-SCP +net/p5-Net-SCP www/p5-Apache-ASP www/p5-HTML-Mason devel/p5-Tie-IxHash -- cgit v1.2.1 From 1a6e8ccb610247daf9f475358471cfeed44f4e65 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2003 06:03:53 +0000 Subject: updated freebsd install --- install/freebsd/INSTALL | 18 +++++++++++++++--- install/freebsd/ports | 8 ++++---- 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index 4840ac2be..f42699c14 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -1,9 +1,21 @@ #!/bin/sh +cd /usr/ports/sysutils/portupgrade +make install + +pkgdb -u + +portinstall -PR cvsup-without-gui + +cp /usr/share/examples/cvsup/ports-supfile /root +perl -pi -e 's/CHANGE_THIS/cvsup1/;' /root/ports-supfile +cvsup /root/ports-supfile + for port in `grep -v '^ *#' ports`; do - cd /usr/ports/$port - make install || exit + #cd /usr/ports/$port + #make install || exit + portinstall -P -R $port || exit done -perl -MCPAN -e"install DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration" +perl -MCPAN -e"install Net::SSH DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration Business::CreditCard" diff --git a/install/freebsd/ports b/install/freebsd/ports index 385d6b598..3f0d40773 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -12,11 +12,11 @@ security/p5-MD5 net/p5-URI www/p5-HTML-Tagset www/p5-HTML-Parser -www/p5-Net +net/p5-Net misc/p5-Locale-Codes net/p5-Net-Whois www/p5-libwww -misc/p5-Business-CreditCard + #misc/p5-Business-CreditCard devel/p5-Data-ShowTable mail/p5-Mail-Tools devel/p5-TimeDate @@ -30,11 +30,11 @@ databases/p5-DBD-Pg #databases/p5-DBD-mysql databases/p5-DBIx-DataSource #database/p5-DBIx-DBSchema -net/p5-Net-SSH + #net/p5-Net-SSH textproc/p5-String-ShellQuote net/p5-Net-SCP www/p5-Apache-ASP -www/p5-HTML-Mason + #www/p5-HTML-Mason devel/p5-Tie-IxHash #devel/p5-Time-Duration #www/p5-HTML-Widgets-SelectLayers -- cgit v1.2.1 From 51df5a9bad917d04e58c2686831a1481f45b667e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2003 06:14:55 +0000 Subject: freebsd install --- install/freebsd/INSTALL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index f42699c14..28a453ab3 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -17,5 +17,5 @@ for port in `grep -v '^ *#' ports`; do portinstall -P -R $port || exit done -perl -MCPAN -e"install Net::SSH DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration Business::CreditCard" +for a in Net::SSH DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration Business::CreditCard; do perl -MCPAN -e"install $a"; done -- cgit v1.2.1 From 116b7654a443c2d471834264bed034b123008407 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2003 07:05:07 +0000 Subject: little bit more fbsd install automation --- install/freebsd/INSTALL | 23 +++++++++++++++++++++-- install/freebsd/ports | 1 + 2 files changed, 22 insertions(+), 2 deletions(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index 28a453ab3..53fc613d1 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -1,7 +1,8 @@ #!/bin/sh -cd /usr/ports/sysutils/portupgrade -make install +( cd /usr/ports/sysutils/portupgrade + make install +) pkgdb -u @@ -19,3 +20,21 @@ done for a in Net::SSH DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration Business::CreditCard; do perl -MCPAN -e"install $a"; done +su -l pgsql -c initdb + +/usr/local/etc/rc.d/010.pgsql.sh start + +pw user add freeside -m + +su -l pgsql -c 'createuser -P freeside' + +su -l freeside -c 'createdb freeside' + +#? +cd ../.. +make install-perl-modules +make create-config +make deploy + +#edit apache config, etc. + diff --git a/install/freebsd/ports b/install/freebsd/ports index 3f0d40773..8381e5a04 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -2,6 +2,7 @@ shells/zsh misc/screen ftp/lftp www/mod_perl +www/apache13-modssl net/rsync databases/postgresql7 misc/p5-Array-PrintCols -- cgit v1.2.1 From 71af70d04218beec79b4351b2ca721a07a33460f Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2003 07:17:54 +0000 Subject: mod_ssl before mod_perl so mod_perl picks up EAPI --- install/freebsd/ports | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/freebsd') diff --git a/install/freebsd/ports b/install/freebsd/ports index 8381e5a04..1e04a424d 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -1,8 +1,8 @@ shells/zsh misc/screen ftp/lftp -www/mod_perl www/apache13-modssl +www/mod_perl net/rsync databases/postgresql7 misc/p5-Array-PrintCols -- cgit v1.2.1 From d1d1fcff1564e12eb76a1a3e7bf5fbe7c3f2fe1e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 24 Sep 2003 02:37:59 +0000 Subject: need Cache::Cache in 1.4.2+ --- install/freebsd/ports | 1 + 1 file changed, 1 insertion(+) (limited to 'install/freebsd') diff --git a/install/freebsd/ports b/install/freebsd/ports index 1e04a424d..019c5e194 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -41,3 +41,4 @@ devel/p5-Tie-IxHash #www/p5-HTML-Widgets-SelectLayers devel/p5-Storable www/p5-Apache-DBI +devel/p5-Cache-Cache -- cgit v1.2.1 From 1bc40d60297b30e3b2d1e93168bfe7b3aa0746e2 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 8 Feb 2005 20:51:51 +0000 Subject: update freebsd install notes --- install/freebsd/INSTALL | 13 ++++++++++--- install/freebsd/ports | 28 +++++++++++++++++----------- 2 files changed, 27 insertions(+), 14 deletions(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index 53fc613d1..9b05c6f43 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -9,16 +9,20 @@ pkgdb -u portinstall -PR cvsup-without-gui cp /usr/share/examples/cvsup/ports-supfile /root -perl -pi -e 's/CHANGE_THIS/cvsup1/;' /root/ports-supfile +perl -pi -e 's/CHANGE_THIS/cvsup13/;' /root/ports-supfile cvsup /root/ports-supfile +portsdb -Uu + +portinstall -P -R portupgrade + for port in `grep -v '^ *#' ports`; do #cd /usr/ports/$port #make install || exit - portinstall -P -R $port || exit + portinstall -P -R $port done -for a in Net::SSH DBIx::DBSchema HTML::Widgets::SelectLayers Time::Duration Business::CreditCard; do perl -MCPAN -e"install $a"; done +for a in JavaScript::RPC::Server::CGI Chart::LinesPoints; do perl -MCPAN -e"install $a"; done su -l pgsql -c initdb @@ -34,6 +38,9 @@ su -l freeside -c 'createdb freeside' cd ../.. make install-perl-modules make create-config +freeside-adduser -c -h /usr/local/etc/freeside/htpasswd ivan +su freeside -c 'freeside-setup ivan' +su freeside -c '/home/ivan/freeside/bin/populate-msgcat ivan' make deploy #edit apache config, etc. diff --git a/install/freebsd/ports b/install/freebsd/ports index 019c5e194..9b8fda534 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -1,10 +1,13 @@ shells/zsh misc/screen +security/sudo ftp/lftp +lang/perl5.8 www/apache13-modssl www/mod_perl net/rsync -databases/postgresql7 +databases/postgresql74-server +#databases/postgresql74-client misc/p5-Array-PrintCols devel/p5-Term-Query converters/p5-MIME-Base64 @@ -15,9 +18,9 @@ www/p5-HTML-Tagset www/p5-HTML-Parser net/p5-Net misc/p5-Locale-Codes -net/p5-Net-Whois +net/p5-Net-Whois-Raw www/p5-libwww - #misc/p5-Business-CreditCard +finance/p5-Business-CreditCard devel/p5-Data-ShowTable mail/p5-Mail-Tools devel/p5-TimeDate @@ -28,17 +31,20 @@ devel/p5-String-Approx textproc/p5-Text-Template databases/p5-DBI databases/p5-DBD-Pg -#databases/p5-DBD-mysql -databases/p5-DBIx-DataSource - #database/p5-DBIx-DBSchema - #net/p5-Net-SSH + #databases/p5-DBD-mysql + #databases/p5-DBIx-DataSource +database/p5-DBIx-DBSchema +net/p5-Net-SSH textproc/p5-String-ShellQuote net/p5-Net-SCP -www/p5-Apache-ASP - #www/p5-HTML-Mason + #www/p5-Apache-ASP +www/p5-HTML-Mason devel/p5-Tie-IxHash - #devel/p5-Time-Duration - #www/p5-HTML-Widgets-SelectLayers +devel/p5-Time-Duration +www/p5-HTML-Widgets-SelectLayers devel/p5-Storable www/p5-Apache-DBI devel/p5-Cache-Cache +security/p5-Crypt-PasswdMD5 +net-mgmt/p5-NetAddr-IP +graphics/p5-GD -- cgit v1.2.1 From fffa50e1757bc57a5c062228f02a354cce58236d Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 6 Mar 2005 11:45:36 +0000 Subject: adding Text::CSV and Spreadsheet::WriteExcel --- install/freebsd/ports | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install/freebsd') diff --git a/install/freebsd/ports b/install/freebsd/ports index 9b8fda534..5abaac2a1 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -48,3 +48,5 @@ devel/p5-Cache-Cache security/p5-Crypt-PasswdMD5 net-mgmt/p5-NetAddr-IP graphics/p5-GD +textproc/p5-Spreadsheet-WriteExcel +textproc/p5-Text-CSV_XS -- cgit v1.2.1 From dcd77b42f7d872c87a25ba3b56b45793d5cb2d36 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 10 Mar 2005 07:27:00 +0000 Subject: freebsd bs --- install/freebsd/INSTALL | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index 9b05c6f43..6fff379f1 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -1,9 +1,11 @@ #!/bin/sh ( cd /usr/ports/sysutils/portupgrade + #??? setenv WITH_OPENSSL_PORT "yes" make install ) +#rehash pkgdb -u portinstall -PR cvsup-without-gui @@ -14,7 +16,7 @@ cvsup /root/ports-supfile portsdb -Uu -portinstall -P -R portupgrade +portinstall -PR portupgrade for port in `grep -v '^ *#' ports`; do #cd /usr/ports/$port -- cgit v1.2.1 From e3feb073075218a5a3a39e0858f1feeb15354f36 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 10 Mar 2005 15:43:59 +0000 Subject: ports is a steaming pile --- install/freebsd/INSTALL | 13 +++++++++++-- install/freebsd/ports | 4 ++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index 6fff379f1..6e3c26b23 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -18,13 +18,16 @@ portsdb -Uu portinstall -PR portupgrade +portinstall -PR lang/perl5.8 +/usr/local/bin/use.perl port + for port in `grep -v '^ *#' ports`; do #cd /usr/ports/$port #make install || exit - portinstall -P -R $port + portinstall -P -R $port || exit done -for a in JavaScript::RPC::Server::CGI Chart::LinesPoints; do perl -MCPAN -e"install $a"; done +for a in JavaScript::RPC::Server::CGI Chart::LinesPoints Frontier::RPC2; do perl -MCPAN -e"install $a"; done su -l pgsql -c initdb @@ -47,3 +50,9 @@ make deploy #edit apache config, etc. +#mkdir /etc/rc.conf.d +#add these to /etc/rc.conf.d/apache +#apache_enable="YES" +#apache_flags="-DSSL" + + diff --git a/install/freebsd/ports b/install/freebsd/ports index 5abaac2a1..4d8f01b01 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -50,3 +50,7 @@ net-mgmt/p5-NetAddr-IP graphics/p5-GD textproc/p5-Spreadsheet-WriteExcel textproc/p5-Text-CSV_XS +misc/p5-Locale-SubCountry +devel/p5-IO-stringy +textproc/p5-XML-Parser + -- cgit v1.2.1 From f552a4259dd5e8497dd2d62debfa2702e75eb1fd Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 11 Jul 2005 12:23:00 +0000 Subject: freebsd install update i guess --- install/freebsd/INSTALL | 46 ++++++++++++++++++++++++++++++++-------------- install/freebsd/ports | 2 +- 2 files changed, 33 insertions(+), 15 deletions(-) (limited to 'install/freebsd') diff --git a/install/freebsd/INSTALL b/install/freebsd/INSTALL index 6e3c26b23..e8c92b02d 100755 --- a/install/freebsd/INSTALL +++ b/install/freebsd/INSTALL @@ -1,35 +1,53 @@ #!/bin/sh +# if /usr/local/sbin/portupgrade does not exist +# then install portupgrade ( cd /usr/ports/sysutils/portupgrade #??? setenv WITH_OPENSSL_PORT "yes" - make install + make install clean ) -#rehash -pkgdb -u +# ??? +##rehash +#pkgdb -u +# if cvsup is not installed, then portinstall -PR cvsup-without-gui -cp /usr/share/examples/cvsup/ports-supfile /root -perl -pi -e 's/CHANGE_THIS/cvsup13/;' /root/ports-supfile -cvsup /root/ports-supfile +#cp /usr/share/examples/cvsup/ports-supfile /root +#perl -pi -e 's/CHANGE_THIS/cvsup13/;' /root/ports-supfile +#cvsup /root/ports-supfile +# choose the fastest cvsup server, then cvsup update +/usr/local/bin/cvsup -g -L 2 -h cvsup2.freebsd.org /usr/share/examples/cvsup/ports-supfile + +# Update the ports database +#/usr/local/sbin/portsdb -Uu portsdb -Uu portinstall -PR portupgrade portinstall -PR lang/perl5.8 +# if FreeBSD 4.x, then /usr/local/bin/use.perl port +#portupgrade -f `(pkg_info -R perl-5\* |tail +4; \ +# find /usr/local/lib/perl5/site_perl/5.[68].[1245] -type f -print0 \ +# | xargs -0 pkg_which -fv | sed -e '/: ?/d' -e 's/.*: //')|sort -u` + + for port in `grep -v '^ *#' ports`; do - #cd /usr/ports/$port - #make install || exit - portinstall -P -R $port || exit + portinstall -PR $port done for a in JavaScript::RPC::Server::CGI Chart::LinesPoints Frontier::RPC2; do perl -MCPAN -e"install $a"; done su -l pgsql -c initdb +echo ' +postgresql_enable="YES" +postgresql_data="/usr/local/pgsql/data" +postgresql_flags="-w -s -m fast" +' >>/etc/rc.conf /usr/local/etc/rc.d/010.pgsql.sh start @@ -46,13 +64,13 @@ make create-config freeside-adduser -c -h /usr/local/etc/freeside/htpasswd ivan su freeside -c 'freeside-setup ivan' su freeside -c '/home/ivan/freeside/bin/populate-msgcat ivan' -make deploy #edit apache config, etc. -#mkdir /etc/rc.conf.d -#add these to /etc/rc.conf.d/apache -#apache_enable="YES" -#apache_flags="-DSSL" +echo ' +apache_enable="YES" +apache_flags="-DSSL" +' >>/etc/rc.conf +make deploy diff --git a/install/freebsd/ports b/install/freebsd/ports index 4d8f01b01..90b49e668 100644 --- a/install/freebsd/ports +++ b/install/freebsd/ports @@ -53,4 +53,4 @@ textproc/p5-Text-CSV_XS misc/p5-Locale-SubCountry devel/p5-IO-stringy textproc/p5-XML-Parser - +mail/p5-MIME-Tools -- cgit v1.2.1