renamed btsync to resilio-sync
This commit is contained in:
		
							
								
								
									
										6
									
								
								net-p2p/resilio-sync/Manifest
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								net-p2p/resilio-sync/Manifest
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| AUX confd 317 SHA256 27932ee892b937fa92d6c28f22e90893eaf86bc023a86ff3e36fcabca8c85fa0 SHA512 b3b7a589df573bacbf80c4b08f6b23638afdb8e7d8c7d1935fa630ae12e908fa014e9334f009a46c878132b1f156f26ef6dcc356bd46750805e43de29f264e90 WHIRLPOOL 216db51b0399da58ddd5642fc9dcf5d67894d54b953c62fbdf4cb2de1b3660c30897044ea36dd6c3346d6218f0e8364d2ad2815713032402fad5390e635b75c5 | ||||
| AUX initd 798 SHA256 80179246a2b12f304ee8c1d4f280adf9cd4df9015dc3407db98774a4a1eae90e SHA512 a6dfe7299f80894996e2e07e1b5ead0027aea7628f292564a48160621f503b6ace957906a17f12eb53de975b8b3e6ef61736a81b1fba6bcd3eaa30f1f2aec886 WHIRLPOOL ccd5325f88f3b328a5113b07373078b7698ee4a1278a181b193a1fc2e664f073de76ff6148806232dd53dc4baa5c715eb77cc30ba67ac97feb0b6ac3766164dd | ||||
| DIST resilio-sync_arm-2.4.1.tar.gz 10043660 SHA256 09df8735d816b8e3d4004e8c99b6cb53d5d3b0eea0bafb1ed459e2289c9cd388 SHA512 8306efafbe5b6afd353d68d897179be0a0db68fb469d46a581f9d70724419ec587b4f52e29002508a089bbd034ded8d3d2654e2434efff18838aba35a0ceee3a WHIRLPOOL f5bc24ac86a2d49e8f8b3abdacc2b948e0d172b029a8ec647f5e41c4bc6cd9dee61181fe9490125a081f1292d903b74675143fe134a8c42d8b0a38bc0d0bf113 | ||||
| DIST resilio-sync_i386-2.4.1.tar.gz 10541565 SHA256 aefced43f9fa28e504c9a6d795914f6888545c4464b1c8803cccf02d031b1c00 SHA512 83479e3723ed3339d7094fd146b8cb54bf27b3238c1a4ca2b052f241f46c492368ac7e0a6d29a5a4da422010db242c537056be09811e751afc053c85eda8656d WHIRLPOOL 6c0169ef485a6fa4b9750caf2f13be56ac8e9e709e40bac92df82a5533675dbf334de07c942daf49b8e40c50465dd3aac0b614f0f322db499c24bb1a99ac7d4b | ||||
| DIST resilio-sync_x64-2.4.1.tar.gz 10718508 SHA256 1597b39eb1e47a38240bda2e80e9579e0ff2ab0d8b99eb6d19b7e3f283456271 SHA512 81ab0119971216a9c4c0338d4594a4f37207b059495a51fbea8eae0bdd5eef7a4f4a151c8c6987cddafcb4ecf3d8febcf98f3a9e9e53278cb2ef60d1b737bea2 WHIRLPOOL fe27f5f2f3d35832a4c1ef1025f9005cd6b2536b2a889fe398dec867f3d85553796bd96e09b2243656a03a6f158f00d8fdd41f80d2438aebeb97a7cad3110230 | ||||
| EBUILD resilio-sync-2.4.1.ebuild 1975 SHA256 373e1c6a7270e1c73acdbcb01c8e37bad29d38065f589ccfe2c1ae70722b344e SHA512 14fc28fc92603f00832abb86823da1d90ca9b2979834abd781921c3294ed4c4f297940a20f33c182a59071ab206855e17b8c693a8c3124b92ef034240b32905c WHIRLPOOL cee4303d8dba22c4c2624a0df605c271b0c812cfe8373d5104006e6f0d0f0bf5afd51d3b2055c47e12d223bfc9731af11ba63f5c2c9f787b95b2175bfdf9049a | ||||
							
								
								
									
										12
									
								
								net-p2p/resilio-sync/files/confd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								net-p2p/resilio-sync/files/confd
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| # conf.d file for resilio-sync | ||||
|  | ||||
| # User and group daemon runs as | ||||
| SYNC_USER="rslsync" | ||||
| SYNC_GROUP="rslsync" | ||||
|  | ||||
| NAME="BitTorrent Sync" | ||||
| SYNC_NAME="rslsync" | ||||
| SYNC_PATH="/opt/resilio-sync/" | ||||
| SYNC_BINARY="${SYNC_PATH}/${SYNC_NAME}" | ||||
| SYNC_OPTS="--config /etc/ilio-sync/config" | ||||
| SYNC_PIDFILE="/var/run/resilio-sync/${SYNC_NAME}.pid" | ||||
							
								
								
									
										41
									
								
								net-p2p/resilio-sync/files/initd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								net-p2p/resilio-sync/files/initd
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| #!/sbin/openrc-run | ||||
| # Copyright (C) 2013-2014 Jonathan Vasquez <fearedbliss@funtoo.org> | ||||
| # Copyright (C) 2014 Sandy McArthur <Sandy@McArthur.org> | ||||
| # Distributed under the terms of the Simplified BSD License. | ||||
|  | ||||
| depend() { | ||||
| 	need localmount net | ||||
| 	after bootmisc | ||||
| } | ||||
|  | ||||
| start() { | ||||
| 	ebegin "Starting ${NAME}" | ||||
|  | ||||
| 	mkdir -p $(dirname ${SYNC_PIDFILE}) | ||||
| 	chown ${SYNC_USER}:${SYNC_GROUP} $(dirname ${SYNC_PIDFILE}) | ||||
|  | ||||
| 	start-stop-daemon \ | ||||
| 	   --start \ | ||||
| 	   --user "${SYNC_USER}" \ | ||||
| 	   --group "${SYNC_GROUP}" \ | ||||
| 	   --nice 5 \ | ||||
| 	   --ionice 3 \ | ||||
| 	   --exec "${SYNC_BINARY}" \ | ||||
| 	   -- ${SYNC_OPTS} | ||||
|  | ||||
| 	eend $? | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	ebegin "Stopping ${NAME}" | ||||
|  | ||||
| 	start-stop-daemon \ | ||||
| 	   --stop \ | ||||
| 	   --user "${BTSYNC_USER}" \ | ||||
| 	   --group "${BTSYNC_GROUP}" \ | ||||
| 	   --exec "${SYNC_BINARY}" \ | ||||
| 	   --wait 5000 \ | ||||
| 	   --retry SIGTERM/5  | ||||
|  | ||||
| 	eend $? | ||||
| } | ||||
							
								
								
									
										67
									
								
								net-p2p/resilio-sync/resilio-sync-2.4.1.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								net-p2p/resilio-sync/resilio-sync-2.4.1.ebuild
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | ||||
| # Copyright (C) 2013-2014 Jonathan Vasquez <fearedbliss@funtoo.org> | ||||
| # Copyright (C) 2014 Sandy McArthur <Sandy@McArthur.org> | ||||
| # Copyright (C) 2015 Scott Alfter <scott@alfter.us> | ||||
| # Copyright (C) 2016 Micha Glave <gentoo@migmedia.de> | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI="4" | ||||
|  | ||||
| inherit eutils user | ||||
| NAME="rslsync" | ||||
| DESCRIPTION="Magic folder style file syncing powered by BitTorrent." | ||||
| HOMEPAGE="http://www.getsync.com/" | ||||
| SRC_URI=" | ||||
| 	amd64?	( https://download-cdn.resilio.com/stable/linux-x64/${PN}_x64.tar.gz -> ${PN}_x64-${PV}.tar.gz ) | ||||
| 	x86?	( https://download-cdn.resilio.com/stable/linux-i386/${PN}_i386.tar.gz -> ${PN}_i386-${PV}.tar.gz ) | ||||
| 	arm?	( https://download-cdn.resilio.com/stable/linux-arm/${PN}_arm.tar.gz -> ${PN}_arm-${PV}.tar.gz )" | ||||
|  | ||||
| RESTRICT="mirror strip" | ||||
| LICENSE="BitTorrent" | ||||
| SLOT="0" | ||||
| KEYWORDS="amd64 x86 arm" | ||||
| IUSE="" | ||||
|  | ||||
| DEPEND="" | ||||
| RDEPEND="${DEPEND}" | ||||
|  | ||||
| QA_PREBUILT="opt/${PN}/${NAME}" | ||||
|  | ||||
| S="${WORKDIR}" | ||||
|  | ||||
| pkg_setup() { | ||||
| 	enewgroup ${NAME} | ||||
| 	enewuser ${NAME} -1 -1 -1 "${NAME}" | ||||
| } | ||||
|  | ||||
| src_install() { | ||||
| 	einfo dodir "/opt/${PN}" | ||||
| 	dodir "/opt/${PN}" | ||||
| 	exeinto "/opt/${PN}" | ||||
| 	doexe ${NAME} | ||||
| 	insinto "/opt/${PN}" | ||||
| 	doins LICENSE.TXT | ||||
|  | ||||
| 	newinitd "${FILESDIR}/initd" ${NAME} | ||||
| 	newconfd "${FILESDIR}/confd" ${NAME} | ||||
|  | ||||
| 	einfo dodir "/etc/${PN}" | ||||
| 	dodir "/etc/${PN}" | ||||
| 	"${D}/opt/${PN}/${NAME}" --dump-sample-config > "${D}/etc/${PN}/config" | ||||
| 	sed -i 's|// "pid_file"|   "pid_file"|' "${D}/etc/${PN}/config" | ||||
| 	fowners ${NAME} "/etc/${PN}/config" | ||||
| 	fperms 460 "/etc/${PN}/config" | ||||
| } | ||||
|  | ||||
| pkg_preinst() { | ||||
| 	# Customize for local machine | ||||
| 	# Set device name to `hostname` | ||||
| 	sed -i "s/My Sync Device/$(hostname) Gentoo Linux/"  "${D}/etc/${PN}/config" | ||||
| 	# Update defaults to the ${NAME}'s home dir | ||||
| 	sed -i "s|/home/user|$(egethome ${NAME})|"  "${D}/etc/${PN}/config" | ||||
| } | ||||
|  | ||||
| pkg_postinst() { | ||||
| 	elog "Init scripts launch ${NAME} daemon as ${NAME}:${NAME} " | ||||
| 	elog "Please review/tweak /etc/${PN}/config for default configuration." | ||||
| 	elog "Default web-gui URL is http://localhost:8888/ ." | ||||
| } | ||||
		Reference in New Issue
	
	Block a user