Commit graph

27 commits

Author SHA1 Message Date
Daniel Golle
c709189de4
postgresql: allow populating required DB using script
Extend UCI mechanics to allow pre-populating a newly created
database by executing SQL statements from a scripts file.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-02 19:57:31 +02:00
Daniel Golle
04e71645c7 postgresql: update to version 9.6.3
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-07-01 18:13:23 +02:00
Daniel Golle
66afa3c3ea postgresql: fix host build and correctly apply NLS
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-24 15:05:59 +02:00
Daniel Golle
d0c3f8b967 postgresql: properly handle pg_config host build
pg_config needs to be build for each target which creates some
extra complications...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-23 20:58:34 +02:00
Daniel Golle
c2d1bc7ae7 postgresql: set include path to fix building contribs
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-20 23:21:43 +02:00
Daniel Golle
d619064f8e postgresql: disable parallel build
It seems to break things (occasionally)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-20 22:19:38 +02:00
Daniel Golle
2135991f51 postgresql: fix build and improve packaging
* make sure contrib stuff gets built and installed
* refresh patches and improve Makefile while at it

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-19 20:49:40 +02:00
Daniel Golle
d9297dc5ce postgresql: update to version 9.4.12
Fixes CVE-2017-7484 and CVE-2017-7485.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-06-19 01:33:32 +02:00
Matthias Schiffer
4a984a8d60
treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424 for more information on
STAGING_DIR_HOSTPKG.

STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.

Also fixes a typo in the dbus Makefile ("STAGIND_DIR").

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-10 18:25:54 +01:00
Gergely Kiss
5ab41729ea postgresql: fix download URLs
Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
2016-11-11 11:23:49 +01:00
Daniel Golle
ce46b633e2 postgresql: properly stop service
postmaster always detaches from procd, work around by using
pg_ctl to stop the server.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-10-11 01:03:27 +02:00
Daniel Golle
c14f2ac6da postgresql: move some binaries to pgsql-cli-extra
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-28 14:45:27 +02:00
Daniel Golle
46ab42b35e postgresql: clean package to fix duplicate files issue
Both postgresql-server and postgresql-cli install /usr/bin/psql which
thus creates a conflict when installing both packages.
Fix this by removing duplicate and useless binaries from the
postgresql-server package.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-27 21:08:12 +02:00
Daniel Golle
63120640e6 postgresql: update to version 9.5.4 and major rework
* convert package build to use host-build for ecpg, pg_config and zic
 * introduce /lib/functions/postgresql.sh to be used by packages
   requiring a postgres database to exist as well as postgres' init
 * no longer require shadow-su, patch pg_ctl to setuid() ifself instead
 * auto-create database directory if there is enough free space
 * auto-create databases configured in UCI
 * remove some dead uci config options
 * grab maintainership

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-09-23 20:03:05 +02:00
Daniel Golle
3d3918bb9a postgresql: make host-built-tools safe for rebuilds
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-08-26 20:24:22 +02:00
Jo-Philipp Wich
9843f170d7 treewide: replace my defunct email address
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-06-07 12:00:59 +02:00
Jo-Philipp Wich
ff0f689f97 Merge pull request #2530 from dangowrt/update-postgresql-to-9-5-1
postgresql: update source to 9.5.1 and refresh patches
2016-04-15 11:48:48 +02:00
Daniel Golle
b0f8e994f3 postgresql: update source to 9.5.1 and refresh patches
Setting the additional include path for host-build of ecpg is no
longer required and started breaking the build (PostgeSQL BUG-14033),
remove it.
Also, pgsql-server no longer requires shadow-su since procd can take
care of starting it running under the appropriate user.
Moving the dependency to pgsql-cli makes sense as the 'su' command is
still needed to boot-strap a new data directory and also commonly used
for other administration tasks. However, in that way the CLI and
shadow-su can be removed during production once pgsql-server has been
setup.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-03-21 23:04:28 +01:00
Yousong Zhou
92b0575e28 Drop the redundant -r option to $(CP)
$(CP) was defined as `cp -fpR' since the very begining of OpenWrt build
system (2006-06-22).  The -R option should be enough and base packages
use only $(CP) for the same purposes just fine and BSD manual of cp also
discourages the use of `-r' option.  So let's just tidy up the usage now.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2016-03-12 01:23:28 +08:00
Alexander Ryzhov
4bfc89560e postgresql: now visible with uclibc
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-12-06 08:08:49 -05:00
Dirk Neukirchen
bf119cb33b postgresql: fix potential snprintf issue
adopt buildroot commit: 3d3f70b567718ae308b5704ddd7d107c4849309e

spotted while reviewing buildroot changes to postgresql

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-21 10:05:11 +02:00
Dirk Neukirchen
b19dc5496e postgresql: fix uclibc locale.h bug
reported in forum:
https://forum.openwrt.org/viewtopic.php?id=59137

issue was discovered and fixed already in buildroot
git commit id: f5e4ca10220e2325d3a34c0a423388e40b27dbdf

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-21 10:05:06 +02:00
Dirk Neukirchen
736ecae209 postgresql: add missing librt dependency
fixes build error with uclibc

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-21 10:04:59 +02:00
Daniel Golle
714a408a6e postgresql: update source to 9.4.4 and refresh scripts
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-08-12 17:30:20 +02:00
Dirk Neukirchen
6ae54e4075 postgresql: update to 9.4.1
- supports arm64/aarch64

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-08-12 17:30:20 +02:00
Ted Hess
581aef1d6e libpq: Fix missing dependency (shadow-utils)
Signed-off-by: Ted Hess <thess@kitschensync.net>
2014-10-07 14:02:46 -04:00
Jo-Philipp Wich
022ce86177 postgresql: import from oldpackages, add myself as maintainer, add license information, update to v9.0.17
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-02 12:42:33 +02:00