This repository Explore Gist Blog Help TheChymera 1 Unwatch Star 0Fork 0PUBLIC TheChymera/chymeric branch: master chymeric / net-p2p / btsync / btsync-1.1.70.ebuild TheChymera a day ago systemd support 1 contributor file 41 lines (31 sloc) 1.071 kb EditRawBlameHistory Delete 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 # Copyright (C) 2013 Jonathan Vasquez # Distributed under the terms of the GNU General Public License v2 EAPI="4" inherit systemd DESCRIPTION="Automatically sync files via secure, distributed technology." HOMEPAGE="http://labs.bittorrent.com/experiments/sync.html" 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 )" RESTRICT="mirror strip" LICENSE="BitTorrent" SLOT="0" KEYWORDS="amd64 ~x86 ~arm ~ppc" IUSE="" DEPEND="" RDEPEND="${DEPEND}" QA_PREBUILT="opt/btsync/${PN}" S="${WORKDIR}" src_install() { mkdir -p ${D}/opt/${PN} && cd ${D}/opt/${PN} mkdir -p ${D}/etc/{init.d,${PN}} cp ${S}/btsync . cp ${S}/LICENSE.TXT . cp ${FILESDIR}/config ${D}/etc/${PN} cp ${FILESDIR}/init.d/${PN} ${D}/etc/init.d/ # Set more secure permissions chmod 755 ${D}/etc/init.d/btsync systemd_dounit "${FILESDIR}"/${PN}.service } Status API Training Shop Blog About © 2013 GitHub, Inc. Terms Privacy Security Contact