[NEW] databases/postgresql-repmgr2: 2.X version of postgresql-repmgr
- postgresql-repmgr will be updated to 3.X branch PR: 201962 Submitted by: olgeni
This commit is contained in:
parent
b0a1b69d0c
commit
8070996ff0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=416623
18
UPDATING
18
UPDATING
@ -5,6 +5,24 @@ they are unavoidable.
|
||||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20160610
|
||||
AFFECTS: users of databases/postgresql-repmgr
|
||||
AUTHOR: bofh@FreeBSD.org
|
||||
|
||||
The port has been repocopied to databases/postgresql-repmgr2 and current
|
||||
post has been updated to 3.x series. If anyone is still looking forward
|
||||
to use the 2.x please upgrade as following.
|
||||
|
||||
# portmaster -o databases/postgresql-repmgr2 databases/postgresql-repmgr
|
||||
or
|
||||
# portupgrade -o databases/postgresql-repmgr2 databases/postgresql-repmgr
|
||||
|
||||
Otherwise if you want to move on with 3.x series just use
|
||||
|
||||
# portmaster -r databases/postgresql-repmgr
|
||||
or
|
||||
# portupgrade -fr databases/postgresql-repmgr
|
||||
|
||||
20160605
|
||||
AFFECTS: Users of www/h2o
|
||||
AUTHOR: junovitch@FreeBSD.org
|
||||
|
@ -653,6 +653,7 @@
|
||||
SUBDIR += postgresql-plv8js
|
||||
SUBDIR += postgresql-relay
|
||||
SUBDIR += postgresql-repmgr
|
||||
SUBDIR += postgresql-repmgr2
|
||||
SUBDIR += postgresql90-client
|
||||
SUBDIR += postgresql90-pgtcl
|
||||
SUBDIR += postgresql90-plperl
|
||||
|
38
databases/postgresql-repmgr2/Makefile
Normal file
38
databases/postgresql-repmgr2/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# Created by: alp@sfedu.ru
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= postgresql-repmgr
|
||||
PORTVERSION= 2.0.3
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://www.repmgr.org/download/
|
||||
DISTNAME= repmgr-${PORTVERSION}
|
||||
PKGNAMESUFFIX= 2
|
||||
|
||||
MAINTAINER= bofh@FreeBSD.org
|
||||
COMMENT= PostgreSQL replication manager
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
RUN_DEPENDS= rsync:net/rsync
|
||||
|
||||
USES+= gettext gmake pgsql:9.2-
|
||||
USE_RC_SUBR= repmgrd
|
||||
WANT_PGSQL= server
|
||||
MAKE_ENV= USE_PGXS=1
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/repmgr ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/repmgrd ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${STAGEDIR}${PREFIX}/etc
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/repmgr.sql ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/sql/repmgr_funcs.sql ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/sql/uninstall_repmgr_funcs.sql ${STAGEDIR}${DATADIR}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/postgresql
|
||||
${INSTALL_LIB} ${WRKSRC}/sql/repmgr_funcs.so ${STAGEDIR}${PREFIX}/lib/postgresql
|
||||
|
||||
.include <bsd.port.mk>
|
3
databases/postgresql-repmgr2/distinfo
Normal file
3
databases/postgresql-repmgr2/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1465474704
|
||||
SHA256 (repmgr-2.0.3.tar.gz) = b257921c74602c733f0ab39012160cbd36c1713f86b8d9ee957042d7ce006f19
|
||||
SIZE (repmgr-2.0.3.tar.gz) = 77172
|
33
databases/postgresql-repmgr2/files/repmgrd.in
Normal file
33
databases/postgresql-repmgr2/files/repmgrd.in
Normal file
@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: repmgrd
|
||||
# REQUIRE: postgresql
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add these lines to /etc/rc.conf.local or /etc/rc.conf to enable this
|
||||
# service:
|
||||
#
|
||||
# repmgrd_enable (bool): Set to YES to enable repmgrd. Default: NO
|
||||
#
|
||||
# repmgrd_config (path): Default: %%PREFIX%%/etc/repmgr.conf
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=repmgrd
|
||||
rcvar=repmgrd_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${repmgrd_enable:="NO"}
|
||||
: ${repmgrd_config="%%PREFIX%%/etc/repmgr.conf"}
|
||||
|
||||
command=%%PREFIX%%/sbin/${name}
|
||||
pidfile=/var/run/${name}.pid
|
||||
|
||||
command_args="-p $pidfile -f $repmgrd_config"
|
||||
|
||||
run_rc_command "$1"
|
||||
|
4
databases/postgresql-repmgr2/pkg-descr
Normal file
4
databases/postgresql-repmgr2/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
repmgr allows you to monitor and manage your replicated PostgreSQL
|
||||
databases as a single cluster.
|
||||
|
||||
WWW: http://projects.2ndquadrant.com/repmgr
|
8
databases/postgresql-repmgr2/pkg-plist
Normal file
8
databases/postgresql-repmgr2/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
bin/repmgr
|
||||
@sample etc/repmgr.conf.sample
|
||||
sbin/repmgrd
|
||||
lib/postgresql/repmgr_funcs.so
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.rst
|
||||
%%DATADIR%%/repmgr.sql
|
||||
%%DATADIR%%/repmgr_funcs.sql
|
||||
%%DATADIR%%/uninstall_repmgr_funcs.sql
|
Loading…
Reference in New Issue
Block a user