Line # Revision Author
1 3 ahitrov@rambler.ru ##############################################################################
2 # $HeadURL: http://svn.dev.rambler.ru/Contenido/trunk/ports/all/postgresql/GNUmakefile $
3 # $Id: GNUmakefile 175 2006-06-16 12:50:03Z lonerr $
4 ###############################################################################
5
6 PORTVERSION = 8.1.4
7 CONFIGURE_ARGS = --prefix=${PREFIX}/pgsql \
8 --enable-debug \
9 --enable-locale \
10 --enable-syslog
11 BUILD_POSTCMD = cd ${WRKSRC}/contrib/intarray \
12 && ${BUILD_ENV} ${BUILD_COMMAND} ${BUILD_ARGS} ${BUILD_POSTARGS}
13 INSTALL_POSTCMD = cd ${WRKSRC}/contrib/intarray \
14 && ${INSTALL_ENV} ${INSTALL_COMMAND} ${INSTALL_ARGS} ${INSTALL_POSTARGS}
15
16 MASTER_POST_SITES = ftp://ftp.at.postgresql.org/db/www.postgresql.org/pub/source/v${PORTVERSION}/ \
17 ftp://ftp2.nl.postgresql.org/mirror/postgresql/source/v${PORTVERSION}/
18
19 initdb: install
20 @if [ -d ${PREFIX}/pgsql/data ]; then \
21 if [ $$((`ls -1A ${PREFIX}/pgsql/data | wc -l`)) -ne 0 ]; then \
22 echo "WARNING: database cluster already initialized"; \
23 exit 0; \
24 fi; \
25 fi; \
26 mkdir -m 700 ${PREFIX}/pgsql/data \
27 && ${PREFIX}/pgsql/bin/initdb -D ${PREFIX}/pgsql/data
28
29
30 include ../../etc/ports.mk