Andreas Wacknitz
2023-12-02 2548416cbc29236ac6ce8c7b80b5dc301e1de323
add pg_repack for Postgresql-15

4 files added
124 ■■■■■ changed files
components/database/postgresql-15-pg_repack/Makefile 48 ●●●●● patch | view | raw | blame | history
components/database/postgresql-15-pg_repack/manifests/sample-manifest.p5m 29 ●●●●● patch | view | raw | blame | history
components/database/postgresql-15-pg_repack/pg_repack.p5m 35 ●●●●● patch | view | raw | blame | history
components/database/postgresql-15-pg_repack/pkg5 12 ●●●●● patch | view | raw | blame | history
components/database/postgresql-15-pg_repack/Makefile
New file
@@ -0,0 +1,48 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2023 Andreas Wacknitz
#
BUILD_BITS= 64
BUILD_STYLE= justmake
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=    pg_repack
COMPONENT_VERSION=    1.5.0
COMPONENT_SUMMARY=    pg_repack - utility to reorganize PostgreSQL tables on-line
COMPONENT_SRC=    $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).zip
COMPONENT_ARCHIVE_HASH= sha256:118542907ed6f1f713a45cc6b2daef8ca1e667f0c918bb9e24f390033fd52610
COMPONENT_ARCHIVE_URL=    https://api.pgxn.org/dist/pg_repack/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL=    https://reorg.github.io/pg_repack/
COMPONENT_FMRI=    database/postgres-15/pg_repack
COMPONENT_CLASSIFICATION=    System/Databases
COMPONENT_LICENSE=    BSD
COMPONENT_LICENSE_FILE=    COPYRIGHT
PG_VERSION=    15
# Don't depend on host default pg_config
PATH= $(PG_HOME)/bin:/usr/sbin:/usr/bin
TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
# Manually added build dependencies
REQUIRED_PACKAGES += $(PG_DEVELOPER_PKG)
# Auto-generated dependencies
REQUIRED_PACKAGES += $(PG_LIBRARY_PKG)
REQUIRED_PACKAGES += database/postgres-15
REQUIRED_PACKAGES += system/library
components/database/postgresql-15-pg_repack/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,29 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2023 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/postgres/15/bin/pg_repack
file path=usr/postgres/15/lib/$(MACH64)/pg_repack.so
file path=usr/postgres/15/share/extension/pg_repack--$(HUMAN_VERSION).sql
file path=usr/postgres/15/share/extension/pg_repack.control
components/database/postgresql-15-pg_repack/pg_repack.p5m
New file
@@ -0,0 +1,35 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2023 Andreas Wacknitz
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
depend fmri=pkg:/database/postgres-15 type=require
link path=usr/bin/pg_repack target=../postgres/$(PG_VERSION)/bin/pg_repack \
    mediator=postgres mediator-implementation=postgresql \
    mediator-version=$(PG_VERSION)
file path=usr/postgres/15/bin/pg_repack
file path=usr/postgres/15/lib/$(MACH64)/pg_repack.so
file path=usr/postgres/15/share/extension/pg_repack--$(HUMAN_VERSION).sql
file path=usr/postgres/15/share/extension/pg_repack.control
components/database/postgresql-15-pg_repack/pkg5
New file
@@ -0,0 +1,12 @@
{
    "dependencies": [
        "database/postgres-15",
        "database/postgres-15/developer",
        "database/postgres-15/library",
        "system/library"
    ],
    "fmris": [
        "database/postgres-15/pg_repack"
    ],
    "name": "pg_repack"
}