diff options
author | Aaron Miller | 2017-10-11 16:01:54 -0700 |
---|---|---|
committer | Aaron Miller | 2017-10-11 16:01:54 -0700 |
commit | d07eb9305118a44e89e3f9de3cb2561a5dc73e73 (patch) | |
tree | 206a2f8d1d2aad97ae41a121725374ebd109c4c5 | |
parent | 7fdd5b6146d424e4105e87145a4de10f9dad0cb4 (diff) | |
download | aur-d07eb9305118a44e89e3f9de3cb2561a5dc73e73.tar.gz |
use systemd start/stop
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = crashplan-pro pkgdesc = An business online/offsite backup solution pkgver = 4.9.0 - pkgrel = 2 + pkgrel = 3 url = http://www.crashplan.com/business install = crashplan-pro.install arch = i686 @@ -4,7 +4,7 @@ # Contributor: Bill Durr <billyburly [at] gmail [dot] com> pkgname=crashplan-pro pkgver=4.9.0 -pkgrel=2 +pkgrel=3 pkgdesc="An business online/offsite backup solution" url="http://www.crashplan.com/business" arch=('i686' 'x86_64') @@ -70,10 +70,16 @@ package() { echo "" >> $srcdir/crashplan-install/scripts/run.conf echo "export LC_ALL=$LANG" >> $srcdir/crashplan-install/scripts/run.conf + # 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" + install -D -m 644 $srcdir/crashplan-install/install.vars $pkgdir/opt/$pkgname/install.vars -#Removed as of Version 4.8.0 as the EULA is no longer included in the source + + #Removed as of Version 4.8.0 as the EULA is no longer included in the source #install -D -m 644 $srcdir/crashplan-install/EULA.txt $pkgdir/opt/$pkgname/EULA.txt #install -D -m 644 $srcdir/crashplan-install/EULA.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanDesktop $pkgdir/opt/$pkgname/bin/CrashPlanDesktop install -D -m 644 $srcdir/crashplan-install/scripts/run.conf $pkgdir/opt/$pkgname/bin/run.conf install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanEngine $pkgdir/opt/$pkgname/bin/CrashPlanEngine |