Bug 183166 - databases/postgresql-repmgr build failure
Summary: databases/postgresql-repmgr build failure
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Danilo Egea Gondolfo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-21 21:50 UTC by Alexander Pyhalov
Modified: 2013-10-22 04:20 UTC (History)
0 users

See Also:


Attachments
file.diff (583 bytes, patch)
2013-10-21 21:50 UTC, Alexander Pyhalov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pyhalov 2013-10-21 21:50:01 UTC
After recent changes in ports infrastructure postgresql-repmgr fails to build. Attached patch should fix the problem.

Fix: Patch attached with submission follows:
Comment 1 Danilo Egea Gondolfo freebsd_committer freebsd_triage 2013-10-22 03:59:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danilo

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-22 04:19:26 UTC
Author: danilo
Date: Tue Oct 22 03:19:13 2013
New Revision: 331217
URL: http://svnweb.freebsd.org/changeset/ports/331217

Log:
  - Convert {BUILD,RUN}_DEPENDS to USE_PGSQL [1]
  - Add LICENSE
  - Convert USE_GMAKE to USES
  - Add DOCS option
  - Add stage support
  
  PR:		ports/183166
  Submitted by:	Alexander Pyhalov <alp@sfedu.ru> (maintainer) [1]

Modified:
  head/databases/postgresql-repmgr/Makefile

Modified: head/databases/postgresql-repmgr/Makefile
==============================================================================
--- head/databases/postgresql-repmgr/Makefile	Tue Oct 22 02:50:50 2013	(r331216)
+++ head/databases/postgresql-repmgr/Makefile	Tue Oct 22 03:19:13 2013	(r331217)
@@ -10,27 +10,26 @@ DISTNAME=	repmgr-${PORTVERSION}
 MAINTAINER=	alp@sfedu.ru
 COMMENT=	PostgreSQL replication manager
 
-BUILD_DEPENDS=	postgresql-server>=9.0:${PORTSDIR}/databases/postgresql90-server
-RUN_DEPENDS:=	${BUILD_DEPENDS} \
-		rsync:${PORTSDIR}/net/rsync
+LICENSE=	GPLv3
 
-USE_GMAKE=	yes
+RUN_DEPENDS=	rsync:${PORTSDIR}/net/rsync
+
+USES=	gmake
+USE_PGSQL=	yes
+WANT_PGSQL_VER=	90+
 MAKE_ENV=	USE_PGXS=1
 
+OPTIONS_DEFINE=	DOCS
+
 PORTDOCS=	README.*
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${PREFIX}/sbin
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.rst    ${DOCSDIR}
-.endif
-.if !defined(NOPORTDATA)
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/repmgr.conf   ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/repmgr.sql    ${DATADIR}
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${STAGEDIR}${PREFIX}/sbin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/repmgr.conf ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Danilo Egea Gondolfo freebsd_committer freebsd_triage 2013-10-22 04:19:57 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!