Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 18:52:49 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r326055 - head/databases/hashtypes
Message-ID:  <201309021852.r82IqnoH062412@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Mon Sep  2 18:52:48 2013
New Revision: 326055
URL: http://svnweb.freebsd.org/changeset/ports/326055

Log:
  - 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

Modified:
  head/databases/hashtypes/Makefile   (contents, props changed)
  head/databases/hashtypes/pkg-plist   (contents, props changed)

Modified: head/databases/hashtypes/Makefile
==============================================================================
--- head/databases/hashtypes/Makefile	Mon Sep  2 18:41:05 2013	(r326054)
+++ head/databases/hashtypes/Makefile	Mon Sep  2 18:52:48 2013	(r326055)
@@ -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>

Modified: head/databases/hashtypes/pkg-plist
==============================================================================
--- head/databases/hashtypes/pkg-plist	Mon Sep  2 18:41:05 2013	(r326054)
+++ head/databases/hashtypes/pkg-plist	Mon Sep  2 18:52:48 2013	(r326055)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309021852.r82IqnoH062412>