Remove backintime; it depends on *very* outdated and unmaintained

GNOME 2 libs which are about to be removed.

ok jasper@
This commit is contained in:
ajacoutot 2013-03-27 08:49:27 +00:00
parent 6cd00e9858
commit 808c487471
20 changed files with 0 additions and 476 deletions

View File

@ -1,8 +0,0 @@
# $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>

View File

@ -1,42 +0,0 @@
# $OpenBSD: Makefile.inc,v 1.8 2013/03/11 13:42:59 sthen Exp $
V= 1.0.8
BASENAME= backintime-${V}
DISTNAME= ${BASENAME}_src
CATEGORIES+= sysutils
HOMEPAGE= http://backintime.le-web.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${HOMEPAGE}download/backintime/
MODULES+= lang/python
NO_TEST= 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-*,gnome,man,omf}
rm -f ${PREFIX}/share/doc/backintime/{CHANGES,README,VERSION}
rm -f ${PREFIX}/share/applications/backintime-gnome-root.desktop

View File

@ -1,16 +0,0 @@
# $OpenBSD: Makefile,v 1.11 2012/05/29 10:21:56 ajacoutot Exp $
COMMENT= simple backup tool -- common files
PKGNAME= backintime-common-${V}
REVISION= 3
WRKSRC= ${WRKDIST}/common
BUILD_DEPENDS= devel/gettext
RUN_DEPENDS= sysutils/coreutils \
net/rsync
SUBST_FILES= backintime config.py
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (backintime-1.0.8_src.tar.gz) = Z2x0PLZP3GRsKQxi5FZA/w==
RMD160 (backintime-1.0.8_src.tar.gz) = JRbr31KKPMrIyZOtJqXj5NiRELw=
SHA1 (backintime-1.0.8_src.tar.gz) = 2WKzdCM4CZGY7XY68iBqrEK6+uY=
SHA256 (backintime-1.0.8_src.tar.gz) = +4NzauBnGw1jRoqdOaKTNDINk98ASRHMGSsZid+X2TE=
SIZE (backintime-1.0.8_src.tar.gz) = 291473

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-common_backintime,v 1.2 2010/11/05 16:39:10 ajacoutot Exp $
--- common/backintime.orig Sun Jul 4 14:30:19 2010
+++ common/backintime Fri Nov 5 17:27:39 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 "$@"

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-common_backintime_py,v 1.2 2011/03/03 13:49:27 ajacoutot Exp $
--- common/backintime.py.orig Sun Jan 2 15:01:38 2011
+++ common/backintime.py Mon Feb 21 19:15:49 2011
@@ -36,8 +36,6 @@ def take_snapshot_now_async( cfg ):
profile = "--profile-id %s" % cfg.get_current_profile()
cmd = "backintime %s --backup &" % profile
- if cfg.is_run_ionice_from_user_enabled():
- cmd = 'ionice -c2 -n7 ' + cmd
os.system( cmd )

View File

