blob: ef94f5650836b88267a49925c1deab0dad2f0dd4 (
plain)
1 # Description: A sophisticated Object-Relational DBMS
2 # URL: https://www.postgresql.org
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: openssl
5 # Optional: clang icu krb5 libxml2 libxslt openldap tcl
6
7 name=postgresql
8 version=14.0
9 release=1
10 source=(https://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2
11 postgresql-run-socket.patch postgresql-perl-rpath.patch
12 postgresql.rc postgresql.pam)
13
14 build() {
15 cd $name-$version
16
17 patch -Np1 -i $SRC/postgresql-run-socket.patch
18 patch -Np1 -i $SRC/postgresql-perl-rpath.patch
19
20 # optionals {{{
21 prt-get isinst clang && PKGMK_PGSQL+=' --with-llvm'
22 prt-get isinst icu && PKGMK_PGSQL+=' --with-icu'
23 prt-get isinst krb5 && PKGMK_PGSQL+=' --with-gssapi'
24 prt-get isinst libxml2 && PKGMK_PGSQL+=' --with-libxml'
25 prt-get isinst libxslt && PKGMK_PGSQL+=' --with-libxslt'
26 prt-get isinst tcl && PKGMK_PGSQL+=' --with-tcl'
27 # }}}
28
29 ./configure --prefix=/usr $PKGMK_PGSQL \
30 --with-openssl \
31 --with-pam \
32 --with-perl \
33 --with-python \
34 --with-uuid=e2fs \
35 --disable-nls \
36 --disable-rpath \
37 PYTHON=/usr/bin/python3
38 make
39 make DESTDIR=$PKG install
40
41 cd doc/src/sgml
42 make DESTDIR=$PKG install-man
43 rm -rf $PKG/usr/share/doc
44
45 install -Dm 755 $SRC/postgresql.rc $PKG/etc/rc.d/postgresql
46 install -Dm 755 $SRC/postgresql.pam $PKG/etc/pam/postgresql
47
48 install -Dm 660 -o 42 -g 42 /dev/null $PKG/var/log/postgresql
49 }
50 # vim: foldmethod=marker foldlevelstart=0
|