summaryrefslogtreecommitdiffstats
path: root/legacy-sysv-script.in
Commit message (Collapse)AuthorAgeFilesLines
* bunch of rhel{6,7} & scl fixesPavel Raiskup2015-03-181-1/+1
| | | | | | | | | | | | * postgresql.init.in (initdb, upgrade): Use full path to postgresql-setup, this is mostly for proper documentation purposes in case of failure. * legacy-sysv-script.in: Pass --unit before actual unit name. * postgresql-ctl.in: Handle better the $port option passed to pg_ctl. * postgresql-setup.in: Use full path to postgresql-setup, mostly for documentation purposes. * README: Add elinks to BuildRequires.
* configury: remove DISTSUFF variable completelyPavel Raiskup2015-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | And add NAME_SERVICE, NAME_PACKAGE and NAME_BINARYBASE on its place. This allows packager fine-tune how the files are going to be generated. * Makefile.am: Better work with variables. * .gitignore: Ignore any (generated) service file. * configure.ac (DISTSUFF): Remove. (NAME_BIN_PFX, NAME_BIN_SFX, NAME_PKG_PFX, NAME_PKG_SFX) (NAME_SRV_PFX, NAME_SRV_SFX, NAME_SERVICE, NAME_PACKAGE) (NAME_BINARYBASE): New variables * doc/.gitignore: Ignore any man(1) page. * doc/Makefile.am (HELP2MAN_RUN): Fix the call to work also with various prefixes/suffixes. * README.rpm-dist.in: Use new variables. * legacy-sysv-script.in: Likewise. * postgresql-setup.in: Likewise. * m4/packaging.m4 (PGSETUP_SUBST_OPT): New macro, defines, substitutes and also fixes sed-rules.
* legacy-scripts: generate them from single templatePavel Raiskup2015-02-101-0/+6
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.