From ed7e3ef10437f3e276ad61aef863cbfd2a0ec467 Mon Sep 17 00:00:00 2001 From: JuhaniImberg Date: Thu, 7 May 2015 16:51:45 +0300 Subject: [PATCH] New package: btsync-2.0.105 --- srcpkgs/btsync/files/btsync/run | 2 ++ srcpkgs/btsync/template | 47 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 srcpkgs/btsync/files/btsync/run create mode 100644 srcpkgs/btsync/template diff --git a/srcpkgs/btsync/files/btsync/run b/srcpkgs/btsync/files/btsync/run new file mode 100644 index 0000000000..531e8b547f --- /dev/null +++ b/srcpkgs/btsync/files/btsync/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec btsync --nodaemon --config /etc/btsync.conf \ No newline at end of file diff --git a/srcpkgs/btsync/template b/srcpkgs/btsync/template new file mode 100644 index 0000000000..62fe02687d --- /dev/null +++ b/srcpkgs/btsync/template @@ -0,0 +1,47 @@ +pkgname=btsync +version=2.0.105 +revision=1 +repository=nonfree +short_desc="Automatically sync files via secure, distributed technology" +maintainer="Juhani Imberg " +license="Propietary license" +homepage="https://www.getsync.com" + +case "${XBPS_TARGET_MACHINE}" in +x86_64) + _type=x64 + _hash=9e1427b7a6c6e960a378b97ac458ad53c445457ed0e5c8bf693f446597377b78 + ;; +i686) + _type=i386 + _hash=4d446255ff6332da9a244737d6c20e7dcd32d24a8eaabffbaf73147e5898ed8f + ;; +arm*) + _type=arm + _hash=c63fccb76ba3f5dd1197f33bfb8427747faaca9c030f9d8c7f5dfc016d293807 + ;; +esac + +distfiles="https://download-cdn.getsyncapp.com/${version}/linux-${_type}/BitTorrent-Sync_${_type}.tar.gz" +checksum="$_hash" +create_wrksrc=true + +do_install() { + vbin btsync + vlicense LICENSE.TXT + vdoc README + + vmkdir etc + + vmkdir var/lib/btsync + touch ${DESTDIR}/var/lib/btsync/.keep + + ./btsync --dump-sample-config \ + | sed 's:/home/user/\.sync:/var/lib/btsync:' \ + | sed 's:btsync/btsync.pid:btsync.pid:' \ + | sed 's:\/\/ "pid_file": "pid_file":' \ + | sed 's:\/\/ "storage_path": "storage_path":' \ + > "${DESTDIR}/etc/btsync.conf" + + vsv btsync +}