bumped the ebuild to the latest version
plus cleanup
This commit is contained in:
parent
6bf0985e1b
commit
c9281a907d
@ -1,2 +1 @@
|
||||
DIST syncthing-0.11.16.tar.gz 3375037 SHA256 1a71bfd5849323adbcd71859d853b3c0e313e314997a569128eb2dd659d4d055 SHA512 98f9cc91e6fb1f092afe901fb74a2c54588573385b089ae063e52695184e94c5bf6dc693f4a3ceb6dc04a95e9fdc4fdf1e5d598f4ab9fb93aee2b23e2c85a2ab WHIRLPOOL 0899d57f7a8eb0186271e82f269bb8f2bf5d63f68e4c7259564bfcdf2b4a2245e7d8d3aec4ecd3696382c9e5ce53bab70d25b4bfcf3314c7cfb7a9e3770d79e2
|
||||
DIST syncthing-0.11.17.tar.gz 3389730 SHA256 9b041b7d3b6bb9056d9f844dd8e1e90850919474af03445667836a28d9756796 SHA512 509947e752ea9357e9dbfd4e7d7f59f17f54560b3be6c29d4a3e67b688168df9d4d70f1567b71740df6edb5816c76e6140e0ff84d7c3a1632cea587379cf9604 WHIRLPOOL 63dfc4dad5e6d57906d67a518de9f4b6fc32b1e85d4906983d166545abe828cc7e55dc4ecae0ed3fa047b7d0e3cbebdca9ac5dd52bbf8b9d7e90055d1e016d27
|
||||
DIST syncthing-0.11.19.tar.gz 3393477 SHA256 a57bbf9264f8db03e22657958e2b0d77438acc2180be8a24a8d9965d63a00cff SHA512 2015b73022b7bcb616d5fbfef6339b6eedacbdfd40ba00887e04bdb128211eaaebcad15a4af414b5ee16111ccd5cea15e5d7d234e494c087ccccfbf8eeff0bc6 WHIRLPOOL 1c822809bf91837097d2728cb81cdc58b170be5607b5c5355bd3a7bb8f605c6ff4ca622d5fadf2fec2b8e99f12679f8768e4ce7f457ba4f8880aa7a074254038
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 2014-2015 Jonathan Vasquez <jvasquez1011@gmail.com>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit user systemd
|
||||
|
||||
GITHUB_USER="syncthing"
|
||||
GITHUB_REPO="syncthing"
|
||||
GITHUB_TAG="${PV}"
|
||||
|
||||
NAME="syncthing"
|
||||
DESCRIPTION="Open Source Continuous File Synchronization"
|
||||
HOMEPAGE="http://syncthing.net/"
|
||||
|
||||
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/archive/v${GITHUB_TAG}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
RESTRICT="mirror"
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.3.0"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
configDir="~/.config/syncthing"
|
||||
config="${configDir}/config.xml"
|
||||
|
||||
src_install() {
|
||||
# Create directory structure recommended by SyncThing Documentation
|
||||
# Since Go is "very particular" about file locations.
|
||||
local newBaseDir="src/github.com/${PN}"
|
||||
local newWorkDir="${newBaseDir}/${PN}"
|
||||
|
||||
mkdir -p "${newBaseDir}"
|
||||
mv "${P}" "${newWorkDir}"
|
||||
|
||||
cd "${newWorkDir}"
|
||||
|
||||
# Build SyncThing ;D
|
||||
go run build.go -version v${PV} -no-upgrade=true
|
||||
|
||||
# Copy compiled binary over to image directory
|
||||
dobin "bin/${PN}"
|
||||
|
||||
# Install the OpenRC init/conf files
|
||||
doinitd "${FILESDIR}/init.d/${NAME}"
|
||||
doconfd "${FILESDIR}/conf.d/${NAME}"
|
||||
|
||||
# Install the systemd unit file
|
||||
local systemdServiceFile="etc/linux-systemd/system/${PN}@.service"
|
||||
systemd_dounit "${systemdServiceFile}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "In order to be able to view the Web UI remotely (from another machine),"
|
||||
elog "edit your ${config} and change the 127.0.0.1:8080 to 0.0.0.0:8080 in"
|
||||
elog "the 'address' section. This file will only be generated once you start syncthing."
|
||||
elog ""
|
||||
elog "Modify the /etc/conf.d/${PN} file and set the user/group/ and syncthing home directory"
|
||||
elog "before launching. Afterwards, you can start ${PN} by doing a: rc-config start ${PN}"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user