1
0
Fork 0

pulled from raphael

This commit is contained in:
Horea Christian 2015-02-11 19:40:07 +01:00
parent 958b0f31d3
commit e8a068e820
7 changed files with 183 additions and 0 deletions

View File

@ -0,0 +1,6 @@
DIST btsync_i386-1.1.82.tar.gz 1375007 SHA256 1b163881631d008ea5472b1f03a49e96f2a107b9565c5d8ae48124042e3a4def SHA512 2f7f24989412945f1da18d88760e955fa55ca8e97a75e2e72e48a001e6a3d9253a7c0856e5b8dfc5bef9dcd8c405f76f1aed6f05fdb0ae7f2bdffe0c6f90a1a8 WHIRLPOOL daf2af288b1e55bd3700bfba600eab9b975ad3701cf41b921554bcc5760096c8afba90ef70a3e4972d73eaf92fd82815f0d19d36de55547529f0eba175b094bd
DIST btsync_i386-1.3.105.tar.gz 3442149 SHA256 4a0c79bc9cc26091971c8bc886e389d5666cb6af2f44925cd859b759d75344a0 SHA512 3dff61669ad2953e0cd5bf5915e1858c5e2840d317d226069868c7b252d8e55ff5ea0ef8162509ef2d8f8c757fa3c3ad86f34aea010ce20636d8079b04b84b87 WHIRLPOOL 418bee6a968a0d93dbf1e342360018f7083f1a0208ef120882dfdbcd8acdc4a5ef174e21ab4809a85b985a04f24b369b597bb33a02e941fb4194f0dbb36330b3
DIST btsync_i386-1.3.94.tar.gz 2157170 SHA256 d39dbaf08c66f2dcdcf9c22c9a95727ba7da2030b092c5be1922f548190fb482 SHA512 d1abf01d7c5191590a50cb3445cae95cb0bcda8a1705dde3452eae588fa00995b8c766abb5a203dc5e6a073293f7db437a851c153f1f43cfe03c249772e66f02 WHIRLPOOL e1859c305f131b90e2a9a2d61f951a8a644ad3ca9b6039bc0d20ae53c8a5bb9784e4cc635727c1e25fb73ff79af2068d1397a7f34c25f4f59e407581f9d69f4c
DIST btsync_x64-1.1.82.tar.gz 1457129 SHA256 3cefbef2af6323dfdb7ccfaad32f7d0c8ed5cb4ebbab58936a479f0c30804bbb SHA512 513048820cdfa02bf90bb731479baf84f7e43947cd3794d3d867f785ed7750b50518b5ed1f5447d78d563eaf25079669293d4da66624c0c8cc501213e1ec8808 WHIRLPOOL 7eab7873aefb8ef704082d782c2df4b3193ce9a0073e725180e3d1c4daa721d1a5110de698cfe07882351ed96ca4a87e84cc3b0ed2e8959d04aed0491a0d08cb
DIST btsync_x64-1.3.105.tar.gz 3615069 SHA256 83dc9687bb4ec0dbc0b4e4304e18f42007064b58d29148b11c5fdca0dbffe033 SHA512 29f3a36e7ff9ec281e3da71b48dd6182193e31b883aebef7783ee54dae9342987b3066d77187f0b5e7c278f20b2a91a5d28719fe497a99665180fd18304f8985 WHIRLPOOL edf8a5077c66c24516132bfe3fd9a3198e0025793841ad390695357c7a412c8b51bfd52bbfac8cd537b771c196156d3cff5586c80f0778c7c20a11fc4ea4f2ee
DIST btsync_x64-1.3.94.tar.gz 2328717 SHA256 3e1681379206fd5b857a3bb89367e7496e42a69bdceb12097a93f04236076af5 SHA512 9a44abf4386247fd18462780528d7e62a84599fc6f1439f7a453ad0e4795e2db161a7d18057fa1cf228513123e8df4e87fa7978b436381d1c72ef0a95238e37f WHIRLPOOL 586007436a55591442bf9de4eeb99ac2c0b915e7dfe3f616c66eca3bafe4cad17571aaa4b7a50e326c072b7261784ee83b4099f97a2209156552efd8325afced

View File

