contrib/postgresql/Pkgfile

51 lines
1.5 KiB
Plaintext
Raw Normal View History

2009-01-12 23:53:18 +01:00
# Description: A sophisticated Object-Relational DBMS
2021-02-01 11:29:00 +01:00
# URL: https://www.postgresql.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: openssl
2021-08-13 01:58:15 +02:00
# Optional: clang icu krb5 libxml2 libxslt openldap tcl
2009-01-12 23:53:18 +01:00
name=postgresql
2024-02-08 18:31:04 +01:00
version=16.2
2021-09-30 21:46:11 +02:00
release=1
2021-08-13 01:58:15 +02:00
source=(https://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2
postgresql-run-socket.patch postgresql-perl-rpath.patch
2021-08-13 01:58:15 +02:00
postgresql.rc postgresql.pam)
2009-01-12 23:53:18 +01:00
build() {
cd $name-$version
2021-08-13 01:58:15 +02:00
patch -Np1 -i $SRC/postgresql-run-socket.patch
patch -Np1 -i $SRC/postgresql-perl-rpath.patch
2021-08-13 01:58:15 +02:00
# optionals {{{
#prt-get isinst clang && PKGMK_PGSQL+=' --with-llvm'
2023-09-14 19:48:55 +02:00
prt-get isinst icu || PKGMK_PGSQL+=' --without-icu'
2021-08-13 01:58:15 +02:00
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}
2009-01-12 23:53:18 +01:00
make DESTDIR=$PKG install
2010-09-20 19:53:25 +02:00
cd doc/src/sgml
make DESTDIR=$PKG install-man
2009-07-02 19:29:44 +02:00
rm -rf $PKG/usr/share/doc
2009-01-12 23:53:18 +01:00
2021-08-13 01:58:15 +02:00
install -Dm 755 $SRC/postgresql.rc $PKG/etc/rc.d/postgresql
2021-11-11 17:42:11 +01:00
install -Dm 755 $SRC/postgresql.pam $PKG/etc/pam.d/postgresql
2021-08-13 01:58:15 +02:00
2021-11-11 17:42:11 +01:00
install -Dm 660 -o postgres -g postgres /dev/null $PKG/var/log/postgresql
2009-01-12 23:53:18 +01:00
}
2021-08-13 01:58:15 +02:00
# vim: foldmethod=marker foldlevelstart=0