summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/Makefile1
-rw-r--r--databases/automysqlbackup/Makefile34
-rw-r--r--databases/automysqlbackup/distinfo3
-rw-r--r--databases/automysqlbackup/files/patch-automysqlbackup20
-rw-r--r--databases/automysqlbackup/pkg-descr11
-rw-r--r--databases/automysqlbackup/pkg-plist4
6 files changed, 73 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index d38b755362e9..3d8dfc82474e 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -23,6 +23,7 @@
SUBDIR += arangodb33
SUBDIR += ateam_mysql_ldap_auth
SUBDIR += autobackupmysql
+ SUBDIR += automysqlbackup
SUBDIR += bbdb
SUBDIR += beansdb
SUBDIR += buzhug
diff --git a/databases/automysqlbackup/Makefile b/databases/automysqlbackup/Makefile
new file mode 100644
index 000000000000..d5eaaf7da0e6
--- /dev/null
+++ b/databases/automysqlbackup/Makefile
@@ -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>
diff --git a/databases/automysqlbackup/distinfo b/databases/automysqlbackup/distinfo
new file mode 100644
index 000000000000..8387e98ac43b
--- /dev/null
+++ b/databases/automysqlbackup/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1552823236
+SHA256 (automysqlbackup-v3.0_rc6.tar.gz) = 889e064d086b077e213da11e937ea7242a289f9217652b9051c157830dc23cc0
+SIZE (automysqlbackup-v3.0_rc6.tar.gz) = 39205
diff --git a/databases/automysqlbackup/files/patch-automysqlbackup b/databases/automysqlbackup/files/patch-automysqlbackup
new file mode 100644
index 000000000000..ea8a3c8687d6
--- /dev/null
+++ b/databases/automysqlbackup/files/patch-automysqlbackup
@@ -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
diff --git a/databases/automysqlbackup/pkg-descr b/databases/automysqlbackup/pkg-descr
new file mode 100644
index 000000000000..4fc5f4e74eac
--- /dev/null
+++ b/databases/automysqlbackup/pkg-descr
@@ -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
diff --git a/databases/automysqlbackup/pkg-plist b/databases/automysqlbackup/pkg-plist
new file mode 100644
index 000000000000..582c8855e1e4
--- /dev/null
+++ b/databases/automysqlbackup/pkg-plist
@@ -0,0 +1,4 @@
+bin/automysqlbackup
+@sample etc/automysqlbackup/automysqlbackup.conf.sample
+@dir(,,0700) /var/backups/automysqlbackup
+%%DOCSDIR%%/README