From 2161d2b1e9fdcee25b0cfd266428207bf64f0c1e Mon Sep 17 00:00:00 2001 From: John Marino Date: Wed, 22 Jan 2014 11:20:17 +0000 Subject: databases/tablelog: Fix pgsql 9.2+ and stage support PR: ports/179955 --- databases/tablelog/Makefile | 20 ++++++++++---------- databases/tablelog/files/patch-table__log.c | 11 +++++++++++ databases/tablelog/pkg-plist | 3 +++ 3 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 databases/tablelog/files/patch-table__log.c (limited to 'databases/tablelog') diff --git a/databases/tablelog/Makefile b/databases/tablelog/Makefile index 1993256bb5d3..7ac65a8ef927 100644 --- a/databases/tablelog/Makefile +++ b/databases/tablelog/Makefile @@ -14,21 +14,21 @@ WRKSRC= ${WRKDIR}/table_log-${DISTVERSION} USES= gmake USE_PGSQL= yes -WANT_PGSQL_VER= 91- MAKE_ARGS= USE_PGXS=1 -PORTDOCS= README.table_log table_log.sql +.include -NO_STAGE= yes do-install: - @${MKDIR} ${PREFIX}/lib/postgresql/ - @${INSTALL_PROGRAM} ${WRKSRC}/table_log.so ${PREFIX}/lib/postgresql/ - @${MKDIR} ${PREFIX}/share/postgresql/contrib/ + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql/ + @${INSTALL_PROGRAM} ${WRKSRC}/table_log.so \ + ${STAGEDIR}${PREFIX}/lib/postgresql/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/postgresql/contrib/ @${INSTALL_DATA} ${WRKSRC}/table_log_init.sql \ - ${PREFIX}/share/postgresql/contrib/ -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR}/ - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ + ${STAGEDIR}${PREFIX}/share/postgresql/contrib/ +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/ + cd ${WRKSRC} && ${INSTALL_DATA} README.table_log table_log.sql \ + ${STAGEDIR}${DOCSDIR}/ .endif .include diff --git a/databases/tablelog/files/patch-table__log.c b/databases/tablelog/files/patch-table__log.c new file mode 100644 index 000000000000..29629a990c21 --- /dev/null +++ b/databases/tablelog/files/patch-table__log.c @@ -0,0 +1,11 @@ +--- table_log.c.orig 2007-05-16 23:14:04.000000000 +0000 ++++ table_log.c +@@ -22,6 +22,8 @@ + #include "utils/formatting.h" + #include "utils/builtins.h" + #include ++#include ++#include + #include + + /* for PostgreSQL >= 8.2.x */ diff --git a/databases/tablelog/pkg-plist b/databases/tablelog/pkg-plist index 4b31153ed577..011710d8d3c6 100644 --- a/databases/tablelog/pkg-plist +++ b/databases/tablelog/pkg-plist @@ -1,5 +1,8 @@ lib/postgresql/table_log.so share/postgresql/contrib/table_log_init.sql +%%PORTDOCS%%%%DOCSDIR%%/README.table_log +%%PORTDOCS%%%%DOCSDIR%%/table_log.sql +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrmtry lib/postgresql @dirrmtry share/postgresql/contrib @dirrmtry share/postgresql -- cgit v1.2.3