contrib/postgresql/Pkgfile
Thomas 910af7a38d postgresql: enable parallel build (#7)
content signing missing

Co-authored-by: Thomas Penteker <thomas.penteker+crux@gmail.com>
Co-authored-by: Tim Biermann <tbier@posteo.de>
Reviewed-on: #7
Co-authored-by: Thomas <tek@noreply.crux.nu>
Co-committed-by: Thomas <tek@noreply.crux.nu>
2024-03-15 16:05:10 +01:00

51 lines
1.5 KiB
Plaintext

# Description: A sophisticated Object-Relational DBMS
# URL: https://www.postgresql.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: openssl
# Optional: clang icu krb5 libxml2 libxslt openldap tcl
name=postgresql
version=16.2
release=1
source=(https://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2
postgresql-run-socket.patch postgresql-perl-rpath.patch
postgresql.rc postgresql.pam)
build() {
cd $name-$version
patch -Np1 -i $SRC/postgresql-run-socket.patch
patch -Np1 -i $SRC/postgresql-perl-rpath.patch
# optionals {{{
#prt-get isinst clang && PKGMK_PGSQL+=' --with-llvm'
prt-get isinst icu || PKGMK_PGSQL+=' --without-icu'
prt-get isinst krb5 && PKGMK_PGSQL+=' --with-gssapi'
prt-get isinst libxml2 && PKGMK_PGSQL+=' --with-libxml'
prt-get isinst libxslt && PKGMK_PGSQL+=' --with-libxslt'
prt-get isinst tcl && PKGMK_PGSQL+=' --with-tcl'
# }}}
./configure --prefix=/usr $PKGMK_PGSQL \
--with-openssl \
--with-pam \
--with-perl \
--with-python \
--with-uuid=e2fs \
--disable-nls \
--disable-rpath \
PYTHON=/usr/bin/python3
make -j ${JOBS:-1}
make DESTDIR=$PKG install
cd doc/src/sgml
make DESTDIR=$PKG install-man
rm -rf $PKG/usr/share/doc
install -Dm 755 $SRC/postgresql.rc $PKG/etc/rc.d/postgresql
install -Dm 755 $SRC/postgresql.pam $PKG/etc/pam.d/postgresql
install -Dm 660 -o postgres -g postgres /dev/null $PKG/var/log/postgresql
}
# vim: foldmethod=marker foldlevelstart=0