Project

General

Profile

# Date Author Comment
13015 04/01/2014 12:45 PM Aaron Marcuse-Kubitza

/Makefile: postgres_restart-Linux: documented that the manual running of the command is needed because for some reason, pg_ctl does not work when run inside make

13014 04/01/2014 12:43 PM Aaron Marcuse-Kubitza

fix: /Makefile: postgres_restart-Linux: added pause after telling the user the command to run

13013 04/01/2014 12:42 PM Aaron Marcuse-Kubitza

/Makefile: $(postgresReload-*): use postgres_restart for the postgres-restarting step

13012 04/01/2014 12:30 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: postgres_restart: added separate Linux version that deals with Linux-specific issues (as in $(postgresReload-Linux))

13011 04/01/2014 12:15 PM Aaron Marcuse-Kubitza

/Makefile: added postgres_restart, since this is often invoked separately from the entire postgres_reload target

12548 02/28/2014 10:28 PM Aaron Marcuse-Kubitza

/Makefile: added separate phppgadmin-Linux target to avoid needing to run the entire postgres-Linux target whenever http://vegbiendev.nceas.ucsb.edu/phppgadmin/ goes down (after some system updates)

11970 01/20/2014 11:33 AM Aaron Marcuse-Kubitza

moved everything into /trunk/ to create the standard svn layout, for use with tools that require this (eg. git-svn). IMPORTANT: do NOT do an `svn up`. instead, re-use your working copy's existing files with `svn switch` (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html).

11896 12/11/2013 07:45 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: install: need to run inputs/download in live mode so that the flat files are actually downloaded

11862 12/06/2013 06:01 AM Aaron Marcuse-Kubitza

fix: /Makefile: inputs/reinstall: commented out to avoid a cascade of "overriding commands for target" warnings. this will revert to the default uninstall, install sequence for this target rather than the simultaneous-reinstall optimization (which can still be invoked manually).

11848 12/06/2013 01:57 AM Aaron Marcuse-Kubitza

bugfix: /Makefile: moved inputs/reinstall to end so it overrides the corresponding subdir forwarding target

11846 12/06/2013 12:27 AM Aaron Marcuse-Kubitza

bugfix: /Makefile: inputs/install: don't run bin/reinstall_all here, because /install targets are supposed to be idempotent, forward-only actions that don't first remove existing data

11845 12/05/2013 11:55 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: postgres-Darwin: don't prepend $(MAKE) to $(postgresReload-Darwin), because this is now a list of commands

11844 12/05/2013 11:52 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: config: ignore errors if ~/bin/make exists

11675 11/18/2013 12:43 AM Aaron Marcuse-Kubitza

fix: /Makefile: $(macPostgresLibs): added libpq.5, which is needed by PostgreSQL 9.3

11674 11/18/2013 12:29 AM Aaron Marcuse-Kubitza

fix: /Makefile: postgres-Darwin: also need to install psycopg2

11673 11/17/2013 11:27 PM Aaron Marcuse-Kubitza

/Makefile: postgres-Linux: add the PostgreSQL 9.2 apt-src in case we ever need to downgrade to it

11672 11/17/2013 10:57 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: postgres-Linux: ignore errors if `sudo apt-get update` returns a non-zero exit status due to unreachable apt sources (which are likely unrelated to PostgreSQL, and should not prevent PostgreSQL configuration from continuing)

11671 11/17/2013 10:54 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: postgres-Linux: fixed command to create /etc/apt/sources.list.d/pgdg.list

11669 11/15/2013 04:29 AM Aaron Marcuse-Kubitza

/Makefile: postgres-Linux: also install postgresql-#-postgis-scripts, which is used by derived/biengeo/

11662 11/14/2013 06:44 AM Aaron Marcuse-Kubitza

Makefile, schemas/.Mac.conf: upgraded to PostgreSQL 9.3, which is needed for proper exception parsing in the auto-re-create-views functionality. this also removes the Mac 10.8 Mountain Lion quirks, such as renaming the postgres user to _postgres (which messed everything up, but is now back to normal).