@ -0,0 +1,31 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Automatically sync files via secure, distributed technology."
HOMEPAGE="http://labs.bittorrent.com/experiments/sync.html"
SRC_URI="
amd64? ( http://syncapp.bittorrent.com/${PV}/btsync_x64-${PV}.tar.gz )
x86? ( http://syncapp.bittorrent.com/${PV}/btsync_i386-${PV}.tar.gz )"
LICENSE="bittorrent-sync"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
RESTRICT="mirror bindist"
S="${WORKDIR}"
QA_PREBUILT="opt/bin/btsync"
src_install() {
exeinto /opt/bin
doexe btsync
newconfd "${FILESDIR}/btsync.confd" btsync
newinitd "${FILESDIR}/btsync.initd" btsync
}

View File

@ -0,0 +1,31 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Automatically sync files via secure, distributed technology."
HOMEPAGE="http://labs.bittorrent.com/experiments/sync.html"
SRC_URI="
amd64? ( http://syncapp.bittorrent.com/${PV}/btsync_x64-${PV}.tar.gz )
x86? ( http://syncapp.bittorrent.com/${PV}/btsync_i386-${PV}.tar.gz )"
LICENSE="bittorrent-sync"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
RESTRICT="mirror bindist"
S="${WORKDIR}"
QA_PREBUILT="opt/bin/btsync"
src_install() {
exeinto /opt/bin
doexe btsync
newconfd "${FILESDIR}/btsync.confd" btsync
newinitd "${FILESDIR}/btsync.initd" btsync
}

View File

@ -0,0 +1,31 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Automatically sync files via secure, distributed technology."
HOMEPAGE="http://labs.bittorrent.com/experiments/sync.html"
SRC_URI="
amd64? ( http://syncapp.bittorrent.com/${PV}/btsync_x64-${PV}.tar.gz )
x86? ( http://syncapp.bittorrent.com/${PV}/btsync_i386-${PV}.tar.gz )"
LICENSE="bittorrent-sync"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
RESTRICT="mirror bindist"
S="${WORKDIR}"
QA_PREBUILT="opt/bin/btsync"
src_install() {
exeinto /opt/bin
doexe btsync
newconfd "${FILESDIR}/btsync.confd" btsync
newinitd "${FILESDIR}/btsync.initd" btsync
}

View File

@ -0,0 +1,19 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# DO NOT MODIFY THIS FILE DIRECTLY! CREATE A COPY AND MODIFY THAT INSTEAD!
# User and group of the user that will run the instance.
BTSYNC_USER=
BTSYNC_GROUP=
# Configuration file. Create it with "btsync --dump-sample-config" and edit.
# If not set, default settings will be applied.
#BTSYNC_CONFIG=
# Directory where the instance will be started. Defaults to /
#BTSYNC_DIR=/
# Extra options to be added to the btsync call.
#BTSYNC_EXTRA_OPTIONS=

View File

@ -0,0 +1,58 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
BTSYNC_EXEC="/opt/bin/btsync"
PROGNAME=${SVCNAME#*.}
PIDPATH="/var/run/btsync"
PIDFILE="${PIDPATH}/${SVCNAME}.pid"
depend() {
need net
}
start() {
local OPTIONS="--nodaemon"
if [ "${SVCNAME}" = "btsync" ]; then
eerror "You are not supposed to run this script directly. Create a symlink"
eerror "for the BitTorrent Sync instance you want to run as well as a copy"
eerror "of the ration file and modify it appropriately like so..."
eerror
eerror " # ln -s btsync /etc/init.d/btsync.home"
eerror " # cp /etc/conf.d/btsync /etc/conf.d/btsync.home"
eerror " # nano /etc/conf.d/btsync.home"
eerror
return 1
fi
if [ -z "${BTSYNC_USER}" ] || [ -z "${BTSYNC_GROUP}" ]; then
eerror "You should specify an user and group:"
eerror " BTSYNC_USER=user"
eerror " BTSYNC_GROUP=group"
return 1
fi
if [ -n "${BTSYNC_CONFIG}" ]; then
OPTIONS="${OPTIONS} --config ${BTSYNC_CONFIG}"
fi
if [ -n "${BTSYNC_EXTRA_OPTIONS}" ]; then
OPTIONS="${OPTIONS} ${BTSYNC_EXTRA_OPTIONS}"
fi
ebegin "Starting BitTorrent Sync instance ${PROGNAME}"
checkpath -d -m 0750 -o "${BTSYNC_USER}":"${BTSYNC_GROUP}" "${PIDPATH}"
cd "${BTSYNC_DIR:-/}" && \
start-stop-daemon --start --user "${BTSYNC_USER}" --group "${BTSYNC_GROUP}" \
--pidfile "${PIDFILE}" --background --make-pidfile --exec "${BTSYNC_EXEC}" \
-- ${OPTIONS}
eend $?
}
stop() {
ebegin "Stopping BitTorrent Sync instance ${PROGNAME}"
start-stop-daemon --stop --pidfile "${PIDFILE}"
eend $?
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription lang="en">
BitTorrent Sync app for Linux.
</longdescription>
</pkgmetadata>