Date: Wed, 27 Mar 2019 17:10:55 +0000 (UTC) From: Mahdi Mokhtari <mmokhi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r496952 - in head/databases: . automysqlbackup automysqlbackup/files Message-ID: <201903271710.x2RHAtXV099529@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mmokhi Date: Wed Mar 27 17:10:54 2019 New Revision: 496952 URL: https://svnweb.freebsd.org/changeset/ports/496952 Log: databases/automysqlbackup: Add the port to the tree AutoMySQLBackup is a script that takes the pain out of setting up automated incremental daily, weekly, and monthly backups of MySQL databases. Submitted by: Christian Schwarz <me@cschwarz.com> Reviewed by: matthew Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19612 Added: head/databases/automysqlbackup/ head/databases/automysqlbackup/Makefile (contents, props changed) head/databases/automysqlbackup/distinfo (contents, props changed) head/databases/automysqlbackup/files/ head/databases/automysqlbackup/files/patch-automysqlbackup (contents, props changed) head/databases/automysqlbackup/pkg-descr (contents, props changed) head/databases/automysqlbackup/pkg-plist (contents, props changed) Modified: head/databases/Makefile Modified: head/databases/Makefile ============================================================================== --- head/databases/Makefile Wed Mar 27 15:51:11 2019 (r496951) +++ head/databases/Makefile Wed Mar 27 17:10:54 2019 (r496952) @@ -23,6 +23,7 @@ SUBDIR += arangodb33 SUBDIR += ateam_mysql_ldap_auth SUBDIR += autobackupmysql + SUBDIR += automysqlbackup SUBDIR += bbdb SUBDIR += beansdb SUBDIR += buzhug Added: head/databases/automysqlbackup/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/automysqlbackup/Makefile Wed Mar 27 17:10:54 2019 (r496952) @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= automysqlbackup +DISTVERSIONPREFIX= v +DISTVERSION= 3.0_rc6 +CATEGORIES= databases +MASTER_SITES= SF/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0 + +MAINTAINER= me@cschwarz.com +COMMENT= Automatic MySQL Backup Tool + +LICENSE= GPLv2 + +RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash + +NO_BUILD= yes + +NO_WRKSUBDIR= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|' \ + ${WRKSRC}/automysqlbackup + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/automysqlbackup ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ + ${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${WRKSRC}/automysqlbackup.conf ${STAGEDIR}${ETCDIR}/automysqlbackup.conf.sample + +post-install: + ${MKDIR} ${STAGEDIR}/var/backups/automysqlbackup + +.include <bsd.port.mk> Added: head/databases/automysqlbackup/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/automysqlbackup/distinfo Wed Mar 27 17:10:54 2019 (r496952) @@ -0,0 +1,3 @@ +TIMESTAMP = 1552823236 +SHA256 (automysqlbackup-v3.0_rc6.tar.gz) = 889e064d086b077e213da11e937ea7242a289f9217652b9051c157830dc23cc0 +SIZE (automysqlbackup-v3.0_rc6.tar.gz) = 39205 Added: head/databases/automysqlbackup/files/patch-automysqlbackup ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/automysqlbackup/files/patch-automysqlbackup Wed Mar 27 17:10:54 2019 (r496952) @@ -0,0 +1,20 @@ +--- automysqlbackup.orig 2011-12-03 16:10:43 UTC ++++ automysqlbackup +@@ -55,8 +55,8 @@ let "N_backup_local_nofiles=0x20" + # @info: Default configuration options. + # @deps: (none) + load_default_config() { +- CONFIG_configfile="/etc/automysqlbackup/automysqlbackup.conf" +- CONFIG_backup_dir='/var/backup/db' ++ CONFIG_configfile="%%ETCDIR%%/automysqlbackup.conf" ++ CONFIG_backup_dir='/var/backups/automysqlbackup' + CONFIG_multicore='yes' + CONFIG_multicore_threads=2 + CONFIG_do_monthly="01" +@@ -2252,4 +2252,4 @@ elif (( $# == 0 )) && (( ${#opt_flags[@]} == 0 )); the + method_backup + fi + +-# END __main +\ No newline at end of file ++# END __main Added: head/databases/automysqlbackup/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/automysqlbackup/pkg-descr Wed Mar 27 17:10:54 2019 (r496952) @@ -0,0 +1,11 @@ +AutoMySQLBackup with a basic configuration will create Daily, Weekly and +Monthly backups of one or more of your MySQL databases from one or more +of your MySQL servers. + +Other Features include: +- Email notification of backups +- Backup Compression and Encryption +- Configurable backup rotation +- Incremental database backups + +WWW: https://sourceforge.net/projects/automysqlbackup Added: head/databases/automysqlbackup/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/automysqlbackup/pkg-plist Wed Mar 27 17:10:54 2019 (r496952) @@ -0,0 +1,4 @@ +bin/automysqlbackup +@sample etc/automysqlbackup/automysqlbackup.conf.sample +@dir(,,0700) /var/backups/automysqlbackup +%%DOCSDIR%%/README
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903271710.x2RHAtXV099529>