@ -1,63 +0,0 @@
$OpenBSD: patch-common_config_py,v 1.4 2012/05/29 10:21:56 ajacoutot Exp $
--- common/config.py.orig Wed Jan 5 21:08:29 2011
+++ common/config.py Tue May 29 12:20:17 2012
@@ -29,13 +29,13 @@ import logger
_=gettext.gettext
-gettext.bindtextdomain( 'backintime', '/usr/share/locale' )
+gettext.bindtextdomain( 'backintime', '${PREFIX}/share/locale' )
gettext.textdomain( 'backintime' )
class Config( configfile.ConfigFileWithProfiles ):
APP_NAME = 'Back In Time'
- VERSION = '1.0.7'
+ VERSION = '1.0.8'
COPYRIGHT = 'Copyright (c) 2008-2009 Oprea Dan, Bart de Koning, Richard Bailey'
CONFIG_VERSION = 5
@@ -77,11 +77,11 @@ class Config( configfile.ConfigFileWithProfiles ):
configfile.ConfigFileWithProfiles.__init__( self, _('Main profile') )
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' )
@@ -587,18 +587,6 @@ class Config( configfile.ConfigFileWithProfiles ):
def set_run_nice_from_cron_enabled( self, value, profile_id = None ):
self.set_profile_bool_value( 'snapshots.cron.nice', value, profile_id )
- def is_run_ionice_from_cron_enabled( self, profile_id = None ):
- return self.get_profile_bool_value( 'snapshots.cron.ionice', True, profile_id )
-
- def set_run_ionice_from_cron_enabled( self, value, profile_id = None ):
- self.set_profile_bool_value( 'snapshots.cron.ionice', value, profile_id )
-
- def is_run_ionice_from_user_enabled( self, profile_id = None ):
- return self.get_profile_bool_value( 'snapshots.user_backup.ionice', False, profile_id )
-
- def set_run_ionice_from_user_enabled( self, value, profile_id = None ):
- self.set_profile_bool_value( 'snapshots.user_backup.ionice', value, profile_id )
-
def is_no_on_battery_enabled( self, profile_id = None ):
return self.get_profile_bool_value( 'snapshots.no_on_battery', False, profile_id )
@@ -820,9 +808,7 @@ class Config( configfile.ConfigFileWithProfiles ):
profile=''
if '1' != profile_id:
profile = "--profile-id %s" % profile_id
- cmd = "/usr/bin/backintime %s --backup-job >/dev/null 2>&1" % profile
- if self.is_run_ionice_from_cron_enabled():
- cmd = 'ionice -c2 -n7 ' + cmd
+ cmd = "${PREFIX}/bin/backintime %s --backup-job >/dev/null 2>&1" % profile
if self.is_run_nice_from_cron_enabled( profile_id ):
cmd = 'nice -n 19 ' + cmd
cron_line = cron_line.replace( '{cmd}', cmd )

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-common_logger_py,v 1.1 2012/05/29 10:21:56 ajacoutot Exp $
Prepend the short hostname to the log line to have a compliant syslog(3)
entry allowing remote logging based on the hostname.
--- common/logger.py.orig Tue May 29 12:14:41 2012
+++ common/logger.py Tue May 29 12:18:58 2012
@@ -18,10 +18,12 @@
import syslog
import os
+import socket
def openlog():
name = os.getenv( 'LOGNAME', 'unknown' )
- syslog.openlog( "backintime (%s)" % name )
+ host = socket.gethostname().split('.')[0]
+ syslog.openlog( "%s backintime (%s)" % ( host, name ) )
def closelog():
syslog.closelog()

View File

@ -1,42 +0,0 @@
$OpenBSD: patch-common_snapshots_py,v 1.3 2011/09/15 06:54:41 ajacoutot Exp $
OpenBSD does not support extended attributes & ACLs.
Needs the "--link" option from gcp(1) for incremental backups.
--- common/snapshots.py.orig Sun Jun 5 13:57:48 2011
+++ common/snapshots.py Wed Sep 14 15:17:46 2011
@@ -561,14 +561,14 @@ class Snapshots:
#cmd = "chmod -R u+rwx \"%s\"" % path
cmd = "find \"%s\" -type d -exec chmod u+wx {} \\;" % path #Debian patch
self._execute( cmd )
- cmd = "rm -rfv \"%s\"" % path
+ cmd = "rm -rf \"%s\"" % path
self._execute( cmd )
def copy_snapshot( self, snapshot_id, new_folder ):
'''Copies a known snapshot to a new location'''
current.path = self.get_snapshot_path( snapshot_id )
#need to implement hardlinking to existing folder -> cp newest snapshot folder, rsync -aEAXHv --delete to this folder
- cmd = "cp -dRl \"%s\"* \"%s\"" % ( current_path, new_folder )
+ cmd = "gcp -dRl \"%s\"* \"%s\"" % ( current_path, new_folder )
logger.info( '%s is copied to folder %s' %( snapshot_id, new_folder ) )
self._execute( cmd )
@@ -1092,7 +1092,7 @@ class Snapshots:
self._execute( "find \"%s\" -type d -exec chmod u+wx {} \\;" % prev_snapshot_path ) #Debian patch
#clone snapshot
- cmd = "cp -aRl \"%s\"* \"%s\"" % ( prev_snapshot_path, new_snapshot_path_to )
+ cmd = "gcp -aRl \"%s\"* \"%s\"" % ( prev_snapshot_path, new_snapshot_path_to )
self.append_to_take_snapshot_log( '[I] ' + cmd, 3 )
cmd_ret_val = self._execute( cmd )
self.append_to_take_snapshot_log( "[I] returns: %s" % cmd_ret_val, 3 )
@@ -1141,7 +1141,7 @@ class Snapshots:
#backup config file
logger.info( 'Save config file' )
self.set_take_snapshot_message( 0, _('Save config file ...') )
- self._execute( 'cp %s %s' % (self.config._LOCAL_CONFIG_PATH, new_snapshot_path_to + '..') )
+ self._execute( 'gcp %s %s' % (self.config._LOCAL_CONFIG_PATH, new_snapshot_path_to + '..') )
#save permissions for sync folders
logger.info( 'Save permissions' )

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-common_tools_py,v 1.2 2010/11/05 16:39:10 ajacoutot Exp $
--- common/tools.py.orig Tue Oct 26 22:33:06 2010
+++ common/tools.py Fri Nov 5 16:07:00 2010
@@ -111,7 +111,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

View File

@ -1,5 +0,0 @@
Back In Time is a simple backup tool for Unix 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.

View File

@ -1,81 +0,0 @@
@comment $OpenBSD: PLIST,v 1.3 2011/03/03 13:49:27 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/backintime/plugins/userscriptsplugin.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/bs/
share/locale/bs/LC_MESSAGES/
share/locale/bs/LC_MESSAGES/backintime.mo
share/locale/ca/LC_MESSAGES/backintime.mo
share/locale/cs/LC_MESSAGES/backintime.mo
share/locale/da/LC_MESSAGES/backintime.mo
share/locale/de/LC_MESSAGES/backintime.mo
share/locale/el/LC_MESSAGES/backintime.mo
share/locale/en_CA/
share/locale/en_CA/LC_MESSAGES/
share/locale/en_CA/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/fi/LC_MESSAGES/backintime.mo
share/locale/fo/
share/locale/fo/LC_MESSAGES/
share/locale/fo/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/hr/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/ja/LC_MESSAGES/backintime.mo
share/locale/jv/
share/locale/jv/LC_MESSAGES/
share/locale/jv/LC_MESSAGES/backintime.mo
share/locale/ko/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/nn/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/ro/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/sr/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/tr/LC_MESSAGES/backintime.mo
share/locale/uk/LC_MESSAGES/backintime.mo
share/locale/zh_CN/LC_MESSAGES/backintime.mo
share/locale/zh_TW/LC_MESSAGES/backintime.mo

View File

