|
| 1 | +# postgresql-setup |
| 2 | + |
| 3 | +## Requires |
| 4 | + |
| 5 | +### BuildRequires |
| 6 | +- m4 |
| 7 | +- docbook-utils |
| 8 | +- help2man |
| 9 | +- elinks (pretty README.rpm-dist) |
| 10 | +- postgresql-server (detect current version) |
| 11 | + |
| 12 | +### Requires |
| 13 | +- coreutils |
| 14 | + |
| 15 | +### Suggested BuildRequires |
| 16 | +- util-linux (mountpoint utility) |
| 17 | + |
| 18 | +### Maintainer's BuildRequires |
| 19 | +- autoconf |
| 20 | +- automake |
| 21 | +- autoconf-archive |
| 22 | + |
| 23 | +## Maintainer notes |
| 24 | +Be careful about paths. Your might need to tweak paths either in configure |
| 25 | + files, or in code based on your environment. |
| 26 | +- Line 49 of `/bin/postgresql-setup` in function `builddir_source ()` has to |
| 27 | + be changed to location of your project otherwise you won't be able to run your |
| 28 | + build without full installation into system paths |
| 29 | + - For example line should be `. "/postgresql-setup/$file"` if your |
| 30 | + working project is located at `/postgresql-setup` |
| 31 | + - *Do NOT commit/merge this change* |
| 32 | +- Line 69 of `share/postgresql-setup/library.sh.in` in function |
| 33 | + `parse_upgrade_setup()` has to be changed to reflect location of your project. |
| 34 | + - For example line should be `local |
| 35 | + upgrade_confdir="/postgresql-setup/etc/@NAME_BINARYBASE@-setup/upgrade"` if your |
| 36 | + working project is located at `/postgresql-setup` |
| 37 | + - *Do NOT commit/merge this change* |
| 38 | + |
| 39 | +### Build instructions |
| 40 | +1. `autoreconf -vfi` |
| 41 | +2. `./configure --prefix=/usr` |
| 42 | + - Prefix needed for fedora environment - one of the path tweaks that are needed |
| 43 | +3. `make` |
| 44 | + |
| 45 | +After aforementioned steps, you should be able to run freshly built |
| 46 | +postgresql-setup script directly from /bin folder in this repo. |
| 47 | + |
| 48 | +If no init system is present, PostgreSQL server can be run after initialization |
| 49 | +via `/usr/bin/pg_ctl -D /var/lib/pgsql/data -l /var/lib/pgsql/srv.log start` |
0 commit comments