Package Details: crashplan-pro-e 3.6.4-1

Git Clone URL: https://aur.archlinux.org/crashplan-pro-e.git (read-only)
Package Base: crashplan-pro-e
Description: An enterprise online/offsite backup solution
Upstream URL: http://www.crashplan.com/enterprise
Licenses: custom
Submitter: None
Maintainer: adx
Last Packager: adx
Votes: 3
Popularity: 0.000000
First Submitted: 2013-02-01 19:47
Last Updated: 2015-06-09 01:04

Latest Comments

aharter commented on 2017-03-27 09:04

According to this link (https://support.code42.com/Administrator/5/Planning_And_Installing/Code42_Platform_Installers#Version_5.4.2_2), the latest version is 5.4.2, which only works for enterprise customers.
I made a patch for it.
!!!Please be aware, that it will use the new electron UI!!!
I haven't tested the Java UI. Whoever is interested, setting VERSION_5_UI=false in run.conf will activate it.

From ed2fc88dea016ffadb17000fc8d5a9a16b364cb8 Mon Sep 17 00:00:00 2001
From: Andreas Harter <aur@andreas-harter.de>
Date: Sun, 26 Mar 2017 12:27:05 +0100
Subject: [PATCH] Update to version 5.4.2

---
CrashPlanDesktop-run.conf.patch | 8 -----
PKGBUILD | 68 +++++++++++++++++++++++------------------
crashplan-pro-e.service | 10 +++---
3 files changed, 43 insertions(+), 43 deletions(-)
delete mode 100644 CrashPlanDesktop-run.conf.patch

diff --git a/CrashPlanDesktop-run.conf.patch b/CrashPlanDesktop-run.conf.patch
deleted file mode 100644
index 4523d8e..0000000
--- a/CrashPlanDesktop-run.conf.patch
+++ /dev/null
@@ -1,8 +0,0 @@
-diff -aur CrashPlanPROe-install.orig/scripts/run.conf CrashPlanPROe-install/scripts/run.conf
---- CrashPlanPROe-install.orig/scripts/run.conf 2014-02-19 18:17:19.000000000 -0500
-+++ CrashPlanPROe-install/scripts/run.conf 2014-09-19 14:25:20.901002692 -0400
-@@ -1,2 +1,2 @@
- SRV_JAVA_OPTS="-Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -Xmx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false"
--GUI_JAVA_OPTS="-Dfile.encoding=UTF-8 -Dapp=CrashPlanDesktop -DappBaseName=CrashPlan -Xms20m -Xmx512m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false"
-\ No newline at end of file
-+GUI_JAVA_OPTS="-Dfile.encoding=UTF-8 -Dapp=CrashPlanDesktop -DappBaseName=CrashPlan -Xms20m -Xmx512m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0 -Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -Dorg.eclipse.swt.browser.DefaultType=mozilla"
diff --git a/PKGBUILD b/PKGBUILD
index a4f4633..637bbf7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Egon Geerardyn <egon [dot] geerardyn [at] gmail [dot] com>
# Contributor: Bill Durr <billyburly [at] gmail [dot] com>
pkgname=crashplan-pro-e
-pkgver=3.6.4
+pkgver=5.4.2
pkgrel=1
pkgdesc="An enterprise online/offsite backup solution"
url="http://www.crashplan.com/enterprise"
@@ -14,15 +14,16 @@ makedepends=('grep' 'cpio' 'gzip')
optdepends=('swt: needed by some to open the GUI')
backup=()
install=crashplan-pro-e.install
-source=(http://download.crashplan.com/installs/linux/install/CrashPlanPROe/CrashPlanPROe_${pkgver}_Linux.tgz
- crashplan-pro-e.service
- CrashPlanDesktop-run.conf.patch)
-sha256sums=('eac1742a554e4410f4877b506effbd577a491ccbc70c173915d9293077329ee3'
- '1ca45875025fcf8a4ec6e6f9588807453f65da38b6a0e06c7bb94feb66edda9c'
- '1ec0c53ab7bd942e24b9691e178afa397755742a04718ccb88e2bd8af8a009ac')
+source=(https://download.code42.com/installs/linux/install/Code42CrashPlan/Code42CrashPlan_${pkgver}_Linux.tgz
+ crashplan-pro-e.service)
+sha256sums=('ca6b7dff8148ee18df8cd26c74d27e8f419d9e6fff44474a3612440921173eb4'
+ '378495b2c1daf647c818897140c4b377e7122bc8f266de6af65c5ff3d80c3e48')
+
+# The electron UI uses relative paths starting with "crashplan".
+commonpath="/opt/$pkgname/crashplan"

build() {
- cd $srcdir/CrashPlanPROe-install
+ cd $srcdir/crashplan-install

echo ""
echo "You must review and agree to the EULA before using Crashplan PROe."
@@ -34,51 +35,58 @@ build() {
echo "" > install.vars
echo "JAVACOMMON=`which java`" >> install.vars
echo "#APP_BASENAME=CrashPlan" >> install.vars
- echo "TARGETDIR=/opt/$pkgname" >> install.vars
+ echo "TARGETDIR=$commonpath" >> install.vars
echo "BINSDIR=" >> install.vars
- echo "MANIFESTDIR=/opt/$pkgname/manifest" >> install.vars
+ echo "MANIFESTDIR=$commonpath/manifest" >> install.vars
echo "INITDIR=" >> install.vars
echo "RUNLVLDIR=" >> install.vars
NOW=`date +%Y%m%d`
echo "INSTALLDATE=$NOW" >> install.vars

- sed -imod "s|Exec=.*|Exec=/opt/$pkgname/bin/CrashPlanDesktop|" scripts/CrashPlan.desktop
- sed -imod "s|Icon=.*|Icon=/opt/$pkgname/skin/icon_app_64x64.png|" scripts/CrashPlan.desktop
+ sed -imod "s|Exec=.*|Exec=$commonpath/bin/CrashPlanDesktop|" scripts/CrashPlan.desktop
+ sed -imod "s|Icon=.*|Icon=$commonpath/skin/icon_app_64x64.png|" scripts/CrashPlan.desktop
sed -imod "s|Categories=.*|Categories=System;|" scripts/CrashPlan.desktop
-
- patch -p1 -i $srcdir/CrashPlanDesktop-run.conf.patch
}

package() {
- mkdir -p $pkgdir/opt/$pkgname
- cd $pkgdir/opt/$pkgname
+ mkdir -p $pkgdir/$commonpath
+ cd $pkgdir/$commonpath

- cat $srcdir/CrashPlanPROe-install/CrashPlanPROe_$pkgver.cpi | gzip -d -c - | cpio -i --no-preserve-owner
- chmod 777 $pkgdir/opt/$pkgname/log
- sed -i "s|<manifestPath>manifest</manifestPath>|<manifestPath>/opt/$pkgname/manifest</manifestPath>|g" $pkgdir/opt/$pkgname/conf/default.service.xml
+ cat $srcdir/crashplan-install/Code42CrashPlan_$pkgver.cpi | gzip -d -c - | cpio -i --no-preserve-owner
+ chmod 777 $pkgdir/$commonpath/log
+ sed -i "s|<manifestPath>manifest</manifestPath>|<manifestPath>/$commonpath/manifest</manifestPath>|g" $pkgdir/$commonpath/conf/default.service.xml

mkdir -p $pkgdir/usr/bin
- ln -s "/opt/$pkgname/bin/CrashPlanDesktop" $pkgdir/usr/bin/CrashPlanDesktop
+ ln -s "$commonpath/bin/CrashPlanDesktop" $pkgdir/usr/bin/CrashPlanDesktop

# Fix for 32 bit: 64 bit libs cannot be stripped from symbols
# so we just remove those libs
if [ "$CARCH" = "i686" ]; then
- rm $pkgdir/opt/$pkgname/*64.so
+ rm $pkgdir/$commonpath/crashplan/*64.so
fi

# Fix for encoding troubles (CrashPlan ticket 178827)
# Make sure the daemon is running using the same localization as
# the (installing) user
- echo "" >> $srcdir/CrashPlanPROe-install/scripts/run.conf
- echo "export LC_ALL=$LANG" >> $srcdir/CrashPlanPROe-install/scripts/run.conf
+ echo "" >> $srcdir/crashplan-install/scripts/run.conf
+ echo "export LC_ALL=$LANG" >> $srcdir/crashplan-install/scripts/run.conf
+
+ # Setup correct electron
+ if [ "$CARCH" = "i686" ]; then
+ mv electron-ia32/ electron/
+ rm -r electron-x64
+ else
+ mv electron-x64/ electron/
+ rm -r electron-ia32
+ fi
+ mv -v *.asar electron/resources
+ chmod 755 electron/crashplan

- install -D -m 644 $srcdir/CrashPlanPROe-install/install.vars $pkgdir/opt/$pkgname/install.vars
- install -D -m 644 $srcdir/CrashPlanPROe-install/EULA.txt $pkgdir/opt/$pkgname/EULA.txt
- install -D -m 644 $srcdir/CrashPlanPROe-install/EULA.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m 755 $srcdir/CrashPlanPROe-install/scripts/CrashPlanDesktop $pkgdir/opt/$pkgname/bin/CrashPlanDesktop
- install -D -m 644 $srcdir/CrashPlanPROe-install/scripts/run.conf $pkgdir/opt/$pkgname/bin/run.conf
- install -D -m 755 $srcdir/CrashPlanPROe-install/scripts/CrashPlanEngine $pkgdir/opt/$pkgname/bin/CrashPlanEngine
- install -D -m 755 $srcdir/CrashPlanPROe-install/scripts/CrashPlan.desktop $pkgdir/usr/share/applications/crashplan.desktop
+ install -D -m 644 $srcdir/crashplan-install/install.vars $pkgdir/$commonpath/install.vars
+ install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanDesktop $pkgdir/$commonpath/bin/CrashPlanDesktop
+ install -D -m 644 $srcdir/crashplan-install/scripts/run.conf $pkgdir/$commonpath/bin/run.conf
+ install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanEngine $pkgdir/$commonpath/bin/CrashPlanEngine
+ install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlan.desktop $pkgdir/usr/share/applications/crashplan.desktop

# systemd unit
install -D -m 644 $srcdir/crashplan-pro-e.service $pkgdir/usr/lib/systemd/system/crashplan-pro-e.service
diff --git a/crashplan-pro-e.service b/crashplan-pro-e.service
index 4ca8ae7..d6299f5 100644
--- a/crashplan-pro-e.service
+++ b/crashplan-pro-e.service
@@ -5,13 +5,13 @@ After=network.target
[Service]

Type=forking
-PIDFile=/opt/crashplan-pro-e/CrashPlanEngine.pid
-EnvironmentFile=/opt/crashplan-pro-e/bin/run.conf
+PIDFile=/opt/crashplan-pro-e/crashplan/CrashPlanEngine.pid
+EnvironmentFile=/opt/crashplan-pro-e/crashplan/bin/run.conf

-WorkingDirectory=/opt/crashplan-pro-e
+WorkingDirectory=/opt/crashplan-pro-e/crashplan

-ExecStart=/opt/crashplan-pro-e/bin/CrashPlanEngine start
-ExecStop=/opt/crashplan-pro-e/bin/CrashPlanEngine stop
+ExecStart=/opt/crashplan-pro-e/crashplan/bin/CrashPlanEngine start
+ExecStop=/opt/crashplan-pro-e/crashplan/bin/CrashPlanEngine stop

[Install]
WantedBy=multi-user.target
--
2.12.1


kaptoxic commented on 2017-03-19 02:06

It seems this package should in principle be modified to look similar to the "crashplan-pro" one (which is up to date).

jdkdonkaur commented on 2016-06-14 16:17

Seems like this installed fine until the client auto downloaded and installed the new version 3.7.0. After this the backend no longer seems to run properly. Can you update to the new version? or is there someway to disable downloading of the new version?

Thanks!

Anonymous comment on 2015-01-06 18:33

Will do :)

hoban commented on 2015-01-05 17:45

Please update, a new version is out.
Thanks!

adx commented on 2014-09-19 18:42

A new version has been uploaded. This also includes a patch to fix the crash of CrashPlanDesktop.

MikeDacre commented on 2014-07-24 23:48

I figured it out, it is the issue reported here: https://support.code42.com/CrashPlan/Latest/Troubleshooting/CrashPlan_Client_Closes_In_Some_Linux_Installations

Would you be willing to include a patch for the bin/run.conf file to match that fix? I don't think it will affect anyone not suffering from the bug.

MikeDacre commented on 2014-07-24 23:01

For some reason the GUI doesn't launch for me. Does anyone else have the same issue?

I see the splash screen and then the application never launches.

adx commented on 2013-11-19 13:55

I meant to do that when I adopted the package and forgot. Thanks for the reminder. It's been updated.

hoban commented on 2013-11-15 21:00

Please update crashplan.install to indicate that the sysctl setting 'fs.inotify.max_user_watches' should be made to /etc/sysctl.d/99-sysctl.conf or some other file within /etc/sysctl.d/, rather than /etc/sysctl.conf as is currently indicated.

On new installs, with systemd, if this setting isn't made in the correct spot, it can lead to issues such as not being able to log in if the gnome screensaver is loaded and other odd behavior.

Source: https://wiki.archlinux.org/index.php/sysctl#Configuration
"Note: From version 207, systemd only applies settings from /etc/sysctl.d/* and /usr/lib/sysctl.d/*. If you had customized /etc/sysctl.conf, you need to rename it as /etc/sysctl.d/99-sysctl.conf."