Commit 9b775989 authored by Christoph Berg's avatar Christoph Berg

Move pg_filedump to 9.5 directory, spotted by Sébastien Lardière.

* Move pg_filedump to 9.5 directory, spotted by Sébastien Lardière.
* Add simple adt test.
parent 80a9d51c
postgresql-filedump (9.5.0-2) unstable; urgency=medium
* Move pg_filedump to 9.5 directory, spotted by Sébastien Lardière.
* Add simple adt test.
-- Christoph Berg <myon@debian.org> Sun, 15 May 2016 20:16:54 +0200
postgresql-filedump (9.5.0-1) unstable; urgency=medium
* New upstream release.
......
pg_filedump /usr/lib/postgresql/9.4/bin/
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ CFLAGS=-g -O -Wall -Wmissing-prototypes
# the server include subdirectory, eg /usr/local/include/postgresql/server
PG_CONFIG=pg_config
PGSQL_INCLUDE_DIR=$(shell $(PG_CONFIG) --includedir-server)
-
+PGSQL_BIN_DIR=$(shell $(PG_CONFIG) --bindir)
DISTFILES= README.pg_filedump Makefile Makefile.contrib \
pg_filedump.h pg_filedump.c
@@ -24,6 +24,10 @@ pg_filedump: pg_filedump.o
pg_filedump.o: pg_filedump.c
${CC} ${CFLAGS} -I${PGSQL_INCLUDE_DIR} pg_filedump.c -c
+install: pg_filedump
+ mkdir -p $(DESTDIR)$(PGSQL_BIN_DIR)
+ install pg_filedump $(DESTDIR)$(PGSQL_BIN_DIR)
+
dist:
rm -rf pg_filedump-${FD_VERSION} pg_filedump-${FD_VERSION}.tar.gz
mkdir pg_filedump-${FD_VERSION}
......@@ -4,11 +4,9 @@ set -e
case "$1" in
configure)
update-alternatives --quiet --install /usr/bin/pg_filedump pg_filedump \
/usr/lib/postgresql/9.4/bin/pg_filedump 94
;;
*)
update-alternatives --quiet --install /usr/bin/pg_filedump pg_filedump \
/usr/lib/postgresql/9.5/bin/pg_filedump 95
;;
esac
#DEBHELPER#
......@@ -10,3 +10,6 @@ include /usr/share/dpkg/buildflags.mk
override_dh_auto_build:
$(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" PGSQL_INCLUDE_DIR=/usr/include/postgresql/$(PG_VERSION)/server
override_dh_auto_install:
$(MAKE) install USE_PGXS=1 DESTDIR=$(CURDIR)/debian/postgresql-filedump
Depends: @
Test-Command: pg_filedump
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment