Include default config file in package; Install to /etc/timeshift.json;

This commit is contained in:
Tony George 2017-09-24 20:38:54 +05:30
parent 0df0325665
commit 0e8c140d21
2 changed files with 42 additions and 13 deletions

24
files/timeshift.json Normal file
View File

@ -0,0 +1,24 @@
{
"backup_device_uuid" : "",
"parent_device_uuid" : "",
"do_first_run" : "true",
"btrfs_mode" : "false",
"include_btrfs_home" : "false",
"stop_cron_emails" : "true",
"schedule_monthly" : "false",
"schedule_weekly" : "false",
"schedule_daily" : "false",
"schedule_hourly" : "false",
"schedule_boot" : "false",
"count_monthly" : "2",
"count_weekly" : "3",
"count_daily" : "5",
"count_hourly" : "6",
"count_boot" : "5",
"snapshot_size" : "0",
"snapshot_count" : "0",
"exclude" : [
],
"exclude-apps" : [
]
}

View File

@ -1,4 +1,5 @@
prefix=/usr
sysconfdir=/etc
bindir=$(prefix)/bin
sharedir=$(prefix)/share
localedir=$(sharedir)/locale
@ -41,6 +42,7 @@ install:
mkdir -p "$(DESTDIR)$(mandir)"
mkdir -p "$(DESTDIR)$(man1dir)"
mkdir -p "$(DESTDIR)$(launcherdir)"
mkdir -p "$(DESTDIR)$(sysconfdir)"
mkdir -p "$(DESTDIR)$(sharedir)/${app_name}"
mkdir -p "$(DESTDIR)$(sharedir)/icons"
mkdir -p "$(DESTDIR)$(localedir)/bg/LC_MESSAGES"
@ -66,6 +68,9 @@ install:
# launcher
install -m 0755 ${app_name}-gtk.desktop "$(DESTDIR)$(launcherdir)"
# config
install -m 0755 ../files/${app_name}.json "$(DESTDIR)$(sysconfdir)"
# app icons
cp -dpr --no-preserve=ownership -t "$(DESTDIR)$(sharedir)/icons" ./share/icons/*
chmod --recursive 0755 $(DESTDIR)$(sharedir)/icons/*