Index: head/databases/p5-Bucardo/Makefile =================================================================== --- head/databases/p5-Bucardo/Makefile (revision 484399) +++ head/databases/p5-Bucardo/Makefile (revision 484400) @@ -1,35 +1,37 @@ # Created by: Mathieu Arnold # $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- MAINTAINER= mat@FreeBSD.org COMMENT= Asynchronous PostgreSQL replication system LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-DBI>=1.51:databases/p5-DBI \ p5-DBD-Pg>=2.0:databases/p5-DBD-Pg \ p5-Encode-Locale>=0:converters/p5-Encode-Locale \ p5-boolean>=0:devel/p5-boolean \ p5-DBIx-Safe>=1.2.4:databases/p5-DBIx-Safe 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 Index: head/databases/p5-Bucardo/distinfo =================================================================== --- head/databases/p5-Bucardo/distinfo (revision 484399) +++ head/databases/p5-Bucardo/distinfo (revision 484400) @@ -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 Index: head/databases/p5-Bucardo/files/patch-dist__bucardo.rc =================================================================== --- head/databases/p5-Bucardo/files/patch-dist__bucardo.rc (revision 484399) +++ head/databases/p5-Bucardo/files/patch-dist__bucardo.rc (nonexistent) @@ -1,15 +0,0 @@ ---- dist/bucardo.rc.orig 2014-11-07 17:55:46 UTC -+++ dist/bucardo.rc -@@ -11,10 +11,11 @@ - . /etc/rc.subr - - name="bucardo" --rcvar=`set_rcvar` -+rcvar="bucardo_enable" - command="/usr/local/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]" Property changes on: head/databases/p5-Bucardo/files/patch-dist__bucardo.rc ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/p5-Bucardo/files/bucardo.in =================================================================== --- head/databases/p5-Bucardo/files/bucardo.in (nonexistent) +++ head/databases/p5-Bucardo/files/bucardo.in (revision 484400) @@ -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 "$@" + Property changes on: head/databases/p5-Bucardo/files/bucardo.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/databases/p5-Bucardo/pkg-plist =================================================================== --- head/databases/p5-Bucardo/pkg-plist (revision 484399) +++ head/databases/p5-Bucardo/pkg-plist (revision 484400) @@ -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