wok-next diff postgresql/receipt @ rev 21150
All the sorts of Lua 5
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 30 23:34:32 2019 +0200 (2019-01-30) |
parents | 0e7893ac206d |
children |
line diff
1.1 --- a/postgresql/receipt Sat Feb 24 16:17:33 2018 +0200 1.2 +++ b/postgresql/receipt Wed Jan 30 23:34:32 2019 +0200 1.3 @@ -7,14 +7,12 @@ 1.4 MAINTAINER="pascal.bellard@slitaz.org" 1.5 LICENSE="BSD" 1.6 WEB_SITE="https://www.postgresql.org/" 1.7 -DATABASE_FILES="/var/lib/pgsql" 1.8 1.9 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.10 WGET_URL="http://ftp.postgresql.org/pub/source/v$VERSION/$TARBALL" 1.11 1.12 -DEPENDS="postgresql-client slitaz-base-files" 1.13 BUILD_DEPENDS="readline-dev zlib-dev perl-dev python-dev" 1.14 -SPLIT="libpostgresqlclient postgresql-client postgresql-dev postgresql-doc" 1.15 +SPLIT="libpostgresqlclient $PACKAGE-client $PACKAGE-dev $PACKAGE-doc" 1.16 1.17 compile_rules() { 1.18 sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h && 1.19 @@ -25,9 +23,10 @@ 1.20 --with-system-tzdata=/usr/share/zoneinfo \ 1.21 --with-perl --with-python \ 1.22 $CONFIGURE_ARGS && 1.23 - make && make install && make install-docs 1.24 - 1.25 - make -C doc/src/sgml DESTDIR=$DESTDIR install-html 1.26 + make && 1.27 + make install && 1.28 + make install-docs && 1.29 + make -C doc/src/sgml DESTDIR=$install install-html 1.30 } 1.31 1.32 genpkg_rules() { 1.33 @@ -46,6 +45,7 @@ 1.34 find $fs -name $i -delete 1.35 done 1.36 rm -r $fs/usr/include $fs/usr/lib/postgresql/pgxs 1.37 + DEPENDS="postgresql-client slitaz-base-files" 1.38 ;; 1.39 libpostgresqlclient) 1.40 CAT="misc|Advanced object-relational database management system (client libraries)" 1.41 @@ -71,8 +71,7 @@ 1.42 } 1.43 1.44 # Pre and post install commands for Tazpkg. 1.45 -post_install_postgresql() 1.46 -{ 1.47 +post_install_postgresql() { 1.48 # adduser postgres if needed 1.49 if ! grep -q postgres: "$1/etc/passwd"; then 1.50 action 'Adding user postgres...' 1.51 @@ -89,15 +88,17 @@ 1.52 [ ! -d "$1/var/lib/pgsql" ] && mkdir -p "$1/var/lib/pgsql" 1.53 chroot "$1/" chown -R postgres.postgres /var/lib/pgsql /var/log/postgresql 1.54 [ -n "$quiet" ] || cat <<EOF 1.55 ----- 1.56 -postgres has superuser access. 1.57 -Configure /var/lib/pgsql/*.conf files. 1.58 -To start $PACKAGE server you can run: 1.59 1.60 - /etc/init.d/$PACKAGE start 1.61 - 1.62 -Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 1.63 ----- 1.64 + .---------------------------------------------------. 1.65 + | postgres has superuser access. | 1.66 + | Configure /var/lib/pgsql/*.conf files. | 1.67 + |---------------------------------------------------| 1.68 + | To start postgresql server you can run: | 1.69 + | | 1.70 + | /etc/init.d/postgresql start | 1.71 + | | 1.72 + | Or add postgresql to RUN_DAEMONS in /etc/rcS.conf | 1.73 + '---------------------------------------------------' 1.74 EOF 1.75 } 1.76