@ -1,22 +0,0 @@
# $OpenBSD: Makefile,v 1.9 2012/11/22 13:33:49 ajacoutot Exp $
COMMENT= simple backup tool -- GNOME UI
PKGNAME= backintime-gnome-${V}
REVISION= 2
CATEGORIES= x11
WRKSRC= ${WRKDIST}/gnome
SUBST_FILES= backintime-gnome
CONFIGURE_ARGS= --no-check
RUN_DEPENDS= sysutils/backintime/common>=${V} \
textproc/meld \
x11/gnome/py-gnome \
devel/py-notify \
devel/desktop-file-utils
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (backintime-1.0.8_src.tar.gz) = Z2x0PLZP3GRsKQxi5FZA/w==
RMD160 (backintime-1.0.8_src.tar.gz) = JRbr31KKPMrIyZOtJqXj5NiRELw=
SHA1 (backintime-1.0.8_src.tar.gz) = 2WKzdCM4CZGY7XY68iBqrEK6+uY=
SHA256 (backintime-1.0.8_src.tar.gz) = +4NzauBnGw1jRoqdOaKTNDINk98ASRHMGSsZid+X2TE=
SIZE (backintime-1.0.8_src.tar.gz) = 291473

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-gnome_backintime-gnome,v 1.2 2010/11/05 16:39:10 ajacoutot Exp $
--- gnome/backintime-gnome.orig Sun Jul 4 14:30:19 2010
+++ gnome/backintime-gnome Fri Nov 5 16:14:06 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 $*

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-gnome_plugins_gnomeplugin_py,v 1.4 2012/11/22 14:26:28 jasper Exp $
Fix abort() (don't leave thread without enter first).
--- gnome/plugins/gnomeplugin.py.orig Thu Nov 22 14:31:57 2012
+++ gnome/plugins/gnomeplugin.py Thu Nov 22 14:32:10 2012
@@ -72,6 +72,7 @@ class GnomePlugin( pluginmanager.Plugin ):
logger.info( '[GnomePlugin.Systray.run]' )
gtk.gdk.threads_init()
+ gtk.gdk.threads_enter()
display = gtk.gdk.display_get_default()
if display is None:

View File

@ -1,40 +0,0 @@
$OpenBSD: patch-gnome_settingsdialog_glade,v 1.3 2011/09/15 06:54:41 ajacoutot Exp $
--- gnome/settingsdialog.glade.orig Wed Sep 14 15:33:09 2011
+++ gnome/settingsdialog.glade Wed Sep 14 15:33:24 2011
@@ -1326,36 +1326,6 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="cb_run_ionice_from_cron">
- <property name="label" translatable="yes">Run 'ionice' as cron job (default: enabled)</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="cb_run_ionice_from_user">
- <property name="label" translatable="yes">Run 'ionice' when taking a manual snapshot (default: disabled)</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- <child>
<object class="GtkCheckButton" id="cb_preserve_acl">
<property name="label" translatable="yes">Preserve ACL</property>
<property name="visible">True</property>

View File

@ -1,34 +0,0 @@
$OpenBSD: patch-gnome_settingsdialog_py,v 1.3 2011/09/15 06:54:41 ajacoutot Exp $
--- gnome/settingsdialog.py.orig Sun Jun 5 13:42:25 2011
+++ gnome/settingsdialog.py Wed Sep 14 15:31:23 2011
@@ -269,8 +269,6 @@ class SettingsDialog(object):
#nice & ionice
self.cb_run_nice_from_cron = get('cb_run_nice_from_cron')
- self.cb_run_ionice_from_cron = get('cb_run_ionice_from_cron')
- self.cb_run_ionice_from_user = get('cb_run_ionice_from_user')
self.cb_preserve_acl = get('cb_preserve_acl')
self.cb_preserve_xattr = get('cb_preserve_xattr')
self.cb_copy_unsafe_links = get('cb_copy_unsafe_links')
@@ -497,12 +495,6 @@ class SettingsDialog(object):
#run 'nice' from cron
self.cb_run_nice_from_cron.set_active(self.config.is_run_nice_from_cron_enabled( self.profile_id ))
- #run 'ionice' from cron
- self.cb_run_ionice_from_cron.set_active(self.config.is_run_ionice_from_cron_enabled( self.profile_id ))
-
- #run 'ionice' from user
- self.cb_run_ionice_from_user.set_active(self.config.is_run_ionice_from_user_enabled( self.profile_id ))
-
#don't run when on battery
self.cb_no_on_battery.set_active( self.config.is_no_on_battery_enabled( self.profile_id ) )
@@ -589,8 +581,6 @@ class SettingsDialog(object):
#expert options
#self.config.set_per_directory_schedule( self.cb_per_directory_schedule.get_active() )
self.config.set_run_nice_from_cron_enabled( self.cb_run_nice_from_cron.get_active(), self.profile_id )
- self.config.set_run_ionice_from_cron_enabled( self.cb_run_ionice_from_cron.get_active(), self.profile_id )
- self.config.set_run_ionice_from_user_enabled( self.cb_run_ionice_from_user.get_active(), self.profile_id )
self.config.set_no_on_battery_enabled( self.cb_no_on_battery.get_active(), self.profile_id )
self.config.set_preserve_acl( self.cb_preserve_acl.get_active(), self.profile_id )

View File

@ -1,5 +0,0 @@
Back In Time is a simple backup tool for Unix 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.

View File

@ -1,21 +0,0 @@
@comment $OpenBSD: PLIST,v 1.4 2011/09/15 09:05:22 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/logviewdialog.glade
share/backintime/gnome/logviewdialog.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
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database