11661 11/14/2013 04:09 AM Aaron Marcuse-Kubitza

/Makefile: postgres-Linux: added steps to install PostgreSQL 9.3, which is needed for proper exception parsing in the auto-re-create-views functionality

11150 10/01/2013 10:57 PM Aaron Marcuse-Kubitza

/Makefile: mk_db: config/users.sql: unset ON_ERROR_STOP so user-exists errors don't prevent further user-adds

10539 07/31/2013 08:28 PM Aaron Marcuse-Kubitza

bugfix: /Makefile: postgres-Linux: phppgadmin.conf: updated `ln -s` to /etc/apache2/conf-available/ for current name of /etc/apache2/conf.d/phppgadmin.conf, which is now just phppgadmin

10223 07/10/2013 04:33 PM Aaron Marcuse-Kubitza

/Makefile: mysql-Linux: also install mysql-workbench, for use in modifying the VegCore ERD. (note that it has to be modified on Linux, because the Linux and Mac versions of MySQL Workbench position the lines differently.)

10126 07/02/2013 11:01 AM Aaron Marcuse-Kubitza

bugfix: *Makefile: $(asAdmin) invocations of Postgres commands: need to set DB user to postgres so that it won't default to the system user _postgres

10125 07/02/2013 10:57 AM Aaron Marcuse-Kubitza

*Makefile: removed $(psqlOpts), $(psqlAsAdmin), which are now set by lib/common.Makefile

10121 07/02/2013 10:45 AM Aaron Marcuse-Kubitza

/Makefile: $(postgresReload-Darwin): also install pg_ident.Mac.conf

10119 07/02/2013 10:29 AM Aaron Marcuse-Kubitza

*Makefile: removed $(asAdmin), which is now set by lib/common.Makefile

9917 06/19/2013 07:58 AM Aaron Marcuse-Kubitza

bugfix: /Makefile: postgres-Linux: phpPgAdmin: added steps to configure it for Apache 2.4

9742 06/06/2013 02:35 AM Aaron Marcuse-Kubitza

/Makefile: new config target (part of install): install our bin/make in the user's ~/bin dir so that bin/make (with filtering of verbose messages) will always be used instead of standard make (without us needing to change every occurrence of make to bin/make!)

9703 06/04/2013 06:31 PM Aaron Marcuse-Kubitza

/Makefile: moved %/remake, %-remake to lib/common.Makefile because they are generally useful

9702 06/04/2013 06:26 PM Aaron Marcuse-Kubitza

/Makefile: moved %/reinstall to lib/common.Makefile because it is generally useful

8844 05/06/2013 07:05 AM Aaron Marcuse-Kubitza

bugfix: /Makefile: moved schemas/install from install to db so that it is also run whenever the DB is reinstalled. schemas/install is needed by the staging tables reinstallation performed by reinstall_all.

8818 05/05/2013 04:30 AM Aaron Marcuse-Kubitza

bugfix: /Makefile: apache-Linux: use the standard apt-get syntax for Makefiles (`-sudo apt-get --yes install`) instead of just `apt-get install`

8817 05/05/2013 04:24 AM Aaron Marcuse-Kubitza

/Makefile: added Apache 2.4 installation

8627 04/23/2013 04:31 PM Aaron Marcuse-Kubitza

bugfix: root Makefile: $(postgresReload-Linux): fixed the "shmat(id=...) failed: Cannot allocate memory" error by telling the user to restart PostgreSQL manually from the command line

8626 04/23/2013 04:29 PM Aaron Marcuse-Kubitza

root Makefile: $(postgresReload-Linux): don't restart Postgres twice, because this does not fix the "shmat(id=...) failed: Cannot allocate memory" error. this error is instead produced whenever PostgreSQL is restarted from within a Makefile, but not when it's run directly from the command line or /bin/sh.

