aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-07-05 07:00:14 +0800
committermiwi <miwi@FreeBSD.org>2009-07-05 07:00:14 +0800
commit41946cd0b1b98325d31808cacf2abc38a3b26166 (patch)
tree340b76595097be5e3c30e1e486495dfa58bc8d33 /databases
parent3f459532f037e436d1e1944fadf70db92cd8d2f7 (diff)
downloadfreebsd-ports-gnome-41946cd0b1b98325d31808cacf2abc38a3b26166.tar.gz
freebsd-ports-gnome-41946cd0b1b98325d31808cacf2abc38a3b26166.tar.zst
freebsd-ports-gnome-41946cd0b1b98325d31808cacf2abc38a3b26166.zip
- Update to 2.3
PR: 136228 Submitted by: Alexey V.Degtyarev <alexey@renatasystems.org> (maintainer)
Diffstat (limited to 'databases')
-rw-r--r--databases/mysqlbackup/Makefile23
-rw-r--r--databases/mysqlbackup/distinfo6
2 files changed, 23 insertions, 6 deletions
diff --git a/databases/mysqlbackup/Makefile b/databases/mysqlbackup/Makefile
index 09df2608f02f..e2f31440e4f2 100644
--- a/databases/mysqlbackup/Makefile
+++ b/databases/mysqlbackup/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= mysqlbackup
-PORTVERSION= 2.2
+PORTVERSION= 2.3
CATEGORIES= databases
MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
@@ -16,11 +16,28 @@ COMMENT= Program to create everyday MySQL-database servers backup
USE_MYSQL= yes
NO_BUILD= yes
+PERIODICS= 200.mysqlbackup.daily \
+ 200.mysqlbackup.weekly \
+ 200.mysqlbackup.monthly
+
MAN1= mysqlbackup.1
-PLIST_FILES= bin/mysqlbackup
+PLIST_FILES= bin/mysqlbackup \
+ ${PERIODICS:C,^(.*)\.(.*)$,\2/\1,:S,^,etc/periodic/,}
+PLIST_DIRS= ${PERIODICS:C,^(.*)\.(.*)$,etc/periodic/\2,:u} \
+ etc/periodic
+
+pre-install:
+ ${REINPLACE_CMD} ${SUB_LIST:S,$,!g,:S,^, -e s!%%,:S,=,%%!,} \
+ ${PERIODICS:S,^,${WRKSRC}/,}
do-install:
- ${INSTALL_MAN} ${WRKSRC}/mysqlbackup.1 ${MAN1PREFIX}/man/man1/mysqlbackup.1
+.for periodic in ${PERIODICS}
+ ${MKDIR} ${PREFIX}/etc/periodic/${periodic:E}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${periodic} \
+ ${PREFIX}/etc/periodic/${periodic:E}/${periodic:R}
+.endfor
+ ${INSTALL_MAN} ${WRKSRC}/mysqlbackup.1 \
+ ${MAN1PREFIX}/man/man1/mysqlbackup.1
${INSTALL_SCRIPT} ${WRKSRC}/mysqlbackup ${PREFIX}/bin/mysqlbackup
.include <bsd.port.mk>
diff --git a/databases/mysqlbackup/distinfo b/databases/mysqlbackup/distinfo
index d227d2228bfc..955eca8c297e 100644
--- a/databases/mysqlbackup/distinfo
+++ b/databases/mysqlbackup/distinfo
@@ -1,3 +1,3 @@
-MD5 (mysqlbackup-2.2.tar.gz) = 1c7028d7e1c1386d08e491d7d8b36e54
-SHA256 (mysqlbackup-2.2.tar.gz) = ffc5d0a05745e23c8a7eca9365d952b81710942ebd971bb7a43bd1033364dd5c
-SIZE (mysqlbackup-2.2.tar.gz) = 11647
+MD5 (mysqlbackup-2.3.tar.gz) = 6ad21297153e8d139a12c36a88da298d
+SHA256 (mysqlbackup-2.3.tar.gz) = 1cc555d1637f8c27df14ff7ae22ef181cab8af1133cab3e3c0fde3ed479e35fb
+SIZE (mysqlbackup-2.3.tar.gz) = 13669