diff options
author | Chong.Lu@windriver.com <Chong.Lu@windriver.com> | 2014-04-22 15:07:27 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-05-03 20:45:02 +0200 |
commit | 791e2943564d980f64ebf59509d5424d7b8c580f (patch) | |
tree | 9458258859f7e318d69a369f1c678927bff5f2c2 /meta-oe/recipes-support/postgresql | |
parent | 8f4fa26870da97c7aaa8460890a4c7f45d1b687c (diff) | |
download | meta-openembedded-791e2943564d980f64ebf59509d5424d7b8c580f.tar.gz |
postgresql: split out contrib into seperate packages
Make contrib and split them into postgresql-contrib.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/postgresql')
-rw-r--r-- | meta-oe/recipes-support/postgresql/postgresql.inc | 72 |
1 files changed, 69 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/postgresql/postgresql.inc b/meta-oe/recipes-support/postgresql/postgresql.inc index 2c5bbf739f..6f51c9110c 100644 --- a/meta-oe/recipes-support/postgresql/postgresql.inc +++ b/meta-oe/recipes-support/postgresql/postgresql.inc | |||
@@ -24,8 +24,6 @@ INC_PR = "r0" | |||
24 | 24 | ||
25 | ARM_INSTRUCTION_SET = "arm" | 25 | ARM_INSTRUCTION_SET = "arm" |
26 | 26 | ||
27 | #WARNING: this recipe assumes you have the timezone compiler present in /usr/sbin/zic | ||
28 | |||
29 | SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${P}.tar.bz2 \ | 27 | SRC_URI = "http://ftp.postgresql.org/pub/source/v${PV}/${P}.tar.bz2 \ |
30 | file://postgresql.init \ | 28 | file://postgresql.init \ |
31 | file://postgresql-bashprofile \ | 29 | file://postgresql-bashprofile \ |
@@ -47,7 +45,7 @@ EXTRA_OECONF_sh4 += "--disable-spinlocks" | |||
47 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" | 45 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" |
48 | 46 | ||
49 | do_compile_append() { | 47 | do_compile_append() { |
50 | cp /usr/sbin/zic ${S}/src/timezone/ | 48 | oe_runmake -C contrib all |
51 | } | 49 | } |
52 | 50 | ||
53 | # server needs to configure user and group | 51 | # server needs to configure user and group |
@@ -63,6 +61,12 @@ INITSCRIPT_NAME = "${BPN}-server" | |||
63 | INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ." | 61 | INITSCRIPT_PARAMS = "start 64 . stop 36 0 1 2 3 4 5 6 ." |
64 | 62 | ||
65 | do_install_append() { | 63 | do_install_append() { |
64 | # install contrib | ||
65 | oe_runmake DESTDIR=${D} -C contrib install | ||
66 | # install tutorial | ||
67 | install -d -m 0755 ${D}${libdir}/${BPN}/tutorial | ||
68 | install ${S}/src/tutorial/* ${D}${libdir}/${BPN}/tutorial | ||
69 | |||
66 | # install COPYRIGHT README HISTORY | 70 | # install COPYRIGHT README HISTORY |
67 | install -d -m 0755 ${D}${docdir}/${BPN} | 71 | install -d -m 0755 ${D}${docdir}/${BPN} |
68 | for i in ${S}/{COPYRIGHT,README,HISTORY} ${S}/doc/{KNOWN_BUGS,MISSING_FEATURES,README*,bug.template}; do | 72 | for i in ${S}/{COPYRIGHT,README,HISTORY} ${S}/doc/{KNOWN_BUGS,MISSING_FEATURES,README*,bug.template}; do |
@@ -88,6 +92,7 @@ PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \ | |||
88 | libecpg-dbg libecpg libecpg-dev libecpg-staticdev libecpg-doc \ | 92 | libecpg-dbg libecpg libecpg-dev libecpg-staticdev libecpg-doc \ |
89 | libpq-dbg libpq libpq-dev libpq-staticdev \ | 93 | libpq-dbg libpq libpq-dev libpq-staticdev \ |
90 | libpgtypes-dbg libpgtypes libpgtypes-staticdev libpgtypes-dev \ | 94 | libpgtypes-dbg libpgtypes libpgtypes-staticdev libpgtypes-dev \ |
95 | ${PN}-contrib ${PN}-contrib-dbg \ | ||
91 | " | 96 | " |
92 | 97 | ||
93 | FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \ | 98 | FILES_${PN} += "${sysconfdir}/init.d/${BPN}-server \ |
@@ -171,3 +176,64 @@ FILES_libpgtypes = "${libdir}/libpgtypes*${SOLIBS}" | |||
171 | FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*" | 176 | FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*" |
172 | FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a" | 177 | FILES_libpgtypes-staticdev = "${libdir}/libpgtypes*.a" |
173 | FILES_libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h" | 178 | FILES_libpgtypes-dev = "${libdir}/libpgtypes*${SOLIBS} ${includedir}/pgtypes*.h" |
179 | |||
180 | FILES_${PN}-contrib = " ${bindir}/oid2name ${bindir}/pg_standby \ | ||
181 | ${bindir}/pgbench ${bindir}/vacuumlo \ | ||
182 | ${S}/contrib/spi/*.example \ | ||
183 | ${libdir}/${BPN}/_int.so ${libdir}/${BPN}/adminpack.so \ | ||
184 | ${libdir}/${BPN}/autoinc.so ${libdir}/${BPN}/auto_explain.so \ | ||
185 | ${libdir}/${BPN}/auth_delay.so ${libdir}/${BPN}/btree_gin.so \ | ||
186 | ${libdir}/${BPN}/btree_gist.so ${libdir}/${BPN}/.so \ | ||
187 | ${libdir}/${BPN}/chkpass.so ${libdir}/${BPN}/citext.so \ | ||
188 | ${libdir}/${BPN}/cube.so ${libdir}/${BPN}/dblink.so \ | ||
189 | ${libdir}/${BPN}/dict_int.so ${libdir}/${BPN}/dict_xsyn.so \ | ||
190 | ${libdir}/${BPN}/dummy_seclabel.so ${libdir}/${BPN}/earthdistance.so \ | ||
191 | ${libdir}/${BPN}/file_fdw.so ${libdir}/${BPN}/fuzzystrmatch.so \ | ||
192 | ${libdir}/${BPN}/hstore.so ${libdir}/${BPN}/insert_username.so \ | ||
193 | ${libdir}/${BPN}/isn.so ${libdir}/${BPN}/lo.so \ | ||
194 | ${libdir}/${BPN}/ltree.so ${libdir}/${BPN}/moddatetime.so \ | ||
195 | ${libdir}/${BPN}/pageinspect.so ${libdir}/${BPN}/pg_buffercache.so \ | ||
196 | ${libdir}/${BPN}/pg_freespacemap.so ${libdir}/${BPN}/pg_trgm.so \ | ||
197 | ${libdir}/${BPN}/pgcrypto.so ${libdir}/${BPN}/pgrowlocks.so \ | ||
198 | ${libdir}/${BPN}/pgstattuple.so ${libdir}/${BPN}/pg_stat_statements.so \ | ||
199 | ${libdir}/${BPN}/refint.so ${libdir}/${BPN}/seg.so \ | ||
200 | ${libdir}/${BPN}/sslinfo.so \ | ||
201 | ${libdir}/${BPN}/tablefunc.so \ | ||
202 | ${libdir}/${BPN}/test_parser.so ${libdir}/${BPN}/timetravel.so \ | ||
203 | ${libdir}/${BPN}/tsearch2.so ${libdir}/${BPN}/uuid-ossp.so \ | ||
204 | ${libdir}/${BPN}/pgxml.so ${libdir}/${BPN}/passwordcheck.so \ | ||
205 | ${libdir}/${BPN}/pg_upgrade_support.so ${libdir}/${BPN}/.so \ | ||
206 | ${libdir}/${BPN}/unaccent.so \ | ||
207 | " | ||
208 | FILES_${PN}-contrib-dbg = " \ | ||
209 | ${libdir}/${BPN}/.debug/_int.so ${libdir}/${BPN}/.debug/adminpack.so \ | ||
210 | ${libdir}/${BPN}/.debug/autoinc.so ${libdir}/${BPN}/.debug/auto_explain.so \ | ||
211 | ${libdir}/${BPN}/.debug/auth_delay.so ${libdir}/${BPN}/.debug/btree_gin.so \ | ||
212 | ${libdir}/${BPN}/.debug/btree_gist.so ${libdir}/${BPN}/.debug/.so \ | ||
213 | ${libdir}/${BPN}/.debug/chkpass.so ${libdir}/${BPN}/.debug/citext.so \ | ||
214 | ${libdir}/${BPN}/.debug/cube.so ${libdir}/${BPN}/.debug/dblink.so \ | ||
215 | ${libdir}/${BPN}/.debug/dict_int.so ${libdir}/${BPN}/.debug/dict_xsyn.so \ | ||
216 | ${libdir}/${BPN}/.debug/dummy_seclabel.so \ | ||
217 | ${libdir}/${BPN}/.debug/earthdistance.so \ | ||
218 | ${libdir}/${BPN}/.debug/file_fdw.so ${libdir}/${BPN}/.debug/fuzzystrmatch.so \ | ||
219 | ${libdir}/${BPN}/.debug/hstore.so ${libdir}/${BPN}/.debug/insert_username.so \ | ||
220 | ${libdir}/${BPN}/.debug/isn.so ${libdir}/${BPN}/.debug/lo.so \ | ||
221 | ${libdir}/${BPN}/.debug/ltree.so ${libdir}/${BPN}/.debug/moddatetime.so \ | ||
222 | ${libdir}/${BPN}/.debug/pageinspect.so \ | ||
223 | ${libdir}/${BPN}/.debug/pg_buffercache.so \ | ||
224 | ${libdir}/${BPN}/.debug/pg_freespacemap.so \ | ||
225 | ${libdir}/${BPN}/.debug/pg_trgm.so \ | ||
226 | ${libdir}/${BPN}/.debug/pgcrypto.so ${libdir}/${BPN}/.debug/pgrowlocks.so \ | ||
227 | ${libdir}/${BPN}/.debug/pgstattuple.so \ | ||
228 | ${libdir}/${BPN}/.debug/pg_stat_statements.so \ | ||
229 | ${libdir}/${BPN}/.debug/refint.so ${libdir}/${BPN}/.debug/seg.so \ | ||
230 | ${libdir}/${BPN}/.debug/sslinfo.so \ | ||
231 | ${libdir}/${BPN}/.debug/tablefunc.so \ | ||
232 | ${libdir}/${BPN}/.debug/test_parser.so ${libdir}/${BPN}/.debug/timetravel.so \ | ||
233 | ${libdir}/${BPN}/.debug/tsearch2.so ${libdir}/${BPN}/.debug/uuid-ossp.so \ | ||
234 | ${libdir}/${BPN}/.debug/pgxml.so ${libdir}/${BPN}/.debug/passwordcheck.so \ | ||
235 | ${libdir}/${BPN}/.debug/pg_upgrade_support.so \ | ||
236 | ${libdir}/${BPN}/.debug/unaccent.so \ | ||
237 | " | ||
238 | DESCRIPTION_${PN}-contrib = "The postgresql-contrib package contains \ | ||
239 | contributed packages that are included in the PostgreSQL distribution." | ||