svn commit: r410190 - in head/sysutils: . tarsnap-periodic
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sat Mar 5 16:56:04 UTC 2016
Author: rakuco
Date: Sat Mar 5 16:56:02 2016
New Revision: 410190
URL: https://svnweb.freebsd.org/changeset/ports/410190
Log:
New port: sysutils/tarsnap-periodic.
Script that uses the periodic system to create and manage tarsnap backups.
Easily configured via /etc/periodic.conf.
WWW: https://github.com/anotherkamila/tarsnap-periodic
PR: 207560
Submitted by: Kamila Součková <kamila at ksp.sk>
Added:
head/sysutils/tarsnap-periodic/
head/sysutils/tarsnap-periodic/Makefile (contents, props changed)
head/sysutils/tarsnap-periodic/distinfo (contents, props changed)
head/sysutils/tarsnap-periodic/pkg-descr (contents, props changed)
head/sysutils/tarsnap-periodic/pkg-message (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Sat Mar 5 16:40:41 2016 (r410189)
+++ head/sysutils/Makefile Sat Mar 5 16:56:02 2016 (r410190)
@@ -1018,6 +1018,7 @@
SUBDIR += tai64nfrac
SUBDIR += tarsnap
SUBDIR += tarsnap-gui
+ SUBDIR += tarsnap-periodic
SUBDIR += tartarus
SUBDIR += tbku
SUBDIR += tclsyslog
Added: head/sysutils/tarsnap-periodic/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/tarsnap-periodic/Makefile Sat Mar 5 16:56:02 2016 (r410190)
@@ -0,0 +1,49 @@
+# Created by: Kamila Souckova <kamila at ksp.sk>
+# $FreeBSD$
+
+PORTNAME= tarsnap-periodic
+PORTVERSION= 1.0.20160229
+CATEGORIES= sysutils
+
+MAINTAINER= kamila at ksp.sk
+COMMENT= Simple way of making tarsnap backups using the periodic system
+
+RUN_DEPENDS= tarsnap:${PORTSDIR}/sysutils/tarsnap
+
+USE_GITHUB= yes
+GH_ACCOUNT= anotherkamila
+GH_TAGNAME= e593907
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+PERIODIC_DIRS= etc/periodic/daily etc/periodic/weekly \
+ etc/periodic/monthly etc/periodic
+
+PERIODIC_FILES= etc/periodic/daily/000.tarsnap-backup \
+ etc/periodic/weekly/000.tarsnap-backup \
+ etc/periodic/monthly/000.tarsnap-backup
+
+SCRIPT_FILE= bin/tarsnap-backup
+
+PLIST_FILES= ${PERIODIC_FILES} ${SCRIPT_FILE}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|TARSNAP_CMD=.*|TARSNAP_CMD=${PREFIX}/bin/tarsnap|" \
+ ${WRKSRC}/${SCRIPT_FILE}
+.for _file in ${PERIODIC_FILES}
+ @${REINPLACE_CMD} -e "s|tarsnap-backup|${PREFIX}/bin/tarsnap-backup|" \
+ ${WRKSRC}/${_file}
+.endfor
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/tarsnap-backup ${STAGEDIR}${PREFIX}/bin
+.for _dir in ${PERIODIC_DIRS}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${_dir}
+.endfor
+
+.for _file in ${PERIODIC_FILES}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${_file} ${STAGEDIR}${PREFIX}/${_file}
+.endfor
+
+.include <bsd.port.mk>
Added: head/sysutils/tarsnap-periodic/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/tarsnap-periodic/distinfo Sat Mar 5 16:56:02 2016 (r410190)
@@ -0,0 +1,2 @@
+SHA256 (anotherkamila-tarsnap-periodic-1.0.20160229-e593907_GH0.tar.gz) = 993515aa412b7e6d2784081f51305a5202b81d11fa420d6ad94ed1ce85bba0eb
+SIZE (anotherkamila-tarsnap-periodic-1.0.20160229-e593907_GH0.tar.gz) = 2107
Added: head/sysutils/tarsnap-periodic/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/tarsnap-periodic/pkg-descr Sat Mar 5 16:56:02 2016 (r410190)
@@ -0,0 +1,4 @@
+Script that uses the periodic system to create and manage tarsnap
+backups. Easily configured via /etc/periodic.conf
+
+WWW: https://github.com/anotherkamila/tarsnap-periodic
Added: head/sysutils/tarsnap-periodic/pkg-message
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/tarsnap-periodic/pkg-message Sat Mar 5 16:56:02 2016 (r410190)
@@ -0,0 +1,13 @@
+
+In order to enable periodic tarsnap backups you need
+to add these lines to your /etc/periodic.conf
+
+daily_tarsnap_backup_enable="YES"
+daily_tarsnap_backup_paths="/"
+daily_tarsnap_backup_keep=7
+weekly_tarsnap_backup_enable="YES"
+weekly_tarsnap_backup_paths="/"
+weekly_tarsnap_backup_keep=5
+monthly_tarsnap_backup_enable="YES"
+monthly_tarsnap_backup_paths="/"
+monthly_tarsnap_backup_keep=2
More information about the svn-ports-head
mailing list