summaryrefslogtreecommitdiffstats
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* legacy-scripts: generate them from single templatePavel Raiskup2015-02-101-7/+3
| | | | | | | | | | | | | | | | | | | As we do not consider the postgresql@ unit variants (that would require libexec/initscripts/legacy-actions/postgresql@CONCRETE symlink to the default legacy-scripts directory), there is no need to do run-time checks. * Makefile.am (upgrade): Create from legacy-sysv-script.in template. (initdb): Likewise. (systemdlegacyscripts_DATA): Substitute with .. (systemdlegacyscripts_SCRIPTS): .. this to have execute bit after installation. (GENERATED_FILES): Add _SCRIPTS variant for systemdlegacyscripts. * legacy-sysv-script.in: New unified template for legacy scripts. * initdb.in: Remove. * upgrade.in: Likewise. * NEWS: Document.
* configury: ChangeLog relevant to postgresql-setup onlyPavel Raiskup2015-02-101-1/+1
| | | | * Makefile.am: Choose better day for ChangeLog begin.
* postgresql.init: use $README_DIST alsoPavel Raiskup2015-02-101-0/+1
| | | | | | | | Issue detected by './configure --with-sysvinit && make check'. * postgresql.init.in ($PGDOCDIR): Wipe it out. ($README_DIST): Use on appropriate places. * Makefile.am: Add TODO relevant to this commit.
* configury: don't build ChangeLog outside gitPavel Raiskup2015-01-071-10/+12
| | | | * Makefile.am (GL_GEN): Test the .git exists and exit if not.
* configury: remove redundant nodist_* prefixPavel Raiskup2014-12-011-8/+8
| | | | | | | .. from targets which are not distributed anyway. Thanks jmlich to forcing me to catch that mistake. * Makefile.am: Remove all nodist_ prefixes.
* systemd: added systemd's legacy scriptsJozef Mlich2014-12-011-1/+12
| | | | | | | | | * Makefile.am: (systemdlegacyscriptsdir) (nodist_systemdlegacyscrupts_DATA): New variables. (initdb, upgrade): New targets. * initdb.in: New legacy script template. * upgrade.in: Likewise. * .gitignore: Ignore newly generated scripts.
* sysvinit: rhel6 /etc/init.d to /etc/rc.d/init.dJozef Mlich2014-11-151-1/+1
| | | | * Makefile.am: s|init.d|rc.d/init.d|.
* sysvinit: install init script without '.init' suffixPavel Raiskup2014-11-141-2/+2
| | | | * Makefile.am: Make the target postgresql, not postgresql.init.
* init.d: move init script to sysconfdirJozef Mlích2014-11-131-1/+1
| | | | * Makefile.am: s|$(prefix)/etc/init.d|$(sysconfdir)/init.d|.
* sysvinit: generate init file when neededPavel Raiskup2014-10-021-1/+10
| | | | | | | | | | | | | From now, if ./configure --with-sysvinit is done, we install init script and do not install systemd files. Original patch written by Jozef Mlích (jmlich@redhat.com). * Makefile.am (initscriptsdir, nodist_initscripts_DATA): New variables. New postgresql.init target. * configure.ac: Add --with-sysvinit option. * postgresql.init.in: New sysvinit template. * .gitignore: Mention postgresql.init. * NEWS: Document.
* buildsystem: better handle distro-READMEPavel Raiskup2014-10-021-3/+3
| | | | | | | | | | Avoid detecting README.rpm-dist as we generate this file and we know the best where the file is. * configure.ac: Avoid detecting README path. Also substitute new variable README_DIST_BASENAME. * Makefile.am: Use the new $(README_DIST_BASENAME). * postgres-check-db-dir.in: Use README_DIST instead of PGDOCDIR.
* configury: fix make distcheck errorsPavel Raiskup2014-09-181-2/+4
| | | | | | | | | | | | | * Makefile.am (EXTRA_DIST): Always use $(srcdir) when referencing wildcards. (install-data-hook): Return true even for non-root make install. (DISTCLEANFILES): Mention ChangeLog. * configure.ac (TEST_GEN_FILES_LIST): Only use the basename. * tests/Makefile.am (CHECK_DEPS): Fix reference to TEST_GEN_FILES_LIST. (DISTCLEANFILES): Mention also atconfig and atlocal. * tests/testsuite.at: Fix reference to $TEST_GEN_FILES_LIST, use always $abs_top_builddir when referencing built files.
* configury: generated ChangeLog by make distPavel Raiskup2014-09-181-0/+19
| | | | | | | | Use the gitlog-to-changelog binary, if exists on the system. * Makefile.am (dist-hook): Add rules for ChangeLog. * ChangeLog: Remove file. * .gitignore: Ignore .gitignore.
* testsuite: configury & and add first test-casePavel Raiskup2014-09-171-47/+19
| | | | | | | This required little bit of generalization so I moved the SED_CALL into configure.ac to have it available for tests/Makefile.am also. The first testsuite just checks that no un-expanded @pattern@ exists in generated files.
* sysconfig: remove remaining filesPavel Raiskup2014-09-161-7/+1
|
* postgresql-check-db-dir: migrate from /etc/postgresql/*Pavel Raiskup2014-09-161-0/+1
|
* README.rpmd-dist: template fixingPavel Raiskup2014-09-161-2/+8
|
* postgresql.service: un-link with postgresql@.servicePavel Raiskup2014-09-161-7/+23
| | | | | | | | We need to create both files separately as (a) the 'postgresql.service' can not .include 'postgresql@.service' for some reason, /usr/lib/ drop-in breaks things (rhbz#1141824) and we want to have PGDATA unset for postgresql@.service, unlike the postgresql.service file.
* postgresql@.service: install this via install-data-hookPavel Raiskup2014-07-031-1/+1
| | | | | .. instead of install-exec-hook, which caused race conditions due to parallelized run of make.
* README.rpm-dist: document recent changesPavel Raiskup2014-07-031-0/+1
| | | | | | Follow the new processes - different options of postgresql-setup, instantiable unit files. Simplify the documentation thanks to the template.
* upgrade/initdb logs: diverge among service namesPavel Raiskup2014-07-031-2/+1
| | | | | | Generate separate log file for each service. Also, don't configure with INITDB_LOG or UPGRADE_LOG but rather with POSTGRES_HOME.
* configury: install postgresql@.servicePavel Raiskup2014-07-011-0/+5
| | | | | | | | | .. as a hardlink to postgresql.service. This allows us to instantiate postgresql@PATTERN units which will be easily configurable in /etc/postgresql/postgresql@PATTERN conf file. We may install separate service file with '.include' statement but that does not seem to be necessary ATM.
* postgresql-ctl: use detected PG_CTL_BINPavel Raiskup2014-07-011-0/+1
|
* postgresql-check-db-dir generated alsoPavel Raiskup2014-07-011-9/+35
| | | | | Also generate files using sed as is suggested by autoconf manual (and the autoconf project does so internally).
* Makefile.am: more readable file generationPavel Raiskup2014-07-011-11/+12
|
* generate also README.rpm-distPavel Raiskup2014-07-011-1/+10
|
* Generate postgresql.service and configuration filePavel Raiskup2014-07-011-0/+14
|
* postgresql-ctl, DISTSUFF: introducePavel Raiskup2014-07-011-1/+15
| | | | | | | | | | | | We need postgresql-ctl for to keep backward compatibility with clients setting "PGPORT" directly in service file. DISTSUFF variable (which is read by ./configure) may be used to generated namespaced binary names -- e.g. DISTSUFF=93 results in postgresql93-setup is generated instead of postgresql-setup. This commit also adjusts autotools build system to not generate scripts by ./configure, but rather by make.
* docs: update option documentation and generate manPavel Raiskup2014-07-011-0/+2
|
* configury: prepare for autotoolsPavel Raiskup2014-07-011-0/+1