8625 04/23/2013 03:20 PM Aaron Marcuse-Kubitza

root Makefile: $(postgresReload-Linux): restart Postgres twice, because the first time after the postgresql.conf has been udpated, it always produces a "shmat(id=...) failed: Cannot allocate memory" error

8081 03/19/2013 09:27 PM Aaron Marcuse-Kubitza

root Makefile: Installation: Fixed bug where need to run schemas/public/install separately because schemas/install installs only the util schemas

8080 03/19/2013 09:26 PM Aaron Marcuse-Kubitza

root Makefile: Installation: install util schemas (temp functions py_functions) before inputs, so that inputs can use util functions in their postprocess.sql or create.sql scripts. (However, they must not use util functions in views or index functions, because these would be cascadingly deleted whenever the util schemas are reinstalled before an import.)

7836 03/05/2013 07:52 PM Aaron Marcuse-Kubitza

root Makefile: Datasources: scrub: Removed no longer needed scrub-remake, which has been replaced by direct use of TNRS.ScrubbedTaxon

7801 03/01/2013 03:53 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: mk_db: Added command to import arbitrary DB users from a config file

7575 02/16/2013 08:02 AM Aaron Marcuse-Kubitza

root Makefile: MySQL: mysql-Linux: Also install phpMyAdmin

7574 02/16/2013 08:01 AM Aaron Marcuse-Kubitza

root Makefile: MySQL: mysql-Linux: Split apt-get dependencies into separate commands, like for other apt-get commands, to avoid having one failed dependency prevent the following dependencies from being installed

7573 02/16/2013 07:57 AM Aaron Marcuse-Kubitza

root Makefile: MySQL: *mysql_users: Also add bien_read user

7572 02/16/2013 07:49 AM Aaron Marcuse-Kubitza

root Makefile: MySQL: Renamed *mysql_user to *mysql_users because there can be multiple users

7423 02/02/2013 01:26 PM Aaron Marcuse-Kubitza

root Makefile: misc-Linux: Added command to copy dotlockfile to the bin/ dir, so that it can be used without being SETGID mail, which would prevent it from creating lockfiles in a directory owned by the bien user and group when being run by the user

7422 02/02/2013 01:24 PM Aaron Marcuse-Kubitza

root Makefile: core: Added misc-* to install other dependencies

7268 01/16/2013 02:55 PM Aaron Marcuse-Kubitza

root Makefile: Datasources: import: Use new import_scrub instead of import (input.Makefile)

7264 01/16/2013 02:26 PM Aaron Marcuse-Kubitza

root Makefile: Datasources: Added scrub, which runs tnrs-remake and scrub-remake

7231 01/16/2013 01:43 AM Aaron Marcuse-Kubitza

root Makefile: python-Darwin: Added instructions to install dateutil for Python 3 as well as Python 2, for use in PL/Python functions

7230 01/16/2013 01:42 AM Aaron Marcuse-Kubitza

root Makefile: python-Darwin: Added note that Python 2 comes preinstalled

7082 01/07/2013 02:00 PM Aaron Marcuse-Kubitza

root Makefile: Removed $(subMake), which is now defined properly by lib/common.Makefile

6916 12/19/2012 06:22 AM Aaron Marcuse-Kubitza

Moved schemas-related commands from root Makefile to schemas/Makefile

6915 12/19/2012 06:15 AM Aaron Marcuse-Kubitza

Makefiles: Factored out common vars/functions into lib/common.Makefile

6914 12/19/2012 05:59 AM Aaron Marcuse-Kubitza

root Makefile: $(psqlNoSearchPath): Merged $(psqlAsBien) into it because it's the only place $(psqlAsBien) is used

6913 12/19/2012 05:56 AM Aaron Marcuse-Kubitza

root Makefile: $(psqlAsBien): Use psql_script_vegbien instead of psql_vegbien, which adds $(psqlOpts) itself

