aboutsummaryrefslogtreecommitdiffstats
path: root/databases/tablelog
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-01-22 19:20:17 +0800
committermarino <marino@FreeBSD.org>2014-01-22 19:20:17 +0800
commit8a93d5f3e6f70cc4fa302cace3aef043f918e286 (patch)
tree7ab94ac607711034d9a99b9183cc8345c0277d5d /databases/tablelog
parent706a4c63da5baddfae24152555c53974b59a4ad6 (diff)
downloadfreebsd-ports-gnome-8a93d5f3e6f70cc4fa302cace3aef043f918e286.tar.gz
freebsd-ports-gnome-8a93d5f3e6f70cc4fa302cace3aef043f918e286.tar.zst
freebsd-ports-gnome-8a93d5f3e6f70cc4fa302cace3aef043f918e286.zip
databases/tablelog: Fix pgsql 9.2+ and stage support
PR: ports/179955
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