From owner-svn-ports-all@freebsd.org Wed Nov 7 15:09:22 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 255071128791; Wed, 7 Nov 2018 15:09:22 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AA456CF5D; Wed, 7 Nov 2018 15:09:21 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1F92117398; Wed, 7 Nov 2018 15:09:21 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA7F9KTH041044; Wed, 7 Nov 2018 15:09:20 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA7F9K0d041041; Wed, 7 Nov 2018 15:09:20 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201811071509.wA7F9K0d041041@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Wed, 7 Nov 2018 15:09:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r484400 - in head/databases/p5-Bucardo: . files X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: in head/databases/p5-Bucardo: . files X-SVN-Commit-Revision: 484400 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4AA456CF5D X-Spamd-Result: default: False [-106.83 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-1.00)[-0.999,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; IP_SCORE(-3.73)[ip: (-9.91), ipnet: 2610:1c1:1::/48(-4.89), asn: 11403(-3.74), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 15:09:22 -0000 Author: mat Date: Wed Nov 7 15:09:20 2018 New Revision: 484400 URL: https://svnweb.freebsd.org/changeset/ports/484400 Log: Update to 5.5.0 The rc script is no longer provided, so integrate it here. Also install some extra scripts to help with admin tasks. Added: head/databases/p5-Bucardo/files/bucardo.in (contents, props changed) Deleted: head/databases/p5-Bucardo/files/patch-dist__bucardo.rc Modified: head/databases/p5-Bucardo/Makefile (contents, props changed) head/databases/p5-Bucardo/distinfo (contents, props changed) head/databases/p5-Bucardo/pkg-plist (contents, props changed) Modified: head/databases/p5-Bucardo/Makefile ============================================================================== --- head/databases/p5-Bucardo/Makefile Wed Nov 7 14:59:34 2018 (r484399) +++ head/databases/p5-Bucardo/Makefile Wed Nov 7 15:09:20 2018 (r484400) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= Bucardo -PORTVERSION= 5.4.1 +PORTVERSION= 5.5.0 CATEGORIES= databases perl5 MASTER_SITES= http://bucardo.org/downloads/ LOCAL/mat/${PORTNAME} PKGNAMEPREFIX= p5- @@ -22,14 +22,16 @@ RUN_DEPENDS= p5-DBI>=1.51:databases/p5-DBI \ USES= perl5 USE_PERL5= configure +USE_RC_SUBR= bucardo post-patch: @${REINPLACE_CMD} 's/INSTALL_BASE/DESTDIR/;s/bucardo.1pm/bucardo.1/' \ ${WRKSRC}/Makefile.PL @${REINPLACE_CMD} 's=/usr/local=${PREFIX}=' ${WRKSRC}/Makefile.PL \ - ${WRKSRC}/bucardo ${WRKSRC}/dist/bucardo.rc + ${WRKSRC}/bucardo post-install: - ${INSTALL_SCRIPT} ${WRKSRC}/dist/bucardo.rc ${STAGEDIR}${PREFIX}/etc/rc.d/bucardo + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${STAGEDIR}${DATADIR} .include Modified: head/databases/p5-Bucardo/distinfo ============================================================================== --- head/databases/p5-Bucardo/distinfo Wed Nov 7 14:59:34 2018 (r484399) +++ head/databases/p5-Bucardo/distinfo Wed Nov 7 15:09:20 2018 (r484400) @@ -1,2 +1,3 @@ -SHA256 (Bucardo-5.4.1.tar.gz) = 0f080d75a7dca98c12f4d01463ba01e461c7c25c8daa383aca94202efd5d13dd -SIZE (Bucardo-5.4.1.tar.gz) = 327848 +TIMESTAMP = 1541601827 +SHA256 (Bucardo-5.5.0.tar.gz) = 14ca09a7394fd63029b583a01e2d04b438d4860af2dac109c6a3352e517abb2d +SIZE (Bucardo-5.5.0.tar.gz) = 331998 Added: head/databases/p5-Bucardo/files/bucardo.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/p5-Bucardo/files/bucardo.in Wed Nov 7 15:09:20 2018 (r484400) @@ -0,0 +1,106 @@ +#!/bin/sh + +# PROVIDE: bucardo +# REQUIRE: LOGIN postgresql +# KEYWORD: shutdown +# +# bucardo_enable="YES" +# bucardo_flags="--dbuser bucardo --dbname bucardo" +# +# + +. /etc/rc.subr + +name="bucardo" +rcvar="bucardo_enable" +command="%%PREFIX%%/bin/${name}" + +load_rc_config $name +bucardo_enable=${bucardo_enable:-"NO"} +bucardo_flags=${bucardo_flags:-"--dbuser bucardo --dbname bucardo"} + +rc_usage="start|stop|reload|restart|status|kick [sync_name]" +extra_commands="reload kick" + +start_cmd="${name}_start" +stop_cmd="${name}_stop" +reload_cmd="${name}_reload" +restart_cmd="${name}_restart" +kick_cmd="${name}_kick" +status_cmd="${name}_status" + + +bucardo_start() +{ + if [ -x ${command} ]; then + ${command} ${bucardo_flags} start "Started by rc script." + else + echo "${command} not found or not executable!" + exit 1 + fi +} + +bucardo_stop() +{ + if [ -x ${command} ]; then + ${command} ${bucardo_flags} stop "Stopped by rc script." + else + echo "${command} not found or not executable!" + exit 1 + fi +} + +bucardo_reload() +{ + if [ -x ${command} ]; then + ${command} ${bucardo_flags} reload_config + else + echo "${command} not found or not executable!" + exit 1 + fi +} + +bucardo_restart() +{ + if [ -x ${command} ]; then + ${command} ${bucardo_flags} stop "Restarting: Stopped by rc script" + ${command} ${bucardo_flags} start "Restarting: Started by rc script" + else + echo "${command} not found or not executable!" + exit 1 + fi +} + +bucardo_kick() +{ + if [ -x ${command} ]; then + if [ $# -gt 0 ]; then + ${command} ${bucardo_flags} kick $* + else + echo "Specifiy sync name to kick off" + exit 1 + fi + else + echo "${command} not found or not executable!" + exit 1 + fi +} + +bucardo_status() +{ + if [ -x ${command} ]; then + if [ $# -gt 0 ]; then + ${command} ${bucardo_flags} status $* + else + ${command} ${bucardo_flags} status + fi + else + echo "${command} not found or not executable!" + exit 1 + fi + +} + +load_rc_config $name +run_rc_command "$@" + Modified: head/databases/p5-Bucardo/pkg-plist ============================================================================== --- head/databases/p5-Bucardo/pkg-plist Wed Nov 7 14:59:34 2018 (r484399) +++ head/databases/p5-Bucardo/pkg-plist Wed Nov 7 15:09:20 2018 (r484400) @@ -1,6 +1,10 @@ bin/bucardo -etc/rc.d/bucardo -%%PERL5_MAN3%%/Bucardo.3.gz %%SITE_PERL%%/Bucardo.pm %%PERL5_MAN1%%/bucardo.1.gz +%%PERL5_MAN3%%/Bucardo.3.gz +%%DATADIR%%/README +%%DATADIR%%/bucardo-report +%%DATADIR%%/bucardo_rrd +%%DATADIR%%/check_bucardo_sync +%%DATADIR%%/slony_migrator.pl share/bucardo/bucardo.schema