6853 12/14/2012 08:53 AM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(editPhppgadmin): Ignore errors if patch has already been applied

6824 12/14/2012 12:51 AM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: phpPgAdmin: Edit config file to allow passwordless logins. Edit login page to fill in public_ as the default username and add a message to leave the password blank for that user.

6823 12/12/2012 10:45 PM Aaron Marcuse-Kubitza

root Makefile: $(postgresReload-*): Ignore `mv -n` errors, which generally indicate that the existing *.conf was already renamed to *.conf.old

6822 12/12/2012 10:36 PM Aaron Marcuse-Kubitza

Makefile mk_db, schemas/pg_hba*.conf: Added passwordless public_ user with access to just the database schema. Note that in PostgreSQL, only users with explicit GRANT permissions on a table can read data in that table, but all DB users with a login can view all table schemas.

6544 12/03/2012 04:37 PM Aaron Marcuse-Kubitza

root Makefile: apt-get: Use --yes to allow unattended installations

6503 11/30/2012 04:46 PM Aaron Marcuse-Kubitza

root Makefile: $(postgresReload-*): Confirm the operation before continuing, since it involves changing PostgreSQL config files in nontrivial ways. Added instructions for setting kernel.shmmax to at least 4GB minus 1 byte on Linux, to work with the shared_buffers setting in postgresql.conf.

6489 11/29/2012 01:11 PM Aaron Marcuse-Kubitza

root Makefile: $(postgres-Linux): Fixed bug where need $(asAdmin) before commands to rename existing *.conf

6488 11/29/2012 01:01 PM Aaron Marcuse-Kubitza

root Makefile: $(postgres-Linux): Also install postgresql-contrib, which contains the hstore extension

6473 11/28/2012 12:42 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(postgresReload-*): Rename existing *.conf to *.conf.old

6447 11/24/2012 03:07 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(postgresReload-Linux): Try chmoding both as your user and as the bien user

