Index: 14.1/Makefile
===================================================================
--- 14.1/Makefile (nonexistent)
+++ 14.1/Makefile (revision 5)
@@ -0,0 +1,463 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/b/postgresql
+
+REQUIRES = dev/perl/5.36.0
+REQUIRES += dev/python3/3.10.8
+REQUIRES += app/util-linux/2.38.1
+REQUIRES += libs/libxml2/2.9.9
+REQUIRES += libs/libxslt/1.1.34
+REQUIRES += libs/readline/8.2
+REQUIRES += libs/icu4c/68.2
+REQUIRES += libs/lz4/1.9.4
+REQUIRES += net/openssl/1.1.1r
+REQUIRES += net/krb5/1.19.1
+REQUIRES += secure/pam/1.5.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 14.1
+pg_version = $(shell echo $(version) | cut -f1,2 -d '.')
+tar_bz2_archive = $(SRC_PACKAGE_PATH)/packages/b/postgresql/postgresql-$(version).tar.bz2
+SRC_ARCHIVE = $(tar_bz2_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/postgresql-$(version)
+src_dir_name = postgresql-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_tools_dir = $(TARGET_BUILD_DIR)/build-tools
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+abs_build_dir = $(CURDIR)/$(build_dir)
+
+pg_port = 5432
+pg_uid = 209
+pg_gid = 209
+
+rc_postgresql_in = $(CURDIR)/etc/rc.d/rc.postgresql.in
+logrotate_in = $(CURDIR)/etc/logrotate.d/postgresql.in
+postgresql_pam = $(CURDIR)/etc/pam.d/postgresql
+setup_script_in = $(CURDIR)/setup/setup.postgresql.in
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PGSQL_PKG_NAME = postgresql
+PGSQL_PKG_VERSION = 14.1
+PGSQL_PKG_ARCH = $(PKGARCH)
+PGSQL_PKG_DISTRO_NAME = $(DISTRO_NAME)
+PGSQL_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+PGSQL_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+PGSQL_PKG_SHORT_DESCRIPTION = database management system
+PGSQL_PKG_URL = $(BUG_URL)
+PGSQL_PKG_LICENSE = custom
+PGSQL_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(PGSQL_PKG_NAME)-pkg-description
+PGSQL_PKG_DESCRIPTION_FILE_IN = $(PGSQL_PKG_NAME)-pkg-description.in
+PGSQL_PKG_INSTALL_SCRIPT = $(PGSQL_PKG_NAME)-pkg-install.sh
+
+PGSQL_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PGSQL_PKG_NAME)-package
+
+pkg_basename = $(PGSQL_PKG_NAME)-$(PGSQL_PKG_VERSION)-$(PGSQL_PKG_ARCH)-$(PGSQL_PKG_DISTRO_NAME)-$(PGSQL_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PGSQL_PKG)
+
+
+#
+# Perl Configuration:
+#
+extra_environment = PERL=$(PERL)
+extra_environment += pgac_perl_version=5.34.0
+extra_environment += perl_archlibexp='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+extra_environment += perl_privlibexp='$(TARGET_DEST_DIR)/usr/share/perl5'
+extra_environment += perl_includespec='-I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+extra_environment += perl_useshrplib='true'
+extra_environment += perl_embed_ldflags='-L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE -Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE -lperl'
+
+#
+# Python Configuration:
+#
+PYTHON_VERSION = 3.10
+
+python-configdir = $(shell echo "$(shell dirname $(shell ls $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/python$(1)/config-$(1)-*/config.c))")
+
+extra_environment += python_version=$(PYTHON_VERSION)
+extra_environment += python_majorversion=$(PYTHON_MAJOR_VERSION)
+extra_environment += python_configdir='$(call python-configdir,$(PYTHON_VERSION))'
+extra_environment += python_includespec='-I$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)'
+extra_environment += python_libdir='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)'
+extra_environment += python_enable_shared=1
+extra_environment += python_libspec='-L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) -lpython$(PYTHON_VERSION)'
+extra_environment += python_additional_libs='-lpthread -ldl -lutil -lm'
+
+#
+# Tools configure switches (for devenv pg_config):
+#
+tools_configure_switches = --docdir=/usr/share/doc/$(src_dir_name)
+tools_configure_switches += --mandir=/usr/share/man
+
+tools_configure_switches += --includedir=/usr/include
+tools_configure_switches += --sysconfdir=/etc/postgresql/$(pg_version)
+tools_configure_switches += --datarootdir=/usr/share
+tools_configure_switches += --datadir=/usr/share/postgresql-$(pg_version)
+
+#
+# configure switches:
+#
+extra_configure_switches = --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --includedir=/usr/include
+extra_configure_switches += --sysconfdir=/etc/postgresql/$(pg_version)
+extra_configure_switches += --datarootdir=/usr/share
+extra_configure_switches += --datadir=/usr/share/postgresql-$(pg_version)
+
+extra_configure_switches += --with-openssl
+extra_configure_switches += --with-tcl=no
+extra_configure_switches += --with-perl
+extra_configure_switches += --with-python
+extra_configure_switches += --with-libxml
+extra_configure_switches += --with-libxslt
+
+extra_configure_switches += --with-gssapi
+extra_configure_switches += --with-icu
+extra_configure_switches += --with-uuid=e2fs
+extra_configure_switches += --with-ldap
+extra_configure_switches += --with-lz4
+
+extra_configure_switches += --enable-thread-safety
+extra_configure_switches += --with-system-tzdata=/usr/share/zoneinfo
+extra_configure_switches += --enable-nls
+extra_configure_switches += --with-pam
+
+
+#
+# Some interesting additional modules:
+# http://www.postgresql.org/docs/9.6/static/contrib.html
+#
+# adminpack - helper extension for pgAdmin
+# pgcrypto - extension for some business applications
+# hstore, ltree, xml2 - useful extensions for developers
+# postgres_fdw - foreign-data wrapper for access to external PostgreSQL servers
+# file_fdw - foreign-data wrapper for access to data files on filesystem
+# citext - provides a case-insensitive character string type, citext.
+# Essentially, it internally calls lower when comparing values.
+# Otherwise, it behaves almost exactly like text.
+# uuid-ossp - The uuid-ossp module provides functions to generate universally
+# unique identifiers (UUIDs) using one of several standard algorithms.
+#
+PG_EXTENSIONS = adminpack pgcrypto hstore ltree xml2
+PG_EXTENSIONS += postgres_fdw file_fdw citext uuid-ossp
+
+
+TARGET_PERL_RPATH = /usr/lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)/perl5/CORE:/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version)/lib
+TARGET_PYTHON_RPATH = /usr/lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version)/lib
+TARGET_LIB_RPATH = $(TARGET_PYTHON_RPATH)
+
+CFLAGS += -Wno-unused-function
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ # ======= remove parser files to build its again =======
+ @( rm -f $(SRC_DIR)/src/backend/parser/gram.{c,h} )
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(PGSQL_PKG)/usr/bin
+ @mkdir -p $(build_tools_dir)
+ # ======= build pg_config for development environment =======
+ @( cd $(build_tools_dir) ; \
+ ../$(src_dir_name)/configure \
+ --prefix=/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version) \
+ $(tools_configure_switches) ; \
+ ( cd src/backend && $(MAKE) generated-headers ) ; \
+ $(MAKE) -C src/bin/pg_config ; \
+ cp -a src/bin/pg_config/pg_config $(PGSQL_PKG)/usr/bin/$(TARGET)-pg_config ; \
+ )
+ # ======= build PostgreSQL for target machine =======
+ @mkdir -p $(build_dir)
+ @cd $(build_dir) && \
+ $(BUILD_ENVIRONMENT) $(extra_environment) ../$(src_dir_name)/configure \
+ --prefix=/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version) \
+ --build=$(BUILD) \
+ --host=$(TARGET) \
+ $(extra_configure_switches)
+ # ======= make links in src/include directory to generated header files =======
+ @cd $(build_dir)/src/backend && $(MAKE) generated-headers
+ # ======= build postgresql-$(version) =======
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) XSUBPPDIR=$(TARGET_DEST_DIR)/usr/share/perl5
+ # ======= build extensions =======
+ @( cd $(build_dir)/contrib ; \
+ for ext in $(PG_EXTENSIONS) ; do \
+ ( cd $$ext && $(BUILD_ENVIRONMENT) $(MAKE) ) ; \
+ done ; \
+ )
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(PGSQL_PKG)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ @( cd $(build_dir)/contrib ; \
+ for ext in $(PG_EXTENSIONS) ; do \
+ ( cd $$ext && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot) ) ; \
+ done ; \
+ )
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install-docs $(env_sysroot)
+ # ======= create symlinks to binary executables =======
+ @mkdir -p $(PGSQL_PKG)/usr/bin
+ @( cd $(PGSQL_PKG)/usr/bin ; \
+ for i in `ls ../lib$(LIBSUFFIX)/postgresql/$(pg_version)/bin/*` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create symlinks to shared library for other programs =======
+ @( cd $(PGSQL_PKG)/usr/lib$(LIBSUFFIX) ; \
+ for i in `ls postgresql/$(pg_version)/lib/lib*.so*` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create symlinks to pkg-config files for other programs =======
+ @mkdir $(PGSQL_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+ @( cd $(PGSQL_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+ for i in `ls ../postgresql/$(pg_version)/lib/pkgconfig/*.pc` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create database directories =======
+ @mkdir -p $(PGSQL_PKG)/var/lib/pgsql/$(pg_version)/data
+ # ======= install system scripts =======
+ @mkdir -p $(PGSQL_PKG)/etc/rc.d
+ @sed -e "s/@PG_VERSION@/$(pg_version)/" \
+ -e "s/@PKGNAME@/postgresql/" \
+ -e "s/@PG_PORT@/$(pg_port)/" \
+ -e "s/@LIBDIRSUFFIX@/$(LIBSUFFIX)/" \
+ $(rc_postgresql_in) > $(PGSQL_PKG)/etc/rc.d/rc.postgresql.new
+ @mkdir -p $(PGSQL_PKG)/etc/logrotate.d
+ @sed -e "s/@PG_VERSION@/$(pg_version)/" \
+ -e "s/@PKGNAME@/postgresql/" \
+ $(logrotate_in) > $(PGSQL_PKG)/etc/logrotate.d/postgresql.new
+ @mkdir -p $(PGSQL_PKG)/etc/pam.d
+ @cp -a $(postgresql_pam) $(PGSQL_PKG)/etc/pam.d/postgresql.new
+ @mkdir -p $(PGSQL_PKG)/var/lib/$(DISTRO_NAME)/setup
+ @sed -e "s/@PG_VERSION@/$(pg_version)/" \
+ -e "s/@UID@/$(pg_uid)/" \
+ -e "s/@GID@/$(pg_gid)/" \
+ $(setup_script_in) > $(PGSQL_PKG)/var/lib/$(DISTRO_NAME)/setup/setup.postgresql
+ @chmod 0755 $(PGSQL_PKG)/var/lib/$(DISTRO_NAME)/setup/setup.postgresql
+ @mkdir -p $(PGSQL_PKG)/var/run/pgsql
+ # ======= Install Documentation =======
+ @( cd $(PGSQL_PKG)/usr/share/man/man3 ; \
+ for file in *.3 ; do \
+ ln=`head -n 1 $$file` ; \
+ if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+ origin=`echo $$ln | cut -f 2 -d ' '` ; \
+ origin=`basename $$origin` ; \
+ rm -f $$file ; \
+ ln -sf $$origin $$file ; \
+ fi ; \
+ done ; \
+ )
+ @( cd $(PGSQL_PKG)/usr/share/man/man7 ; \
+ for file in *.7 ; do \
+ ln=`head -n 1 $$file` ; \
+ if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+ origin=`echo $$ln | cut -f 2 -d ' '` ; \
+ origin=`basename $$origin` ; \
+ rm -f $$file ; \
+ ln -sf $$origin $$file ; \
+ fi ; \
+ done ; \
+ )
+ @if [ -d $(PGSQL_PKG)/usr/share/man ]; then \
+ ( cd $(PGSQL_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ gzip -9 *.? ; \
+ ) \
+ done \
+ ) \
+ fi
+ @mkdir -p $(PGSQL_PKG)/usr/doc/$(src_dir_name)
+ @cp -a $(SRC_DIR)/COPYRIGHT \
+ $(PGSQL_PKG)/usr/doc/$(src_dir_name)
+ @mkdir -p $(PGSQL_PKG)/usr/share/doc/$(src_dir_name)
+ @( cd $(SRC_DIR) ; \
+ cp -a COPYRIGHT HISTORY INSTALL README doc/TODO \
+ $(PGSQL_PKG)/usr/share/doc/$(src_dir_name) \
+ )
+ @( cd $(SRC_DIR) ; \
+ if [ -r ChangeLog ]; then \
+ DOCSDIR=`echo $(PGSQL_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+ touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+ fi \
+ )
+ # ======= remove toolchain path from target pkg-config *.pc files =======
+ @( cd $(PGSQL_PKG)/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version)/lib/pkgconfig ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(PGSQL_PKG))
+ # ======= remove devenv pg_config from target package =======
+ @rm -f $(PGSQL_PKG)/usr/bin/$(TARGET)-pg_config
+ # ======= tune target Makefile.global variables =======
+ @( cd $(PGSQL_PKG)/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version)/lib/pgxs/src ; \
+ sed -i "s,$(abs_build_dir),/usr/src/build-pgsql,g" Makefile.global ; \
+ sed -i "s,$(BUILDSYSTEM),,g" Makefile.global ; \
+ sed -i "s,$(BUILD),$(TARGET),g" Makefile.global ; \
+ sed -i "s, --sysroot=$(TARGET_DEST_DIR),,g" Makefile.global ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" Makefile.global ; \
+ sed -i "s,CC=.*-gcc,CC=/usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,CPP = .*-gcc,CPP = /usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,CC = .*-gcc,CC = /usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,AR = .*-ar,AR = /usr/bin/ar,g" Makefile.global ; \
+ sed -i "s,LD = .*-ld,LD = /usr/bin/ld,g" Makefile.global ; \
+ sed -i "s,RANLIB = .*-ranlib,RANLIB = /usr/bin/ranlib,g" Makefile.global ; \
+ sed -i "s,= .*-strip,= /usr/bin/strip,g" Makefile.global ; \
+ )
+ # ======= tune pkg-config *.pc search path to the target destination for development =======
+ @( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version)/lib/pkgconfig ; \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(PGSQL_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+ )
+ifneq ($(PATCHELF),)
+ # ======= Set RPATH/RUNPATH for target shared objects =======
+ @( cd $(PGSQL_PKG)/usr/lib$(LIBSUFFIX)/postgresql/$(pg_version)/lib ; \
+ for file in plperl.so ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_PERL_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ for file in plpython$(PYTHON_MAJOR_VERSION).so ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_PYTHON_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ )
+endif
+ @touch $@
+
+$(PGSQL_PKG_DESCRIPTION_FILE): $(PGSQL_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PGSQL_PKG_DESCRIPTION_FILE) $(PGSQL_PKG_INSTALL_SCRIPT)
+ @cp $(PGSQL_PKG_DESCRIPTION_FILE) $(PGSQL_PKG)/.DESCRIPTION
+ @cp $(PGSQL_PKG_INSTALL_SCRIPT) $(PGSQL_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(PGSQL_PKG)/.REQUIRES
+ @echo "pkgname=$(PGSQL_PKG_NAME)" > $(PGSQL_PKG)/.PKGINFO ; \
+ echo "pkgver=$(PGSQL_PKG_VERSION)" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "arch=$(PGSQL_PKG_ARCH)" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "distroname=$(PGSQL_PKG_DISTRO_NAME)" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "distrover=$(PGSQL_PKG_DISTRO_VERSION)" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "group=$(PGSQL_PKG_GROUP)" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(PGSQL_PKG_SHORT_DESCRIPTION)\"" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "url=$(PGSQL_PKG_URL)" >> $(PGSQL_PKG)/.PKGINFO ; \
+ echo "license=$(PGSQL_PKG_LICENSE)" >> $(PGSQL_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(PGSQL_PKG) && \
+ chown -R root:root . && \
+ chmod 700 var/lib/pgsql && \
+ chown -R $(pg_uid):$(pg_gid) var/lib/pgsql && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 14.1/PATCHES
===================================================================
--- 14.1/PATCHES (nonexistent)
+++ 14.1/PATCHES (revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/b/postgresql/patches/postgresql-14.1-cross-configure.patch -p0
+../../../sources/packages/b/postgresql/patches/postgresql-14.1-run-socket-dir.patch -p0
Index: 14.1/etc/logrotate.d/postgresql.in
===================================================================
--- 14.1/etc/logrotate.d/postgresql.in (nonexistent)
+++ 14.1/etc/logrotate.d/postgresql.in (revision 5)
@@ -0,0 +1,9 @@
+/var/log/@PKGNAME@-@PG_VERSION@ {
+ daily
+ rotate 7
+ copytruncate
+ delaycompress
+ compress
+ notifempty
+ missingok
+}
Index: 14.1/etc/logrotate.d
===================================================================
--- 14.1/etc/logrotate.d (nonexistent)
+++ 14.1/etc/logrotate.d (revision 5)
Property changes on: 14.1/etc/logrotate.d
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1/etc/pam.d/postgresql
===================================================================
--- 14.1/etc/pam.d/postgresql (nonexistent)
+++ 14.1/etc/pam.d/postgresql (revision 5)
@@ -0,0 +1,7 @@
+#
+# /etc/pam.d/postgresql
+#
+
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
Index: 14.1/etc/pam.d
===================================================================
--- 14.1/etc/pam.d (nonexistent)
+++ 14.1/etc/pam.d (revision 5)
Property changes on: 14.1/etc/pam.d
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1/etc/rc.d/rc.postgresql.in
===================================================================
--- 14.1/etc/rc.d/rc.postgresql.in (nonexistent)
+++ 14.1/etc/rc.d/rc.postgresql.in (revision 5)
@@ -0,0 +1,174 @@
+#!/bin/bash
+
+# PostgreSQL startup script for Radix Linux
+#
+# $Revision: 6804ca7db709 $
+# $Date: 2015/03/13 21:57:14 $
+#
+# Copyright 2007-2015 Adis Nezirovic <adis_at_linux.org.ba>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Do not source this script (since it contains exit() calls)
+#
+# Since version 9.3 this startup script can run multiple PostgreSQL
+# versions on different ports and with different data dirs.
+#
+# e.g. PG_VERSION=14.1 PG_PORT=6432 /etc/rc.d/rc.@PKGNAME@ start
+
+PG_VERSION=${PG_VERSION:-@PG_VERSION@}
+PG_PORT=${PG_PORT:-@PG_PORT@}
+LIBDIRSUFFIX="@LIBDIRSUFFIX@"
+LOGFILE=/var/log/@PKGNAME@-$PG_VERSION
+DATADIR=/var/lib/pgsql/$PG_VERSION/data
+RUNDIR=/var/run/pgsql
+POSTGRES=/usr/lib${LIBDIRSUFFIX}/@PKGNAME@/$PG_VERSION/bin/postgres
+PG_CTL=/usr/lib${LIBDIRSUFFIX}/@PKGNAME@/$PG_VERSION/bin/pg_ctl
+PIDFILE=$DATADIR/postmaster.pid
+
+# oom-killer score
+#
+# https://www.postgresql.org/docs/14/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT
+PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj
+PG_MASTER_OOM_SCORE_ADJ=-1000
+PG_CHILD_OOM_SCORE_ADJ=0
+PG_ENV="PG_OOM_ADJUST_FILE=$PG_OOM_ADJUST_FILE PG_OOM_ADJUST_VALUE=$PG_CHILD_OOM_SCORE_ADJ"
+
+# Return values (according to LSB):
+# 0 - success
+# 1 - generic or unspecified error
+# 2 - invalid or excess argument(s)
+# 3 - unimplemented feature (e.g. "reload")
+# 4 - insufficient privilege
+# 5 - program is not installed
+# 6 - program is not configured
+# 7 - program is not running
+
+pg_ctl()
+{
+ CMD="$PG_CTL -o '-p $PG_PORT' $@"
+ su - postgres -c "$CMD"
+}
+
+if [ ! -f $POSTGRES ]; then
+ echo "Could not find 'postgres' binary. Maybe PostgreSQL is not installed properly?"
+ exit 5
+fi
+
+case "$1" in
+
+ "start")
+ echo "Starting PostgreSQL"
+ touch $LOGFILE
+ chown postgres:wheel $LOGFILE
+ chmod 0640 $LOGFILE
+ mkdir -p $RUNDIR
+ chown -R postgres:postgres $RUNDIR
+
+ if [ ! -e $DATADIR/PG_VERSION ]; then
+ echo "You should initialize the PostgreSQL database at location $DATADIR"
+ echo "e.g. su postgres -c \"initdb -D $DATADIR --locale=en_US.UTF-8 -A md5 -W\""
+ exit 6
+ fi
+
+ if [ $(pgrep -f $POSTGRES) ]; then
+
+ echo "PostgreSQL daemon already running"
+ if [ ! -f $PIDFILE ]; then
+ echo "Warning: Missing pid file $PIDFILE"
+ fi
+ exit 1
+
+ else
+ test -e "$PG_OOM_ADJUST_FILE" && echo "$PG_MASTER_OOM_SCORE_ADJ" > "$PG_OOM_ADJUST_FILE"
+ pg_ctl start -w -l $LOGFILE -D $DATADIR
+ exit 0
+ fi
+ ;;
+
+ "stop")
+ echo "Shutting down PostgreSQL..."
+ pg_ctl stop -l $LOGFILE -D $DATADIR -m smart
+ ;;
+
+ "force-stop")
+ # Take care! This will kill _all_ client connections
+ # and rollback current transactions.
+ echo "Shutting down PostgreSQL (fast)..."
+ pg_ctl stop -l $LOGFILE -D $DATADIR -m fast
+ ;;
+
+ "unclean-stop")
+ # Take care! This will abort server process itself
+ # resulting with database recovery on next start.
+ echo "Shutting down PostgreSQL (immediate)..."
+ pg_ctl stop -l $LOGFILE -D $DATADIR -m immediate
+ ;;
+
+ "restart")
+ echo "Restarting PostgreSQL..."
+ test -e "$PG_OOM_ADJUST_FILE" && echo "$PG_MASTER_OOM_SCORE_ADJ" > "$PG_OOM_ADJUST_FILE"
+ pg_ctl restart -l $LOGFILE -D $DATADIR -m smart
+ ;;
+
+ "force-restart")
+ # Take care! This will kill _all_ client connections
+ # and rollback current transactions.
+ echo "Restarting PostgreSQL (fast)..."
+ pg_ctl restart -l $LOGFILE -D $DATADIR -m fast
+ ;;
+
+ "unclean-restart")
+ # Take care: This will abort server process itself
+ # resulting with database recovery on start.
+ echo "Restarting PostgreSQL (immediate)..."
+ pg_ctl restart -l $LOGFILE -D $DATADIR -m immediate
+ ;;
+
+ "reload")
+ echo "Reloading configuration for PostgreSQL..."
+ pg_ctl reload -l $LOGFILE -D $DATADIR -m smart
+ ;;
+
+ "status")
+ if [ $(pgrep -f $POSTGRES) ]; then
+ echo "PostgreSQL is running"
+
+ if [ ! -e $PIDFILE ]; then
+ echo "Warning: Missing pid file $PIDFILE"
+ fi
+
+ exit 0
+ else
+ echo "PostgreSQL is stopped"
+
+ if [ -e $PIDFILE ]; then
+ echo "Detected stale pid file $PIDFILE"
+ fi
+
+ exit 0
+ fi
+ ;;
+
+ *)
+ # unclean-stop and unclean-restart are not documented on purpose.
+ echo "Usage: $0 {start|stop|force-stop|status|restart|force-restart|reload}"
+ exit 1
+ ;;
+esac
Index: 14.1/etc/rc.d
===================================================================
--- 14.1/etc/rc.d (nonexistent)
+++ 14.1/etc/rc.d (revision 5)
Property changes on: 14.1/etc/rc.d
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1/etc
===================================================================
--- 14.1/etc (nonexistent)
+++ 14.1/etc (revision 5)
Property changes on: 14.1/etc
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1/postgresql-pkg-description.in
===================================================================
--- 14.1/postgresql-pkg-description.in (nonexistent)
+++ 14.1/postgresql-pkg-description.in (revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+postgresql: PostgreSQL @VERSION@ (database management system)
+postgresql:
+postgresql: PostgreSQL is an advanced object-relational database management
+postgresql: system (ORDBMS) based on POSTGRES. With more than 15 years of
+postgresql: development history, it is quickly becoming the de facto
+postgresql: database for enterprise level open source solutions.
+postgresql:
+postgresql: Homepage: https://www.postgresql.org
+postgresql:
+postgresql:
+postgresql:
Index: 14.1/postgresql-pkg-install.sh
===================================================================
--- 14.1/postgresql-pkg-install.sh (nonexistent)
+++ 14.1/postgresql-pkg-install.sh (revision 5)
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ install_file $NEW
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ preserve_perms etc/rc.d/rc.postgresql.new
+ install_file etc/logrotate.d/postgresql.new
+ install_file etc/pam.d/postgresql.new
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 14.1/postgresql-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 14.1/setup/setup.postgresql.in
===================================================================
--- 14.1/setup/setup.postgresql.in (nonexistent)
+++ 14.1/setup/setup.postgresql.in (revision 5)
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+PG_HOME=/var/lib/pgsql
+PG_USER=postgres
+PG_USER_ID=@UID@
+PG_GROUP=postgres
+PG_GROUP_ID=@GID@
+PG_VERSION=@PG_VERSION@
+
+echo "Adding PostgreSQL user and group..."
+groupadd -g $PG_GROUP_ID $PG_GROUP
+useradd -g $PG_GROUP -u $PG_USER_ID -d $PG_HOME -c PostgreSQL $PG_USER
+mkdir -p $PG_HOME/$PG_VERSION/data
+
+## default permissions
+echo "Setting up permissions..."
+chown -R $PG_USER:$PG_GROUP $PG_HOME
+chmod 700 $PG_HOME
+chmod 700 $PG_HOME/$PG_VERSION
+chmod 700 $PG_HOME/$PG_VERSION/data
+
+## database cluster
+if [ ! -f $PG_HOME/$PG_VERSION/data/PG_VERSION ]; then
+ echo "Creating database cluster in $PG_HOME/$PG_VERSION/data..."
+ su $PG_USER -c "initdb -D $PG_HOME/$PG_VERSION/data --locale=en_US.UTF-8 -A md5 -W"
+else
+ echo "*** WARNING ***" >&2
+ echo " There is already a database cluster in $PG_HOME/$PG_VERSION/data." >&2
+ echo " If you are upgrading from an older version of PostgreSQL" >&2
+ echo " you will have to 'dump' and 'restore' your database." >&2
+ echo " See PostgreSQL manual for more details." >&2
+fi
+
+echo "PostgreSQL post-installation setup completed"
Index: 14.1/setup
===================================================================
--- 14.1/setup (nonexistent)
+++ 14.1/setup (revision 5)
Property changes on: 14.1/setup
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1
===================================================================
--- 14.1 (nonexistent)
+++ 14.1 (revision 5)
Property changes on: 14.1
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1-ppc32/Makefile
===================================================================
--- 14.1-ppc32/Makefile (nonexistent)
+++ 14.1-ppc32/Makefile (revision 5)
@@ -0,0 +1,312 @@
+
+COMPONENT_TARGETS = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+CREATE_PPC32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/b/postgresql
+
+REQUIRES = app/postgresql/14.1
+REQUIRES += dev/perl/5.36.0-ppc32
+REQUIRES += dev/python3/3.10.8-ppc32
+REQUIRES += app/util-linux/2.38.1-ppc32
+REQUIRES += libs/libxml2/2.9.9-ppc32
+REQUIRES += libs/libxslt/1.1.34-ppc32
+REQUIRES += libs/readline/8.2-ppc32
+REQUIRES += libs/icu4c/68.2-ppc32
+REQUIRES += libs/lz4/1.9.4-ppc32
+REQUIRES += net/openssl/1.1.1r-ppc32
+REQUIRES += net/krb5/1.19.1-ppc32
+REQUIRES += secure/pam/1.5.1-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 14.1
+pg_version = $(shell echo $(version) | cut -f1,2 -d '.')
+tar_bz2_archive = $(SRC_PACKAGE_PATH)/packages/b/postgresql/postgresql-$(version).tar.bz2
+SRC_ARCHIVE = $(tar_bz2_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/postgresql-$(version)
+src_dir_name = postgresql-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_tools_dir = $(TARGET_BUILD_DIR)/build-tools
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+abs_build_dir = $(CURDIR)/$(build_dir)
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PGSQL_32_PKG_NAME = postgresql-x32
+PGSQL_32_PKG_VERSION = 14.1
+PGSQL_32_PKG_ARCH = $(PKGARCH)
+PGSQL_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
+PGSQL_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+PGSQL_32_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+PGSQL_32_PKG_SHORT_DESCRIPTION = database management system
+PGSQL_32_PKG_URL = $(BUG_URL)
+PGSQL_32_PKG_LICENSE = custom
+PGSQL_32_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(PGSQL_32_PKG_NAME)-pkg-description
+PGSQL_32_PKG_DESCRIPTION_FILE_IN = $(PGSQL_32_PKG_NAME)-pkg-description.in
+PGSQL_32_PKG_INSTALL_SCRIPT = $(PGSQL_32_PKG_NAME)-pkg-install.sh
+
+PGSQL_32_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PGSQL_32_PKG_NAME)-package
+
+pkg_basename = $(PGSQL_32_PKG_NAME)-$(PGSQL_32_PKG_VERSION)-$(PGSQL_32_PKG_ARCH)-$(PGSQL_32_PKG_DISTRO_NAME)-$(PGSQL_32_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PGSQL_32_PKG)
+
+
+#
+# Perl Configuration:
+#
+extra_environment = PERL=$(PERL)
+extra_environment += pgac_perl_version=5.34.0
+extra_environment += perl_archlibexp='$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5'
+extra_environment += perl_privlibexp='$(TARGET_DEST_DIR)/usr/share/perl5'
+extra_environment += perl_includespec='-I$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5/CORE'
+extra_environment += perl_useshrplib='true'
+extra_environment += perl_embed_ldflags='-L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5/CORE -Wl,-E -Wl,-rpath,/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5/CORE -lperl'
+
+#
+# Python Configuration:
+#
+PYTHON_VERSION = 3.10
+
+python-configdir = $(shell echo "$(shell dirname $(shell ls $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(1)/config-$(1)-*/config.c))")
+
+extra_environment += python_version=$(PYTHON_VERSION)
+extra_environment += python_majorversion=$(PYTHON_MAJOR_VERSION)
+extra_environment += python_configdir='$(call python-configdir,$(PYTHON_VERSION))'
+extra_environment += python_includespec='-I$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)'
+extra_environment += python_libdir='$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)'
+extra_environment += python_enable_shared=1
+extra_environment += python_libspec='-L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) -lpython$(PYTHON_VERSION)'
+extra_environment += python_additional_libs='-lpthread -ldl -lutil -lm'
+
+#
+# Tools configure switches (for devenv pg_config):
+#
+tools_configure_switches = --docdir=/usr/share/doc/$(src_dir_name)
+tools_configure_switches += --mandir=/usr/share/man
+
+tools_configure_switches += --includedir=/usr/include
+tools_configure_switches += --sysconfdir=/etc/postgresql/$(pg_version)
+tools_configure_switches += --datarootdir=/usr/share
+tools_configure_switches += --datadir=/usr/share/postgresql-$(pg_version)
+
+#
+# configure switches:
+#
+extra_configure_switches = --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --includedir=/usr/include
+extra_configure_switches += --sysconfdir=/etc/postgresql/$(pg_version)
+extra_configure_switches += --datarootdir=/usr/share
+extra_configure_switches += --datadir=/usr/share/postgresql-$(pg_version)
+
+extra_configure_switches += --with-openssl
+extra_configure_switches += --with-tcl=no
+extra_configure_switches += --with-perl
+extra_configure_switches += --with-python
+extra_configure_switches += --with-libxml
+extra_configure_switches += --with-libxslt
+
+extra_configure_switches += --with-gssapi
+extra_configure_switches += --with-icu
+extra_configure_switches += --with-uuid=e2fs
+extra_configure_switches += --with-ldap
+extra_configure_switches += --with-lz4
+
+extra_configure_switches += --enable-thread-safety
+extra_configure_switches += --with-system-tzdata=/usr/share/zoneinfo
+extra_configure_switches += --enable-nls
+extra_configure_switches += --with-pam
+
+
+TARGET_PERL_RPATH = /usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5/CORE:/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/lib
+TARGET_PYTHON_RPATH = /usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/lib
+TARGET_LIB_RPATH = $(TARGET_PYTHON_RPATH)
+
+CFLAGS += -Wno-unused-function
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ # ======= remove parser files to build its again =======
+ @( rm -f $(SRC_DIR)/src/backend/parser/gram.{c,h} )
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(PGSQL_32_PKG)/usr/bin
+ @mkdir -p $(build_tools_dir)
+ # ======= build pg_config for development environment =======
+ @( cd $(build_tools_dir) ; \
+ ../$(src_dir_name)/configure \
+ --prefix=/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version) \
+ $(tools_configure_switches) ; \
+ ( cd src/backend && $(MAKE) generated-headers ) ; \
+ $(MAKE) -C src/bin/pg_config ; \
+ cp -a src/bin/pg_config/pg_config $(PGSQL_32_PKG)/usr/bin/$(TARGET32)-pg_config ; \
+ )
+ # ======= build PostgreSQL for target machine =======
+ @mkdir -p $(build_dir)
+ @cd $(build_dir) && \
+ $(BUILD_ENVIRONMENT) $(extra_environment) ../$(src_dir_name)/configure \
+ --prefix=/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version) \
+ --build=$(BUILD) \
+ --host=$(TARGET32) \
+ $(extra_configure_switches)
+ # ======= make links in src/include directory to generated header files =======
+ @cd $(build_dir)/src/backend && $(MAKE) generated-headers
+ # ======= build postgresql-$(version) =======
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) XSUBPPDIR=$(TARGET_DEST_DIR)/usr/share/perl5
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(PGSQL_32_PKG)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ @rm -rf $(PGSQL_32_PKG)/usr/include
+ @rm -rf $(PGSQL_32_PKG)/usr/share
+ # ======= create symlinks to binary executables =======
+ @mkdir -p $(PGSQL_32_PKG)/usr/bin/32
+ @( cd $(PGSQL_32_PKG)/usr/bin/32 ; \
+ for i in `ls ../../lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/bin/*` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create symlinks to shared library for other programs =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+ for i in `ls postgresql/$(pg_version)/lib/lib*.so*` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create symlinks to pkg-config files for other programs =======
+ @mkdir $(PGSQL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+ for i in `ls ../postgresql/$(pg_version)/lib/pkgconfig/*.pc` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= remove toolchain path from target pkg-config *.pc files =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/lib/pkgconfig ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(PGSQL_32_PKG))
+ # ======= remove devenv pg_config from target package =======
+ @rm -f $(PGSQL_32_PKG)/usr/bin/$(TARGET32)-pg_config
+ # ======= tune target Makefile.global variables =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/lib/pgxs/src ; \
+ sed -i "s,$(abs_build_dir),/usr/src/ppc32/build-pgsql,g" Makefile.global ; \
+ sed -i "s,$(BUILDSYSTEM),,g" Makefile.global ; \
+ sed -i "s,$(BUILD),$(TARGET32),g" Makefile.global ; \
+ sed -i "s, --sysroot=$(TARGET_DEST_DIR),,g" Makefile.global ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" Makefile.global ; \
+ sed -i "s,CC=.*-gcc,CC=/usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,CPP = .*-gcc,CPP = /usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,CC = .*-gcc,CC = /usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,AR = .*-ar,AR = /usr/bin/ar,g" Makefile.global ; \
+ sed -i "s,LD = .*-ld,LD = /usr/bin/ld -melf_i386,g" Makefile.global ; \
+ sed -i "s,RANLIB = .*-ranlib,RANLIB = /usr/bin/ranlib,g" Makefile.global ; \
+ sed -i "s,= .*-strip,= /usr/bin/strip,g" Makefile.global ; \
+ )
+ # ======= tune pkg-config *.pc search path to the target destination for development =======
+ @( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/lib/pkgconfig ; \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(PGSQL_32_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+ )
+ifneq ($(PATCHELF),)
+ # ======= Set RPATH/RUNPATH for target shared objects =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/postgresql/$(pg_version)/lib ; \
+ for file in plperl.so ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_PERL_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ for file in plpython$(PYTHON_MAJOR_VERSION).so ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_PYTHON_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ )
+endif
+ @touch $@
+
+$(PGSQL_32_PKG_DESCRIPTION_FILE): $(PGSQL_32_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PGSQL_32_PKG_DESCRIPTION_FILE) $(PGSQL_32_PKG_INSTALL_SCRIPT)
+ @cp $(PGSQL_32_PKG_DESCRIPTION_FILE) $(PGSQL_32_PKG)/.DESCRIPTION
+ @cp $(PGSQL_32_PKG_INSTALL_SCRIPT) $(PGSQL_32_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(PGSQL_32_PKG)/.REQUIRES
+ @echo "pkgname=$(PGSQL_32_PKG_NAME)" > $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "pkgver=$(PGSQL_32_PKG_VERSION)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "arch=$(PGSQL_32_PKG_ARCH)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "distroname=$(PGSQL_32_PKG_DISTRO_NAME)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "distrover=$(PGSQL_32_PKG_DISTRO_VERSION)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "group=$(PGSQL_32_PKG_GROUP)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(PGSQL_32_PKG_SHORT_DESCRIPTION)\"" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "url=$(PGSQL_32_PKG_URL)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "license=$(PGSQL_32_PKG_LICENSE)" >> $(PGSQL_32_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(PGSQL_32_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 14.1-ppc32/PATCHES
===================================================================
--- 14.1-ppc32/PATCHES (nonexistent)
+++ 14.1-ppc32/PATCHES (revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/b/postgresql/patches/postgresql-14.1-cross-configure.patch -p0
+../../../sources/packages/b/postgresql/patches/postgresql-14.1-run-socket-dir.patch -p0
Index: 14.1-ppc32/postgresql-x32-pkg-description.in
===================================================================
--- 14.1-ppc32/postgresql-x32-pkg-description.in (nonexistent)
+++ 14.1-ppc32/postgresql-x32-pkg-description.in (revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+postgresql-x32: PostgreSQL-x32 @VERSION@ (database management system)
+postgresql-x32:
+postgresql-x32: PostgreSQL is an advanced object-relational database management
+postgresql-x32: system (ORDBMS) based on POSTGRES. With more than 15 years of
+postgresql-x32: development history, it is quickly becoming the de facto
+postgresql-x32: database for enterprise level open source solutions.
+postgresql-x32:
+postgresql-x32: Homepage: https://www.postgresql.org
+postgresql-x32:
+postgresql-x32:
+postgresql-x32:
Index: 14.1-ppc32/postgresql-x32-pkg-install.sh
===================================================================
--- 14.1-ppc32/postgresql-x32-pkg-install.sh (nonexistent)
+++ 14.1-ppc32/postgresql-x32-pkg-install.sh (revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 14.1-ppc32/postgresql-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 14.1-ppc32
===================================================================
--- 14.1-ppc32 (nonexistent)
+++ 14.1-ppc32 (revision 5)
Property changes on: 14.1-ppc32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 14.1-x86_32/Makefile
===================================================================
--- 14.1-x86_32/Makefile (nonexistent)
+++ 14.1-x86_32/Makefile (revision 5)
@@ -0,0 +1,310 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC64)
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/b/postgresql
+
+REQUIRES = app/postgresql/14.1
+REQUIRES += dev/perl/5.36.0-x86_32
+REQUIRES += dev/python3/3.10.8-x86_32
+REQUIRES += app/util-linux/2.38.1-x86_32
+REQUIRES += libs/libxml2/2.9.9-x86_32
+REQUIRES += libs/libxslt/1.1.34-x86_32
+REQUIRES += libs/readline/8.2-x86_32
+REQUIRES += libs/icu4c/68.2-x86_32
+REQUIRES += libs/lz4/1.9.4-x86_32
+REQUIRES += net/openssl/1.1.1r-x86_32
+REQUIRES += net/krb5/1.19.1-x86_32
+REQUIRES += secure/pam/1.5.1-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 14.1
+pg_version = $(shell echo $(version) | cut -f1,2 -d '.')
+tar_bz2_archive = $(SRC_PACKAGE_PATH)/packages/b/postgresql/postgresql-$(version).tar.bz2
+SRC_ARCHIVE = $(tar_bz2_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/postgresql-$(version)
+src_dir_name = postgresql-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_tools_dir = $(TARGET_BUILD_DIR)/build-tools
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+abs_build_dir = $(CURDIR)/$(build_dir)
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PGSQL_32_PKG_NAME = postgresql-x32
+PGSQL_32_PKG_VERSION = 14.1
+PGSQL_32_PKG_ARCH = $(PKGARCH)
+PGSQL_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
+PGSQL_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+PGSQL_32_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+PGSQL_32_PKG_SHORT_DESCRIPTION = database management system
+PGSQL_32_PKG_URL = $(BUG_URL)
+PGSQL_32_PKG_LICENSE = custom
+PGSQL_32_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(PGSQL_32_PKG_NAME)-pkg-description
+PGSQL_32_PKG_DESCRIPTION_FILE_IN = $(PGSQL_32_PKG_NAME)-pkg-description.in
+PGSQL_32_PKG_INSTALL_SCRIPT = $(PGSQL_32_PKG_NAME)-pkg-install.sh
+
+PGSQL_32_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PGSQL_32_PKG_NAME)-package
+
+pkg_basename = $(PGSQL_32_PKG_NAME)-$(PGSQL_32_PKG_VERSION)-$(PGSQL_32_PKG_ARCH)-$(PGSQL_32_PKG_DISTRO_NAME)-$(PGSQL_32_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PGSQL_32_PKG)
+
+
+#
+# Perl Configuration:
+#
+extra_environment = PERL=$(PERL)
+extra_environment += pgac_perl_version=5.34.0
+extra_environment += perl_archlibexp='$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5'
+extra_environment += perl_privlibexp='$(TARGET_DEST_DIR)/usr/share/perl5'
+extra_environment += perl_includespec='-I$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5/CORE'
+extra_environment += perl_useshrplib='true'
+extra_environment += perl_embed_ldflags='-L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5/CORE -Wl,-E -Wl,-rpath,/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5/CORE -lperl'
+
+
+#
+# Python Configuration:
+#
+PYTHON_VERSION = 3.10
+
+python-configdir = $(shell echo "$(shell dirname $(shell ls $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(1)/config-$(1)-*/config.c))")
+
+extra_environment += python_version=$(PYTHON_VERSION)
+extra_environment += python_majorversion=$(PYTHON_MAJOR_VERSION)
+extra_environment += python_configdir='$(call python-configdir,$(PYTHON_VERSION))'
+extra_environment += python_includespec='-I$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)'
+extra_environment += python_libdir='$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+extra_environment += python_enable_shared=1
+extra_environment += python_libspec='-L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) -lpython$(PYTHON_VERSION)'
+extra_environment += python_additional_libs='-lpthread -ldl -lutil -lm'
+
+#
+# Tools configure switches (for devenv pg_config):
+#
+tools_configure_switches = --docdir=/usr/share/doc/$(src_dir_name)
+tools_configure_switches += --mandir=/usr/share/man
+
+tools_configure_switches += --includedir=/usr/include
+tools_configure_switches += --sysconfdir=/etc/postgresql/$(pg_version)
+tools_configure_switches += --datarootdir=/usr/share
+tools_configure_switches += --datadir=/usr/share/postgresql-$(pg_version)
+
+#
+# configure switches:
+#
+extra_configure_switches = --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --includedir=/usr/include
+extra_configure_switches += --sysconfdir=/etc/postgresql/$(pg_version)
+extra_configure_switches += --datarootdir=/usr/share
+extra_configure_switches += --datadir=/usr/share/postgresql-$(pg_version)
+
+extra_configure_switches += --with-openssl
+extra_configure_switches += --with-tcl=no
+extra_configure_switches += --with-perl
+extra_configure_switches += --with-python
+extra_configure_switches += --with-libxml
+extra_configure_switches += --with-libxslt
+
+extra_configure_switches += --with-gssapi
+extra_configure_switches += --with-icu
+extra_configure_switches += --with-uuid=e2fs
+extra_configure_switches += --with-ldap
+extra_configure_switches += --with-lz4
+
+extra_configure_switches += --enable-thread-safety
+extra_configure_switches += --with-system-tzdata=/usr/share/zoneinfo
+extra_configure_switches += --enable-nls
+extra_configure_switches += --with-pam
+
+
+TARGET_PERL_RPATH = /usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5/CORE:/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/lib
+TARGET_PYTHON_RPATH = /usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/lib
+TARGET_LIB_RPATH = $(TARGET_PYTHON_RPATH)
+
+CFLAGS += -Wno-unused-function
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ # ======= remove parser files to build its again =======
+ @( rm -f $(SRC_DIR)/src/backend/parser/gram.{c,h} )
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(PGSQL_32_PKG)/usr/bin
+ @mkdir -p $(build_tools_dir)
+ # ======= build pg_config for development environment =======
+ @( cd $(build_tools_dir) ; \
+ ../$(src_dir_name)/configure \
+ --prefix=/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version) \
+ $(tools_configure_switches) ; \
+ ( cd src/backend && $(MAKE) generated-headers ) ; \
+ $(MAKE) -C src/bin/pg_config ; \
+ cp -a src/bin/pg_config/pg_config $(PGSQL_32_PKG)/usr/bin/$(TARGET32)-pg_config ; \
+ )
+ # ======= build PostgreSQL for target machine =======
+ @mkdir -p $(build_dir)
+ @cd $(build_dir) && \
+ $(BUILD_ENVIRONMENT) $(extra_environment) ../$(src_dir_name)/configure \
+ --prefix=/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version) \
+ --build=$(BUILD) \
+ --host=$(TARGET32) \
+ $(extra_configure_switches)
+ # ======= make links in src/include directory to generated header files =======
+ @cd $(build_dir)/src/backend && $(MAKE) generated-headers
+ # ======= build postgresql-$(version) =======
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) XSUBPPDIR=$(TARGET_DEST_DIR)/usr/share/perl5
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(PGSQL_32_PKG)
+ @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ @rm -rf $(PGSQL_32_PKG)/usr/include
+ @rm -rf $(PGSQL_32_PKG)/usr/share
+ # ======= create symlinks to binary executables =======
+ @mkdir -p $(PGSQL_32_PKG)/usr/bin/32
+ @( cd $(PGSQL_32_PKG)/usr/bin/32 ; \
+ for i in `ls ../../lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/bin/*` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create symlinks to shared library for other programs =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+ for i in `ls postgresql/$(pg_version)/lib/lib*.so*` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= create symlinks to pkg-config files for other programs =======
+ @mkdir $(PGSQL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+ for i in `ls ../postgresql/$(pg_version)/lib/pkgconfig/*.pc` ; do \
+ ln -sf $$i ; \
+ done ; \
+ )
+ # ======= remove toolchain path from target pkg-config *.pc files =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/lib/pkgconfig ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(PGSQL_32_PKG))
+ # ======= remove devenv pg_config from target package =======
+ @rm -f $(PGSQL_32_PKG)/usr/bin/$(TARGET32)-pg_config
+ # ======= tune target Makefile.global variables =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/lib/pgxs/src ; \
+ sed -i "s,$(abs_build_dir),/usr/src/x86_32/build-pgsql,g" Makefile.global ; \
+ sed -i "s,$(BUILDSYSTEM),,g" Makefile.global ; \
+ sed -i "s,$(BUILD),$(TARGET32),g" Makefile.global ; \
+ sed -i "s, --sysroot=$(TARGET_DEST_DIR),,g" Makefile.global ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" Makefile.global ; \
+ sed -i "s,CC=.*-gcc,CC=/usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,CPP = .*-gcc,CPP = /usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,CC = .*-gcc,CC = /usr/bin/gcc,g" Makefile.global ; \
+ sed -i "s,AR = .*-ar,AR = /usr/bin/ar,g" Makefile.global ; \
+ sed -i "s,LD = .*-ld,LD = /usr/bin/ld -melf_i386,g" Makefile.global ; \
+ sed -i "s,RANLIB = .*-ranlib,RANLIB = /usr/bin/ranlib,g" Makefile.global ; \
+ sed -i "s,= .*-strip,= /usr/bin/strip,g" Makefile.global ; \
+ )
+ # ======= tune pkg-config *.pc search path to the target destination for development =======
+ @( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/lib/pkgconfig ; \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libecpg.pc libecpg_compat.pc \
+ libpgtypes.pc libpq.pc ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(PGSQL_32_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+ )
+ifneq ($(PATCHELF),)
+ # ======= Set RPATH/RUNPATH for target shared objects =======
+ @( cd $(PGSQL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/postgresql/$(pg_version)/lib ; \
+ for file in plperl.so ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_PERL_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ for file in plpython$(PYTHON_MAJOR_VERSION).so ; do \
+ rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+ if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+ $(PATCHELF) --set-rpath $(TARGET_PYTHON_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ fi ; \
+ done ; \
+ )
+endif
+ @touch $@
+
+$(PGSQL_32_PKG_DESCRIPTION_FILE): $(PGSQL_32_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PGSQL_32_PKG_DESCRIPTION_FILE) $(PGSQL_32_PKG_INSTALL_SCRIPT)
+ @cp $(PGSQL_32_PKG_DESCRIPTION_FILE) $(PGSQL_32_PKG)/.DESCRIPTION
+ @cp $(PGSQL_32_PKG_INSTALL_SCRIPT) $(PGSQL_32_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(PGSQL_32_PKG)/.REQUIRES
+ @echo "pkgname=$(PGSQL_32_PKG_NAME)" > $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "pkgver=$(PGSQL_32_PKG_VERSION)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "arch=$(PGSQL_32_PKG_ARCH)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "distroname=$(PGSQL_32_PKG_DISTRO_NAME)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "distrover=$(PGSQL_32_PKG_DISTRO_VERSION)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "group=$(PGSQL_32_PKG_GROUP)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(PGSQL_32_PKG_SHORT_DESCRIPTION)\"" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "url=$(PGSQL_32_PKG_URL)" >> $(PGSQL_32_PKG)/.PKGINFO ; \
+ echo "license=$(PGSQL_32_PKG_LICENSE)" >> $(PGSQL_32_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(PGSQL_32_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 14.1-x86_32/PATCHES
===================================================================
--- 14.1-x86_32/PATCHES (nonexistent)
+++ 14.1-x86_32/PATCHES (revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/b/postgresql/patches/postgresql-14.1-cross-configure.patch -p0
+../../../sources/packages/b/postgresql/patches/postgresql-14.1-run-socket-dir.patch -p0
Index: 14.1-x86_32/postgresql-x32-pkg-description.in
===================================================================
--- 14.1-x86_32/postgresql-x32-pkg-description.in (nonexistent)
+++ 14.1-x86_32/postgresql-x32-pkg-description.in (revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+postgresql-x32: PostgreSQL-x32 @VERSION@ (database management system)
+postgresql-x32:
+postgresql-x32: PostgreSQL is an advanced object-relational database management
+postgresql-x32: system (ORDBMS) based on POSTGRES. With more than 15 years of
+postgresql-x32: development history, it is quickly becoming the de facto
+postgresql-x32: database for enterprise level open source solutions.
+postgresql-x32:
+postgresql-x32: Homepage: https://www.postgresql.org
+postgresql-x32:
+postgresql-x32:
+postgresql-x32:
Index: 14.1-x86_32/postgresql-x32-pkg-install.sh
===================================================================
--- 14.1-x86_32/postgresql-x32-pkg-install.sh (nonexistent)
+++ 14.1-x86_32/postgresql-x32-pkg-install.sh (revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 14.1-x86_32/postgresql-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 14.1-x86_32
===================================================================
--- 14.1-x86_32 (nonexistent)
+++ 14.1-x86_32 (revision 5)
Property changes on: 14.1-x86_32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~