1
0
mirror of synced 2024-09-22 00:21:46 +02:00
TheChymera-overlay/net-p2p/btsync/btsync-1.1.70.ebuild

41 lines
1.0 KiB
Bash
Raw Normal View History

2013-09-28 02:56:52 +02:00
# Copyright (C) 2013 Jonathan Vasquez
2013-09-28 01:18:49 +02:00
# Distributed under the terms of the GNU General Public License v2
2013-09-28 02:56:52 +02:00
EAPI="4"
2013-09-28 01:18:49 +02:00
2013-09-28 02:56:52 +02:00
inherit systemd
2013-09-28 01:18:49 +02:00
2013-09-28 02:56:52 +02:00
DESCRIPTION="Automatically sync files via secure, distributed technology."
2013-09-28 01:18:49 +02:00
HOMEPAGE="http://labs.bittorrent.com/experiments/sync.html"
2013-09-28 02:56:52 +02:00
SRC_URI="
amd64? ( http://syncapp.bittorrent.com/${PV}/${PN}_x64-${PV}.tar.gz )
x86? ( http://syncapp.bittorrent.com/${PV}/${PN}_i386-${PV}.tar.gz )
arm? ( http://syncapp.bittorrent.com/${PV}/${PN}_arm-${PV}.tar.gz )
ppc? ( http://syncapp.bittorrent.com/${PV}/${PN}_powerpc-${PV}.tar.gz )"
2013-09-28 01:18:49 +02:00
2013-09-28 02:56:52 +02:00
RESTRICT="mirror strip"
2013-09-28 01:18:49 +02:00
LICENSE="BitTorrent"
SLOT="0"
2013-09-28 02:56:52 +02:00
KEYWORDS="amd64 ~x86 ~arm ~ppc"
2013-09-28 01:18:49 +02:00
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
2013-09-28 02:56:52 +02:00
QA_PREBUILT="opt/btsync/${PN}"
2013-09-28 01:18:49 +02:00
2013-09-28 02:56:52 +02:00
S="${WORKDIR}"
2013-09-28 01:18:49 +02:00
src_install() {
2013-09-28 02:56:52 +02:00
mkdir -p ${D}/opt/${PN} && cd ${D}/opt/${PN}
mkdir -p ${D}/etc/{init.d,${PN}}
2013-09-28 01:18:49 +02:00
2013-09-28 02:56:52 +02:00
cp ${S}/btsync .
cp ${S}/LICENSE.TXT .
cp ${FILESDIR}/config ${D}/etc/${PN}
cp ${FILESDIR}/init.d/${PN} ${D}/etc/init.d/
2013-09-28 01:18:49 +02:00
2013-09-28 02:56:52 +02:00
# Set more secure permissions
chmod 755 ${D}/etc/init.d/btsync
systemd_dounit "${FILESDIR}"/${PN}.service
2013-09-28 01:18:49 +02:00
}