6337 11/20/2012 07:49 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(postgresReload-Linux): Making schemas/*.conf world-readable: Fixed bug where need to do this as the bien user, which owns the files

6336 11/20/2012 07:46 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(postgresReload-*): Make schemas/*.conf world-readable so it's readable by the postgres user, which the .conf installation is run as

6335 11/20/2012 07:43 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(postgresReload-*): Also install pg_hba.conf

6334 11/20/2012 07:36 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: Added postgres_reload to reload postgresql.conf and restart the DB

6333 11/20/2012 07:30 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: postgres-*: Factored postgresql.conf installation out in to $(postgresReload-*)

6331 11/20/2012 06:56 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: DB and users: Also create bien_read user for read-only access to the DB

6221 11/15/2012 10:20 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: DB and bien user: mk_db: hstore extension: Fixed bug where need to use `CREATE EXTENSION hstore SCHEMA pg_catalog` instead of createlang, because hstore must be explicitly created in pg_catalog or else it will be created in the public schema instead, causing it to get deleted every time the public schema is reinstalled and cascading the delete to everything (including in other schemas) that uses hstore

6219 11/15/2012 08:57 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: postgres-Linux: Changed plpython to plpython3 in order to install plpython3u

6215 11/15/2012 08:05 PM Aaron Marcuse-Kubitza

root Makefile: Python: python-Linux: Also install python3, needed by plpython3u

6207 11/15/2012 06:40 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: DB and bien user: mk_db: Also install hstore extension. Note that this is only supported by PostgreSQL 9.1+.

6201 11/15/2012 05:18 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(pg_ctl-*): Fixed bug where need to pause for a few seconds after restarting PostgreSQL, to wait for the server to be ready to accept connections

6200 11/15/2012 05:12 PM Aaron Marcuse-Kubitza

root Makefile: Installation: uninstall: Removed inputs/uninstall because the DB will be uninstalled anyway, so the inputs don't need to be individually removed first

6198 11/15/2012 05:06 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: postgres-Linux: Also install postgresql.conf

6197 11/15/2012 04:54 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: postgres-Darwin: Also install postgresql.Mac.conf

6196 11/15/2012 04:40 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(macUsePostgresLib): Factored out PostgreSQL dir to $(macPostgresDir)

6194 11/15/2012 04:29 PM Aaron Marcuse-Kubitza

root Makefile: Datasources: inputs/install: Fixed bug where need to `wait` after `. bin/reinstall_all` to wait for inputs to finish installing before installing the public schema. This is necessary because views in the public schema now have dependencies on some datasources, such as TNRS.

6193 11/15/2012 04:25 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(psqlAsAdmin): Use new $(asAdmin)

6192 11/15/2012 04:25 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: Schemas: schemas/public/install: Use $(psqlNoSearchPath) instead of $(psqlAsBien) because the search_path is set by vegbien.sql

6191 11/15/2012 04:16 PM Aaron Marcuse-Kubitza

root Makefile: Datasources: Added inputs/install override which runs `. bin/reinstall_all` instead, in order to install all datasources simultaneously

6190 11/15/2012 04:03 PM Aaron Marcuse-Kubitza

root Makefile: Python: python-Darwin: Added instructions to install Python 3.2 (Python 2 comes with Mac OS X, but Python 3.2 is needed for plpython3u)

6189 11/15/2012 03:55 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: DB and bien user: mk_db: Updated for PostgreSQL 9.1.6 on the Mac, which only provides plpython3u (Python 3)

6188 11/15/2012 03:54 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: DB and bien user: mk_db: Updated for PostgreSQL 9.1.6, which requires the DB name to be specified on the command line instead of in the $PGDATABASE env var set by postgres_vegbien. Fixed bug where need to run createlang as postgres superuser, because plpythonu is an untrusted language (with unrestricted access to the entire DB).

6187 11/15/2012 03:51 PM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: postgres-Darwin: Updated for PostgreSQL 9.1.6, which requires some /usr/lib/ symlinks to be changed to newer versions installed in the PostgreSQL lib/ dir

6102 11/09/2012 04:41 PM Aaron Marcuse-Kubitza

root Makefile: Installation: Fixed bug where schemas/install needed to happen after inputs/install because some of the public schema's views now depend on inputs

6098 11/08/2012 06:38 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: Schemas: Run all schema installs and uninstalls using no_search_path=1, so that the schemas in the automatic search_path are not required for the command to run

6089 11/08/2012 03:45 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: Schemas: public: schemas/public/uninstall: Fixed bug where need to run psql_vegbien without public in the search_path because it may have already been deleted

6088 11/08/2012 03:44 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: Schemas: public: schemas/public/install: Fixed bug where need to run psql_vegbien without public in the search_path because it doesn't exist, by setting public to the empty string (deleting it)

6023 11/06/2012 01:03 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: DB and bien user: db: Run inputs/.TNRS/install before schemas/install because public.tnrs_input_name depends on TNRS.tnrs

5679 10/19/2012 05:12 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: Schemas: schemas/rotate: Use new schemas/rename/%

5678 10/19/2012 05:12 PM Aaron Marcuse-Kubitza

root Makefile: VegBIEN DB: Schemas: Added schemas/rename/% to rename the public schema

5459 10/12/2012 04:23 AM Aaron Marcuse-Kubitza

Makefile: Moved setting of $(root) before include of lib/common.Makefile because it's used by lib/common.Makefile

5458 10/12/2012 04:21 AM Aaron Marcuse-Kubitza

Factored OS section out from Makefile, input.Makefile into lib/common.Makefile

5457 10/12/2012 04:13 AM Aaron Marcuse-Kubitza

Makefile, input.Makefile: Use new $(version), which unlike $(date) also includes the svn revision, to version log files, etc. This way, the working copy can be put back to the way it was at the time of a given import (excluding changes to nonversioned files). This also makes it easier to get all the log files for a particular import when different tables' imports started at different times.