From c87c95454935902c93cbefc8cc5d862a9950e137 Mon Sep 17 00:00:00 2001 From: Donald Webster Date: Wed, 11 Oct 2017 14:43:31 -0700 Subject: [PATCH] Patch restart file, fix deps and add .gitignore. --- .SRCINFO | 4 +++- .gitignore | 4 ++++ PKGBUILD | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.SRCINFO b/.SRCINFO index 0b2630d..deee19b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,9 @@ +# Generated by mksrcinfo v8 +# Wed Oct 11 22:36:32 UTC 2017 pkgbase = crashplan-pro pkgdesc = An business online/offsite backup solution pkgver = 4.9.0 - pkgrel = 2 + pkgrel = 10 url = http://www.crashplan.com/business install = crashplan-pro.install arch = i686 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7cdeff9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/*.xz +/*.tgz +/pkg/ +/src/ diff --git a/PKGBUILD b/PKGBUILD index a412b12..0ece37d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ # Contributor: Bill Durr pkgname=crashplan-pro pkgver=4.9.0 -pkgrel=2 +pkgrel=10 pkgdesc="An business online/offsite backup solution" url="http://www.crashplan.com/business" arch=('i686' 'x86_64') @@ -64,6 +64,10 @@ package() { rm $pkgdir/opt/$pkgname/*64.so fi + # Use systemctl start/stop commands when it attempts to auto-update + sed -i 's/^$ENGINE_SCRIPT stop.*/systemctl stop crashplan-pro >> $logfile 2>\&1/g' "$pkgdir/opt/${pkgname}/bin/restartLinux.sh" + sed -i 's/^$ENGINE_SCRIPT start.*/systemctl start crashplan-pro >> $logfile 2>\&1/g' "$pkgdir/opt/${pkgname}/bin/restartLinux.sh" + # Fix for encoding troubles (CrashPlan ticket 178827) # Make sure the daemon is running using the same localization as # the (installing) user -- 2.14.2