Import backintime-0.9.26.
Back In Time is a simple backup tool for Linux inspired from the flyback project and TimeVault. The backup is done by taking snapshots of a specified set of directories. ok jasper@
This commit is contained in:
parent
10f83ce23c
commit
2af53dc412
8
sysutils/backintime/Makefile
Normal file
8
sysutils/backintime/Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
|
||||
SUBDIR =
|
||||
SUBDIR += common
|
||||
SUBDIR += gnome
|
||||
# SUBDIR += kde
|
||||
|
||||
.include <bsd.port.subdir.mk>
|
45
sysutils/backintime/Makefile.inc
Normal file
45
sysutils/backintime/Makefile.inc
Normal file
@ -0,0 +1,45 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
|
||||
V= 0.9.26
|
||||
BASENAME= backintime-${V}
|
||||
DISTNAME= ${BASENAME}_src
|
||||
|
||||
CATEGORIES+= sysutils
|
||||
|
||||
HOMEPAGE= http://backintime.le-web.org/
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}download/backintime/
|
||||
|
||||
MODULES+= lang/python
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
WRKDIST= ${WRKDIR}/${BASENAME}
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
|
||||
MAKE_ENV= DEST=${WRKINST}${PREFIX}
|
||||
|
||||
pre-configure:
|
||||
.for i in ${SUBST_FILES}
|
||||
${SUBST_CMD} ${WRKSRC}/${i}
|
||||
.endfor
|
||||
perl -pi -e 's,/bin/bash,/bin/sh,,;' \
|
||||
-e 's,^PREFIX.*,,;' \
|
||||
-e 's,^DEST.*,,;' \
|
||||
-e 's,--mode=,-m ,g' \
|
||||
${WRKSRC}/{configure,Makefile.template}
|
||||
|
||||
# clean up the mess
|
||||
post-install:
|
||||
mv ${PREFIX}/share/man/* ${PREFIX}/man
|
||||
gunzip ${PREFIX}/man/man[1-9]/*.gz
|
||||
rm -rf ${PREFIX}/share/{doc/backintime-*,man}
|
||||
rm -f ${PREFIX}/share/doc/backintime/{CHANGES,README,VERSION}
|
||||
rm -f ${PREFIX}/share/applications/backintime-gnome-root.desktop
|
14
sysutils/backintime/common/Makefile
Normal file
14
sysutils/backintime/common/Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
|
||||
COMMENT= simple backup tool -- common files
|
||||
|
||||
PKGNAME= backintime-common-${V}
|
||||
|
||||
WRKSRC= ${WRKDIST}/common
|
||||
|
||||
BUILD_DEPENDS= ::devel/gettext
|
||||
RUN_DEPENDS= ::misc/fileutils
|
||||
|
||||
SUBST_FILES= backintime config.py
|
||||
|
||||
.include <bsd.port.mk>
|
5
sysutils/backintime/common/distinfo
Normal file
5
sysutils/backintime/common/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (backintime-0.9.26_src.tar.gz) = ilPR91fM+kOXVPSoucs+SQ==
|
||||
RMD160 (backintime-0.9.26_src.tar.gz) = notr5lsEWzMNV1HW5SSo1V1P29I=
|
||||
SHA1 (backintime-0.9.26_src.tar.gz) = PaR3sPqp70Z1Z278PNmQCq1ffXY=
|
||||
SHA256 (backintime-0.9.26_src.tar.gz) = zoHW7pks4Nvb4nQJ8FVCFWOr5osi1mw2JRswV+kZqX0=
|
||||
SIZE (backintime-0.9.26_src.tar.gz) = 872171
|
14
sysutils/backintime/common/patches/patch-common_backintime
Normal file
14
sysutils/backintime/common/patches/patch-common_backintime
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-common_backintime,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
--- common/backintime.orig Tue May 4 09:31:19 2010
|
||||
+++ common/backintime Tue May 4 09:31:41 2010
|
||||
@@ -20,8 +20,8 @@
|
||||
if [ -f backintime.py ]; then
|
||||
APP_PATH="."
|
||||
else
|
||||
- APP_PATH="/usr/share/backintime/common"
|
||||
+ APP_PATH="${PREFIX}/share/backintime/common"
|
||||
fi
|
||||
|
||||
-python $APP_PATH/backintime.py $*
|
||||
+${MODPY_BIN} $APP_PATH/backintime.py $*
|
||||
|
35
sysutils/backintime/common/patches/patch-common_config_py
Normal file
35
sysutils/backintime/common/patches/patch-common_config_py
Normal file
@ -0,0 +1,35 @@
|
||||
$OpenBSD: patch-common_config_py,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
--- common/config.py.orig Tue May 4 10:28:34 2010
|
||||
+++ common/config.py Tue May 4 10:29:26 2010
|
||||
@@ -27,7 +27,7 @@ import tools
|
||||
|
||||
_=gettext.gettext
|
||||
|
||||
-gettext.bindtextdomain( 'backintime', '/usr/share/locale' )
|
||||
+gettext.bindtextdomain( 'backintime', '${PREFIX}/share/locale' )
|
||||
gettext.textdomain( 'backintime' )
|
||||
|
||||
|
||||
@@ -70,11 +70,11 @@ class Config( configfile.ConfigFile ):
|
||||
|
||||
def __init__( self ):
|
||||
self._APP_PATH = os.path.dirname( os.path.abspath( os.path.dirname( __file__ ) ) )
|
||||
- self._DOC_PATH = '/usr/share/doc/backintime'
|
||||
+ self._DOC_PATH = '${PREFIX}/share/doc/backintime'
|
||||
if os.path.exists( os.path.join( self._APP_PATH, 'LICENSE' ) ):
|
||||
self._DOC_PATH = self._APP_PATH
|
||||
|
||||
- self._GLOBAL_CONFIG_PATH = '/etc/backintime/config'
|
||||
+ self._GLOBAL_CONFIG_PATH = '${SYSCONFDIR}/backintime/config'
|
||||
|
||||
HOME_FOLDER = os.path.expanduser( '~' )
|
||||
self._LOCAL_DATA_FOLDER = os.path.join( os.getenv( 'XDG_DATA_HOME', '$HOME/.local/share' ).replace( '$HOME', HOME_FOLDER ), 'backintime' )
|
||||
@@ -466,7 +466,7 @@ class Config( configfile.ConfigFile ):
|
||||
cron_line = 'echo "@monthly {cmd}"'
|
||||
|
||||
if len( cron_line ) > 0:
|
||||
- cmd = '/usr/bin/backintime --backup-job >/dev/null 2>&1'
|
||||
+ cmd = '${PREFIX}/bin/backintime --backup-job >/dev/null 2>&1'
|
||||
if self.is_run_nice_from_cron_enabled():
|
||||
cmd = 'nice -n 19 ' + cmd
|
||||
cron_line = cron_line.replace( '{cmd}', cmd )
|
60
sysutils/backintime/common/patches/patch-common_snapshots_py
Normal file
60
sysutils/backintime/common/patches/patch-common_snapshots_py
Normal file
@ -0,0 +1,60 @@
|
||||
$OpenBSD: patch-common_snapshots_py,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
|
||||
OpenBSD does not support extended attributes & ACLs.
|
||||
Needs the "--link" option from gcp(1) for incremental backups.
|
||||
|
||||
--- common/snapshots.py.orig Mon May 18 10:24:21 2009
|
||||
+++ common/snapshots.py Tue May 4 10:36:57 2010
|
||||
@@ -256,7 +256,7 @@ class Snapshots:
|
||||
|
||||
backup_suffix = '.backup.' + datetime.date.today().strftime( '%Y%m%d' )
|
||||
#cmd = "rsync -avR --copy-unsafe-links --whole-file --backup --suffix=%s --chmod=+w %s/.%s %s" % ( backup_suffix, self.get_snapshot_path_to( snapshot_id ), path, '/' )
|
||||
- cmd = "rsync -avRAXE --whole-file --backup --suffix=%s " % backup_suffix
|
||||
+ cmd = "rsync -avRE --whole-file --backup --suffix=%s " % backup_suffix
|
||||
cmd = cmd + '--chmod=+w '
|
||||
cmd = cmd + "\"%s.%s\" %s" % ( self.get_snapshot_path_to( snapshot_id ), path, '/' )
|
||||
self._execute( cmd )
|
||||
@@ -316,7 +316,7 @@ class Snapshots:
|
||||
path = self.get_snapshot_path( snapshot_id )
|
||||
cmd = "chmod -R a+rwx \"%s\"" % path
|
||||
self._execute( cmd )
|
||||
- cmd = "rm -rfv \"%s\"" % path
|
||||
+ cmd = "rm -rf \"%s\"" % path
|
||||
self._execute( cmd )
|
||||
|
||||
def _get_last_snapshot_info( self ):
|
||||
@@ -608,7 +608,7 @@ class Snapshots:
|
||||
rsync_include2 = ' '.join( items2 )
|
||||
|
||||
#rsync prefix & suffix
|
||||
- rsync_prefix = 'rsync -aEAX '
|
||||
+ rsync_prefix = 'rsync -aE '
|
||||
rsync_exclude_backup_directory = " --exclude=\"%s\" --exclude=\"%s\" " % ( self.config.get_snapshots_path(), self.config._LOCAL_DATA_FOLDER )
|
||||
rsync_suffix = ' --chmod=Fa-w,D+w --whole-file --delete ' + rsync_exclude_backup_directory + rsync_include + ' ' + rsync_exclude + ' ' + rsync_include2 + ' --exclude=\"*\" / '
|
||||
|
||||
@@ -653,14 +653,14 @@ class Snapshots:
|
||||
logger.info( "Create hard-links" )
|
||||
|
||||
if force or len( ignore_folders ) == 0:
|
||||
- cmd = "cp -al \"%s\"* \"%s\"" % ( self.get_snapshot_path_to( prev_snapshot_id ), new_snapshot_path_to )
|
||||
+ cmd = "gcp -al \"%s\"* \"%s\"" % ( self.get_snapshot_path_to( prev_snapshot_id ), new_snapshot_path_to )
|
||||
self._execute( cmd )
|
||||
else:
|
||||
for folder in include_folders:
|
||||
prev_path = self.get_snapshot_path_to( prev_snapshot_id, folder )
|
||||
new_path = self.get_snapshot_path_to( new_snapshot_id, folder )
|
||||
tools.make_dirs( new_path )
|
||||
- cmd = "cp -alb \"%s\"* \"%s\"" % ( prev_path, new_path )
|
||||
+ cmd = "gcp -alb \"%s\"* \"%s\"" % ( prev_path, new_path )
|
||||
self._execute( cmd )
|
||||
else:
|
||||
if not self._create_directory( new_snapshot_path_to ):
|
||||
@@ -695,7 +695,7 @@ class Snapshots:
|
||||
prev_path = self.get_snapshot_path_to( prev_snapshot_id, folder )
|
||||
new_path = self.get_snapshot_path_to( new_snapshot_id, folder )
|
||||
tools.make_dirs( new_path )
|
||||
- cmd = "cp -alb \"%s/\"* \"%s\"" % ( prev_path, new_path )
|
||||
+ cmd = "gcp -alb \"%s/\"* \"%s\"" % ( prev_path, new_path )
|
||||
self._execute( cmd )
|
||||
|
||||
if len( prev_fileinfo_dict ) > 0:
|
12
sysutils/backintime/common/patches/patch-common_tools_py
Normal file
12
sysutils/backintime/common/patches/patch-common_tools_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-common_tools_py,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
--- common/tools.py.orig Tue May 4 11:47:10 2010
|
||||
+++ common/tools.py Tue May 4 11:47:34 2010
|
||||
@@ -103,7 +103,7 @@ def make_dirs( path ):
|
||||
|
||||
|
||||
def process_exists( name ):
|
||||
- output = read_command_output( "ps -o pid= -C %s" % name )
|
||||
+ output = read_command_output( "pgrep -f %s" % name )
|
||||
return len( output ) > 0
|
||||
|
||||
|
5
sysutils/backintime/common/pkg/DESCR
Normal file
5
sysutils/backintime/common/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Back In Time is a simple backup tool for Linux inspired from the flyback
|
||||
project and TimeVault. The backup is done by taking snapshots of a
|
||||
specified set of directories.
|
||||
|
||||
This package provides common tools needed for backup.
|
60
sysutils/backintime/common/pkg/PLIST
Normal file
60
sysutils/backintime/common/pkg/PLIST
Normal file
@ -0,0 +1,60 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
bin/backintime
|
||||
@man man/man1/backintime.1
|
||||
share/backintime/
|
||||
share/backintime/common/
|
||||
share/backintime/common/applicationinstance.py
|
||||
share/backintime/common/backintime.py
|
||||
share/backintime/common/config.py
|
||||
share/backintime/common/configfile.py
|
||||
share/backintime/common/driveinfo.py
|
||||
share/backintime/common/guiapplicationinstance.py
|
||||
share/backintime/common/logger.py
|
||||
share/backintime/common/pluginmanager.py
|
||||
share/backintime/common/snapshots.py
|
||||
share/backintime/common/tools.py
|
||||
share/backintime/plugins/
|
||||
share/backintime/plugins/usercallbackplugin.py
|
||||
share/doc/backintime/
|
||||
share/doc/backintime/AUTHORS
|
||||
share/doc/backintime/LICENSE
|
||||
share/doc/backintime/TRANSLATIONS
|
||||
share/locale/ar/
|
||||
share/locale/ar/LC_MESSAGES/
|
||||
share/locale/ar/LC_MESSAGES/backintime.mo
|
||||
share/locale/bg/LC_MESSAGES/backintime.mo
|
||||
share/locale/ca/LC_MESSAGES/backintime.mo
|
||||
share/locale/cs/LC_MESSAGES/backintime.mo
|
||||
share/locale/de/LC_MESSAGES/backintime.mo
|
||||
share/locale/en_GB/
|
||||
share/locale/en_GB/LC_MESSAGES/
|
||||
share/locale/en_GB/LC_MESSAGES/backintime.mo
|
||||
share/locale/es/LC_MESSAGES/backintime.mo
|
||||
share/locale/et/LC_MESSAGES/backintime.mo
|
||||
share/locale/eu/LC_MESSAGES/backintime.mo
|
||||
share/locale/fr/LC_MESSAGES/backintime.mo
|
||||
share/locale/gl/LC_MESSAGES/backintime.mo
|
||||
share/locale/he/LC_MESSAGES/backintime.mo
|
||||
share/locale/hu/LC_MESSAGES/backintime.mo
|
||||
share/locale/id/LC_MESSAGES/backintime.mo
|
||||
share/locale/it/LC_MESSAGES/backintime.mo
|
||||
share/locale/jv/
|
||||
share/locale/jv/LC_MESSAGES/
|
||||
share/locale/jv/LC_MESSAGES/backintime.mo
|
||||
share/locale/lt/
|
||||
share/locale/lt/LC_MESSAGES/
|
||||
share/locale/lt/LC_MESSAGES/backintime.mo
|
||||
share/locale/nb/LC_MESSAGES/backintime.mo
|
||||
share/locale/nl/LC_MESSAGES/backintime.mo
|
||||
share/locale/pl/LC_MESSAGES/backintime.mo
|
||||
share/locale/pt/LC_MESSAGES/backintime.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/backintime.mo
|
||||
share/locale/ru/LC_MESSAGES/backintime.mo
|
||||
share/locale/sk/LC_MESSAGES/backintime.mo
|
||||
share/locale/sl/LC_MESSAGES/backintime.mo
|
||||
share/locale/sv/LC_MESSAGES/backintime.mo
|
||||
share/locale/th/
|
||||
share/locale/th/LC_MESSAGES/
|
||||
share/locale/th/LC_MESSAGES/backintime.mo
|
||||
share/locale/uk/LC_MESSAGES/backintime.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/backintime.mo
|
22
sysutils/backintime/gnome/Makefile
Normal file
22
sysutils/backintime/gnome/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
|
||||
COMMENT= simple backup tool -- GNOME UI
|
||||
|
||||
PKGNAME= backintime-gnome-${V}
|
||||
|
||||
CATEGORIES= x11
|
||||
|
||||
WRKSRC= ${WRKDIST}/gnome
|
||||
|
||||
SUBST_FILES= backintime-gnome
|
||||
|
||||
CONFIGURE_ARGS= --no-check
|
||||
|
||||
RUN_DEPENDS= ::sysutils/backintime/common \
|
||||
::textproc/meld \
|
||||
::x11/gnome/py-gnome \
|
||||
::devel/py-notify \
|
||||
:yelp-*:x11/gnome/yelp \
|
||||
:desktop-file-utils-*:devel/desktop-file-utils
|
||||
|
||||
.include <bsd.port.mk>
|
5
sysutils/backintime/gnome/distinfo
Normal file
5
sysutils/backintime/gnome/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (backintime-0.9.26_src.tar.gz) = ilPR91fM+kOXVPSoucs+SQ==
|
||||
RMD160 (backintime-0.9.26_src.tar.gz) = notr5lsEWzMNV1HW5SSo1V1P29I=
|
||||
SHA1 (backintime-0.9.26_src.tar.gz) = PaR3sPqp70Z1Z278PNmQCq1ffXY=
|
||||
SHA256 (backintime-0.9.26_src.tar.gz) = zoHW7pks4Nvb4nQJ8FVCFWOr5osi1mw2JRswV+kZqX0=
|
||||
SIZE (backintime-0.9.26_src.tar.gz) = 872171
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-gnome_backintime-gnome,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
--- gnome/backintime-gnome.orig Tue May 4 10:14:18 2010
|
||||
+++ gnome/backintime-gnome Tue May 4 10:14:33 2010
|
||||
@@ -20,8 +20,8 @@
|
||||
if [ -f app.py ]; then
|
||||
APP_PATH="."
|
||||
else
|
||||
- APP_PATH="/usr/share/backintime/gnome"
|
||||
+ APP_PATH="${PREFIX}/share/backintime/gnome"
|
||||
fi
|
||||
|
||||
-python ${APP_PATH}/app.py $*
|
||||
+${MODPY_BIN} ${APP_PATH}/app.py $*
|
||||
|
5
sysutils/backintime/gnome/pkg/DESCR
Normal file
5
sysutils/backintime/gnome/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Back In Time is a simple backup tool for Linux inspired from the flyback
|
||||
project and TimeVault. The backup is done by taking snapshots of a
|
||||
specified set of directories.
|
||||
|
||||
This package provides the GNOME UI.
|
40
sysutils/backintime/gnome/pkg/PLIST
Normal file
40
sysutils/backintime/gnome/pkg/PLIST
Normal file
@ -0,0 +1,40 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/05/04 12:53:49 ajacoutot Exp $
|
||||
bin/backintime-gnome
|
||||
@man man/man1/backintime-gnome.1
|
||||
share/applications/backintime-gnome.desktop
|
||||
share/backintime/gnome/
|
||||
share/backintime/gnome/app.py
|
||||
share/backintime/gnome/clipboardtools.py
|
||||
share/backintime/gnome/fileicons.py
|
||||
share/backintime/gnome/gnometools.py
|
||||
share/backintime/gnome/mainwindow.glade
|
||||
share/backintime/gnome/messagebox.py
|
||||
share/backintime/gnome/settingsdialog.glade
|
||||
share/backintime/gnome/settingsdialog.py
|
||||
share/backintime/gnome/snapshotsdialog.glade
|
||||
share/backintime/gnome/snapshotsdialog.py
|
||||
share/backintime/gnome/textinputdialog.glade
|
||||
share/backintime/plugins/gnomeplugin.py
|
||||
share/gnome/help/backintime/
|
||||
share/gnome/help/backintime/C/
|
||||
share/gnome/help/backintime/C/backintime.xml
|
||||
share/gnome/help/backintime/C/figures/
|
||||
share/gnome/help/backintime/C/figures/mainwindow.png
|
||||
share/gnome/help/backintime/C/figures/nautilus_actions_step1.png
|
||||
share/gnome/help/backintime/C/figures/nautilus_actions_step2.png
|
||||
share/gnome/help/backintime/C/figures/nautilus_actions_step3.png
|
||||
share/gnome/help/backintime/C/figures/nautilus_actions_step4.png
|
||||
share/gnome/help/backintime/C/figures/nautilus_actions_step5.png
|
||||
share/gnome/help/backintime/C/figures/settings_auto_remove.png
|
||||
share/gnome/help/backintime/C/figures/settings_exclude.png
|
||||
share/gnome/help/backintime/C/figures/settings_expert_options.png
|
||||
share/gnome/help/backintime/C/figures/settings_general.png
|
||||
share/gnome/help/backintime/C/figures/settings_include.png
|
||||
share/gnome/help/backintime/C/figures/settings_include2.png
|
||||
share/gnome/help/backintime/C/figures/settings_options.png
|
||||
share/gnome/help/backintime/C/figures/snapshotsdialog.png
|
||||
share/gnome/help/backintime/C/legal.xml
|
||||
share/omf/backintime/
|
||||
share/omf/backintime/backintime-C.omf
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
Loading…
Reference in New Issue
Block a user