Apple's Time Machine is a great feature in their OS, and FreeBSD has almost all
of the required technology already built in to recreate it. This is a simple GUI to make it easy to use. WWW: http://code.google.com/p/flyback/
This commit is contained in:
37
sysutils/flyback/Makefile
Normal file
37
sysutils/flyback/Makefile
Normal file
@@ -0,0 +1,37 @@
|
||||
# New ports collection makefile for: flyback
|
||||
# Date created: 2008-01-20
|
||||
# Whom: Lars Engels <lme@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= flyback
|
||||
PORTVERSION= 0.4.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://${PORTNAME}.googlecode.com/files/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
|
||||
MAINTAINER= lme@FreeBSD.org
|
||||
COMMENT= A backup frontend like Apple's Time Machine
|
||||
|
||||
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync \
|
||||
${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
|
||||
|
||||
NO_BUILD= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_PYTHON= yes
|
||||
USE_GNOME= pygtk2 pygnome2 libglade2
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
SUB_FILES= flyback.sh
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/GPL.txt ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/viewer.glade ${DATADIR}
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/flyback.sh ${PREFIX}/bin/flyback
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
3
sysutils/flyback/distinfo
Normal file
3
sysutils/flyback/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
MD5 (flyback_0.4.0.tar.gz) = 6c924d9ddd5463bacf89467768c51a7f
|
||||
SHA256 (flyback_0.4.0.tar.gz) = 846d23d6e2a0f7840afdb6fc284d0cdfa37e463c01b194acf0709a706c91db04
|
||||
SIZE (flyback_0.4.0.tar.gz) = 25616
|
||||
4
sysutils/flyback/files/flyback.sh.in
Normal file
4
sysutils/flyback/files/flyback.sh.in
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd %%DATADIR%%
|
||||
exec %%DATADIR%%/flyback.py
|
||||
11
sysutils/flyback/files/patch-backup_backend.py
Normal file
11
sysutils/flyback/files/patch-backup_backend.py
Normal file
@@ -0,0 +1,11 @@
|
||||
--- backup_backend.py.orig 2007-11-15 07:22:16.000000000 +0100
|
||||
+++ backup_backend.py 2008-01-21 22:17:40.000000000 +0100
|
||||
@@ -229,7 +229,7 @@
|
||||
|
||||
if latest_backup_dir:
|
||||
last_backup = self.parent_backup_dir +'/'+ latest_backup_dir.strftime(BACKUP_DIR_DATE_FORMAT)
|
||||
- self.run_cmd_output_gui("cp -al '%s' '%s'" % (last_backup, new_backup))
|
||||
+ self.run_cmd_output_gui("cp -RPpl '%s' '%s'" % (last_backup, new_backup))
|
||||
self.run_cmd_output_gui("chmod u+w '%s'" % new_backup)
|
||||
|
||||
for dir in self.included_dirs:
|
||||
10
sysutils/flyback/files/patch-flyback.py
Normal file
10
sysutils/flyback/files/patch-flyback.py
Normal file
@@ -0,0 +1,10 @@
|
||||
--- flyback.py.orig 2007-11-15 07:22:16.000000000 +0100
|
||||
+++ flyback.py 2008-01-21 22:17:40.000000000 +0100
|
||||
@@ -592,6 +592,7 @@
|
||||
stdin, stdout = os.popen4('crontab -l')
|
||||
for line in stdout:
|
||||
if line.startswith('no crontab for'): continue
|
||||
+ if line.startswith('crontab: no crontab for'): continue
|
||||
if line.endswith('#flyback\n'): continue
|
||||
existing_crons.append(line)
|
||||
if c:
|
||||
5
sysutils/flyback/pkg-descr
Normal file
5
sysutils/flyback/pkg-descr
Normal file
@@ -0,0 +1,5 @@
|
||||
Apple's Time Machine is a great feature in their OS, and FreeBSD has almost all
|
||||
of the required technology already built in to recreate it. This is a simple GUI
|
||||
to make it easy to use.
|
||||
|
||||
WWW: http://code.google.com/p/flyback/
|
||||
10
sysutils/flyback/pkg-plist
Normal file
10
sysutils/flyback/pkg-plist
Normal file
@@ -0,0 +1,10 @@
|
||||
%%DATADIR%%/backup_backend.py
|
||||
%%DATADIR%%/config_backend.py
|
||||
%%DATADIR%%/desktop.py
|
||||
%%DATADIR%%/flyback.py
|
||||
%%DATADIR%%/help_data.py
|
||||
%%DATADIR%%/opengl_viewer.py
|
||||
%%DATADIR%%/viewer.glade
|
||||
%%DATADIR%%/GPL.txt
|
||||
bin/flyback
|
||||
@dirrm %%DATADIR%%
|
||||
Reference in New Issue
Block a user