aboutsummaryrefslogtreecommitdiff
path: root/databases/tablelog
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-01-22 11:20:17 +0000
committerJohn Marino <marino@FreeBSD.org>2014-01-22 11:20:17 +0000
commit2161d2b1e9fdcee25b0cfd266428207bf64f0c1e (patch)
tree7ab94ac607711034d9a99b9183cc8345c0277d5d /databases/tablelog
parentf81c34e7ba4cecf147bbd65ea8785ef07da242e6 (diff)
downloadports-2161d2b1e9fdcee25b0cfd266428207bf64f0c1e.tar.gz
ports-2161d2b1e9fdcee25b0cfd266428207bf64f0c1e.zip
databases/tablelog: Fix pgsql 9.2+ and stage support
PR: ports/179955
Notes
Notes: svn path=/head/; revision=340704
Diffstat (limited to 'databases/tablelog')
-rw-r--r--databases/tablelog/Makefile20
-rw-r--r--databases/tablelog/files/patch-table__log.c11
-rw-r--r--databases/tablelog/pkg-plist3
3 files changed, 24 insertions, 10 deletions
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 <bsd.port.options.mk>
-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 <bsd.port.mk>
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 <utils/lsyscache.h>
++#include <utils/rel.h>
++#include <utils/timestamp.h>
+ #include <funcapi.h>
+
+ /* 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