aboutsummaryrefslogtreecommitdiff
path: root/databases/hashtypes
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-09-02 18:52:48 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-09-02 18:52:48 +0000
commite8c8c11b2ed574a3a560fced871cfb78f0610342 (patch)
treeaee012930d4f62f2b758f177fa66aa8d33400273 /databases/hashtypes
parent3368e72898ef234c285e869549a2120705cc8b48 (diff)
downloadports-e8c8c11b2ed574a3a560fced871cfb78f0610342.tar.gz
ports-e8c8c11b2ed574a3a560fced871cfb78f0610342.zip
- Fix plist problems with PostgreSQL version > 9.0 by
setting target moduledir in make enviroment - With default PostgreSQL version hashtypes.control file is not installed while newer versions do install it, fix this by adding post-install check Approved by: maintainer via private mail
Notes
Notes: svn path=/head/; revision=326055
Diffstat (limited to 'databases/hashtypes')
-rw-r--r--databases/hashtypes/Makefile8
-rw-r--r--databases/hashtypes/pkg-plist9
2 files changed, 12 insertions, 5 deletions
diff --git a/databases/hashtypes/Makefile b/databases/hashtypes/Makefile
index 7f43cac40b94..b3a639d879ad 100644
--- a/databases/hashtypes/Makefile
+++ b/databases/hashtypes/Makefile
@@ -3,6 +3,7 @@
PORTNAME= hashtypes
PORTVERSION= 0.1.1
+PORTREVISION= 1
CATEGORIES= databases security
MASTER_SITES= http://api.pgxn.org/dist/hashtypes/${PORTVERSION}/ \
http://oss-files.dreamindustries.co/mirror/
@@ -14,6 +15,11 @@ USE_PGSQL= yes
USE_GMAKE= yes
USE_ZIP= yes
-MAKE_ARGS= USE_PGXS=1
+MAKE_ARGS= USE_PGXS=1 MODULEDIR=extension
+MODULEDIR= ${PREFIX}/share/postgresql/extension
+
+post-install:
+ @[ -f ${MODULEDIR}/${PORTNAME}.control ] || \
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.control ${MODULEDIR}
.include <bsd.port.mk>
diff --git a/databases/hashtypes/pkg-plist b/databases/hashtypes/pkg-plist
index 510af77ccf22..0d6e52e04af9 100644
--- a/databases/hashtypes/pkg-plist
+++ b/databases/hashtypes/pkg-plist
@@ -1,5 +1,6 @@
lib/postgresql/hashtypes.so
-share/doc/postgresql/contrib/README.hashtypes
-share/postgresql/contrib/hashtypes--0.1.1.sql
-@dirrmtry share/postgresql/contrib
-@dirrmtry share/doc/postgresql/contrib
+share/doc/postgresql/extension/README.hashtypes
+share/postgresql/extension/hashtypes--0.1.1.sql
+share/postgresql/extension/hashtypes.control
+@dirrmtry share/postgresql/extension
+@dirrmtry share/doc/postgresql/extension