1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# -*-makefile-*-
#
# Copyright (C) 2015 by Robert Schwebel <r.schwebel@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_POSTGRESQL) += postgresql
#
# Paths and names
#
POSTGRESQL_VERSION := 9.4.1
POSTGRESQL_MD5 := 2cf30f50099ff1109d0aa517408f8eff
POSTGRESQL := postgresql-$(POSTGRESQL_VERSION)
POSTGRESQL_SUFFIX := tar.bz2
POSTGRESQL_URL := https://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)/$(POSTGRESQL).$(POSTGRESQL_SUFFIX)
POSTGRESQL_SOURCE := $(SRCDIR)/$(POSTGRESQL).$(POSTGRESQL_SUFFIX)
POSTGRESQL_DIR := $(BUILDDIR)/$(POSTGRESQL)
POSTGRESQL_LICENSE := unknown
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
POSTGRESQL_CONF_ENV := $(CROSS_ENV)
#
# autoconf
#
POSTGRESQL_CONF_TOOL := autoconf
POSTGRESQL_CONF_OPT := $(CROSS_AUTOCONF_USR) \
--enable-integer-datetimes \
--disable-nls \
--disable-debug \
--disable-profiling \
--disable-coverage \
--disable-dtrace \
--disable-tap-tests \
--disable-cassert \
--enable-largefile \
--disable-float4-byval \
--disable-float8-byval \
--without-tcl \
--without-perl \
--without-python \
--without-gssapi \
--without-pam \
--without-ldap \
--without-bonjour \
--without-openssl \
--without-selinux \
--without-readline \
--without-libedit-preferred \
--without-libxml \
--without-libxslt \
--without-zlib \
--with-system-tzdata=/usr/share/zoneinfo
# --disable-spinlocks do not use spinlocks
# --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
# --enable-depend turn on automatic dependency tracking
# --disable-thread-safety disable thread-safety in client libraries
# --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
# --with-ossp-uuid obsolete spelling of --with-uuid=ossp
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/postgresql.targetinstall:
@$(call targetinfo)
@$(call install_init, postgresql)
@$(call install_fixup, postgresql,PRIORITY,optional)
@$(call install_fixup, postgresql,SECTION,base)
@$(call install_fixup, postgresql,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, postgresql,DESCRIPTION,missing)
# # Libraries
@$(call install_lib, postgresql, 0, 0, 0644, libpq)
@$(call install_lib, postgresql, 0, 0, 0644, libecpg)
@$(call install_lib, postgresql, 0, 0, 0644, libecpg_compat)
@$(call install_lib, postgresql, 0, 0, 0644, libpgtypes)
# # Binaries
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/postgres)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_receivexlog)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/postmaster)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/reindexdb)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_isready)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_dump)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/vacuumdb)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_ctl)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/dropuser)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/createdb)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/createuser)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/initdb)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_restore)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/clusterdb)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_recvlogical)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_resetxlog)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/dropdb)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/ecpg)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_dumpall)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/createlang)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_basebackup)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/psql)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_controldata)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/droplang)
@$(call install_copy, postgresql, 0, 0, 0755, /usr/bin/pg_config)
# # This can be further optimized
@$(call install_tree, postgresql, 0, 0, -, /usr/lib/postgresql)
@$(call install_tree, postgresql, 0, 0, -, /usr/share/postgresql)
@$(call install_finish, postgresql)
@$(call touch)
# vim: syntax=make
|