CpPostgreSQL.pm 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package Troglodyne::CpPostgreSQL;
  2. use strict;
  3. use warnings;
  4. our %REPO_RPM_URLS = (
  5. '8' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
  6. '7' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
  7. '6' => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm',
  8. );
  9. # Repository entries will look like "pgdg$VERSION" -- ex. pgdg95
  10. our $REPO_PREFIX = 'pgdg';
  11. our $PKG_PREFIX = 'postgresql';
  12. our $MINIMUM_SUPPORTED_VERSION = '9.5';
  13. # Times are in seconds since epoch, as that allows easier localization.
  14. our %SUPPORTED_VERSIONS_MAP = (
  15. '9.5' => { 'release' => 1452146400, 'EOL' => 1613023200 },
  16. '9.6' => { 'release' => 1475125200, 'EOL' => 1636610400 },
  17. '10' => { 'release' => 1507179600, 'EOL' => 1668060000 },
  18. '11' => { 'release' => 1539838800, 'EOL' => 1699509600 },
  19. '12' => { 'release' => 1570078800, 'EOL' => 1731564000 },
  20. );
  21. # The BS that cPanel will be installing with /scripts/installpostgres
  22. our %CP_UNSUPPORTED_VERSIONS_MAP = (
  23. '9.2' => { 'release' => 1347253200, 'EOL' => 1510207200 }, # Cent 7
  24. '8.4' => { 'release' => 1246424400, 'EOL' => 1406178000 }, # Cent 6
  25. );
  26. sub get_available_versions {
  27. }
  28. 1;