1
0
mirror of synced 2024-12-23 05:10:24 +01:00

Merge branch 'master' of github.com:TheChymera/overlay

This commit is contained in:
Horea Christian 2015-07-20 11:02:37 +02:00
commit e2bddf98a8
15 changed files with 0 additions and 594 deletions

View File

@ -1 +0,0 @@
DIST evolution-tray-0.0.8.tar.gz 348632 SHA256 a649e116d92c9f48e901c7a97238101b230481723a7ec559ada3777febcea6c6 SHA512 6f8348626037ee51cca4b2582ae5ea64b6463933b11b77368bbb5837e8712d26399c2edd16ec18d4d7f8ee14237f5884dbd3ca939fb57cd027e34da09ab8ad6a WHIRLPOOL 229a6673792374aaa87b6620bf88f292250617028368f179d41fa01c38665ff19806d4665fe6f03a92e19aa71733715e3b3975d5b64ec9914c2e8ee249888a0c

View File

@ -1,17 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
DESCRIPTION="The plugin for placing evolution in notification area"
HOMEPAGE="http://gnome.eu.org/evo/index.php/Evolution_Tray"
SRC_URI="http://gnome.eu.org/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="mail-client/evolution"
RDEPEND="${DEPEND}"

View File

@ -1,9 +0,0 @@
AUX conf.d/syncthing 484 SHA256 bb6f20906f904dd3cb07df3453a94b105782bb10963abe2862ff6c4b31d5cffb SHA512 849f1aae8b345ee952cccff27ac8364afe2739ec4b6128c7e77794170f4ca60c5ea4a15e7e290fc06e3457c09522695e03662b06c6dd3309748f4a0609338c18 WHIRLPOOL a819d3fcafb9de2b2230a9b899e99adc33a8d7f3bd2ae6ab03717dea18598da3ae57590c9f2ee33b17b93eded3ae6f7b00af9f9c7aacf876d9ab47ac51c6eb65
AUX init.d/syncthing 848 SHA256 a1ae52a447d45b398c2c7c307f8e336fb41f6b81a373590e3f54755de4aebef5 SHA512 2d1bea328cd4b3f92b3071c6bff3493af6354224b9e39c195cea266d40c2d649fa4da77114e674266626a96e7ab2acc40e0c221603c0f7db1d4b32d03000f994 WHIRLPOOL 61ec40011e86bcbcef5b64faa281daeb74db9b0087023693b832184374c838e3e9829ba45f8c448ecc6ef5a3ef1e201ec494ae8d6eb7584f5072999297b8b6a8
DIST syncthing-0.10.30.tar.gz 3029635 SHA256 0358f8b5edacebb0eacfad424e2fbca32587b0747c7f7060c63e961038289880 SHA512 c95cfb799609e71dbbcd43aca80652ea2e2e9772020a2716f587a255e351a275b6d60a0ac9ba34c60f661df5a532db956e68e15352ef9188e8322535caf88edb WHIRLPOOL 19771e2baff3f56f1e3575e4a9338bd71c20740dbed67329658b91cfc786385fd490fa1e457b08facca24c5e4598b4659c7ccaa7408c355b9c19eb44f032a738
DIST syncthing-0.10.31.tar.gz 3040325 SHA256 70362ee35928c2291c4b0659678e768bb9a6462c8e5548df9c37e886e5dfab59 SHA512 83bfa7300bf8d4bbbf5d396c5e3e5be14e5a39ce815e7c6995fb723d779a344f2d1cddaaef3718aea1a6c1cda46f05bfe39d4f395a229c6aa49782c0d5c04055 WHIRLPOOL 4722388a4c6f1253c970b2391343e2444f11e691b439a8099453adbc59b44c29a3afb1a668613f5947b88bf93441313d096e823998d2de148eda2b457562a191
DIST syncthing-0.11.1.tar.gz 3093628 SHA256 acd644ee8d1ba2568e901ce1dfc0973efb695d185868675e12d472a783c31825 SHA512 b12a591cfcd95cf8c7669ee0409e717d908e1bc8e012b180191dfb7c65af809b4cad500e44f22e6c51f3d247ce46780b3866f5a295ae98719dfc854d6d25ca9e WHIRLPOOL ac578acc85bdf2903dade12fde23e50ff061df11d4ecaccbde2c971679400c79ae749333123f15713e3227f36431e6c9eafd99c5f40bdd0167e5154109bf8280
EBUILD syncthing-0.10.30.ebuild 1782 SHA256 48ee0926b22abf76dfa301b10dd5e6cf1aba21411eb7043d291fd1edee04c8b4 SHA512 95b236e6e7bc73043e8d3c4ee7dca36fc1101ec5d0258d4315ecffe772b7348fd189e02c2915c8629410fa9e1d0af0e393afca035a0bd808b1287da83cba4c05 WHIRLPOOL 7975127d724ec0c1cf1abcfffefc97d53fe3e41febdee08b5d15998d6d2cf6723829a07386a2df289ada6eef00fabf395208152c2c8e2ca8d32894d384b8e24a
EBUILD syncthing-0.10.31.ebuild 2031 SHA256 88f14e09712b6adc8cddcb7175c89d1bd6c89254b5ed6fc2682236ad3c95ba1c SHA512 aea88b792cb7efbf40a190f02ba19d2decabd4f68919d7f81c592e30bc522611b931e49982188f1d37d062d0a41720c656604c3b1ade29364b4bd96832c65e70 WHIRLPOOL 933f2bed0044f4fe6dd69cbb284f5945d67c552ab14208d23f1850c47f04978a64cd912c9133627782b993a88cf41123c8298644f8145d8f2a1854838e2f4fbc
EBUILD syncthing-0.11.1.ebuild 2009 SHA256 4889721fd3259d85129b909eb88f16c93f2816292c6b710e6ce14f15feeb401f SHA512 2df8db9397591ec62a16aecf0e691ddd746648df66263cba1c4513143b574f3a1727e72219a6e6586b8830623cc1c03b9c6b7a0cf6347295493fb593b4d3ddd5 WHIRLPOOL 44e6f815dac82edc48566a50df7569604ce04b0728cc1d13e08ffe79ad376c4e924afd3fa484ca6c42d72186b55a5646156318584ab04d8cfa9c78906add747e
MISC metadata.xml 246 SHA256 1f13fca32620fcc919da81fb9aaa364149cb466bcd86f84f9b20543c3df586b9 SHA512 2e8003ef9d9e5dacc8cb6ebfb7cb6bf605385344fa4db7513aabf1bbf7c7e9052bae47b2faccbd727ccb3d6fb1da9e1881c3d9b711ff23d9d6ed035c0c53f639 WHIRLPOOL 79b333969e70df2668a774d99e5c6c3c6dae462a3c2bc5db4c4f8cbd7adb5d8ea04287d84828353be870d67459b35654e837331938eb920bff5e052d6452c34d

View File

@ -1,29 +0,0 @@
--- cmd/syncthing/main.go 2014-06-13 05:29:07.566946128 +0700
+++ cmd/syncthing/main.go 2014-06-13 05:32:31.603821890 +0700
@@ -110,11 +110,9 @@
func main() {
var reset bool
var showVersion bool
- var doUpgrade bool
flag.StringVar(&confDir, "home", getDefaultConfDir(), "Set configuration directory")
flag.BoolVar(&reset, "reset", false, "Prepare to resync from cluster")
flag.BoolVar(&showVersion, "version", false, "Show version")
- flag.BoolVar(&doUpgrade, "upgrade", false, "Perform upgrade")
flag.IntVar(&logFlags, "logflags", logFlags, "Set log flags")
flag.Usage = usageFor(flag.CommandLine, usage, extraUsage)
flag.Parse()
@@ -126,14 +124,6 @@
l.SetFlags(logFlags)
- if doUpgrade {
- err := upgrade()
- if err != nil {
- l.Fatalln(err)
- }
- return
- }
-
if len(os.Getenv("GOGC")) == 0 {
debug.SetGCPercent(25)
}

View File

@ -1,15 +0,0 @@
# Config file for /etc/init.d/syncthing
SYNC_NAME="syncthing"
SYNC_PIDFILE="/var/run/${SYNC_NAME}.pid"
# If you are going to run syncthing as a user, also uncomment the SYNC_HOME line
SYNC_USER="root"
SYNC_GROUP="root"
#SYNC_HOME="/home/${SYNC_USER}/.config/${SYNC_NAME}"
# Make sure SYNC_HOME is set to something so we reduce DRY here and in the init script
SYNC_HOME="${SYNC_HOME:-/etc/${SYNC_NAME}}"
# Any options you want you can set them here
SYNC_OPTS="--home=${SYNC_HOME}"

View File

@ -1,36 +0,0 @@
#!/sbin/runscript
# Copyright 2014-2015 Jonathan Vasquez <jvasquez1011@gmail.com>
# Distributed under the terms of the GNU General Public License v2
DISPLAY_NAME="SyncThing"
SYNC_PATH="/usr/bin"
SYNC_BINARY="${SYNC_PATH}/${SYNC_NAME}"
SYNC_USER="${SYNC_USER:-root}"
SYNC_GROUP="${SYNC_GROUP:-root}"
SYNC_HOME="${SYNC_HOME:-/etc/${SYNC_NAME}}"
start() {
ebegin "Starting ${DISPLAY_NAME}"
if [[ ${SYNC_USER} == "root" ]]; then
SYNC_NAME="root"
SYNC_GROUP="root"
einfo "Running ${DISPLAY_NAME} as root:root. Home directory: ${SYNC_HOME}"
fi
start-stop-daemon -m --pidfile "${SYNC_PIDFILE}" -b \
--start --user ${SYNC_USER} --group ${SYNC_GROUP} --exec "${SYNC_BINARY}" -- ${SYNC_OPTS}
eend $?
}
stop() {
ebegin "Stopping ${DISPLAY_NAME}"
start-stop-daemon --stop --exec "${SYNC_BINARY}" --pidfile "${SYNC_PIDFILE}"
eend $?
}

View File

@ -1,10 +0,0 @@
[Unit]
Description=SyncThing
[Service]
Type=simple
Environment=HOME=/root
ExecStart=/usr/bin/syncthing -home=/etc/syncthing/
[Install]
WantedBy=multi-user.target

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>jvasquez1011@gmail.com</email>
<name>Jonathan Vasquez</name>
</maintainer>
</pkgmetadata>

View File

@ -1,58 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:$
EAPI="5"
inherit eutils base systemd
DESCRIPTION="Open, trustworthy and decentralized syncing engine (some kind of analog of DropBox and BTSync)"
HOMEPAGE="http://syncthing.net"
SRC_URI="https://github.com/syncthing/${PN}/archive/v${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
DEPEND="
dev-lang/go
app-misc/godep
"
RDEPEND="${DEPEND}"
DOCS=( README.md CONTRIBUTORS LICENSE CONTRIBUTING.md )
export GOPATH="${S}"
GO_PN="github.com/syncthing/${PN}"
S="${S}/src/${GO_PN}"
src_unpack() {
mkdir -p ${S} || die
unpack ${A}
cd ${WORKDIR}/${P}
# Move everything except src (cannot move it to itself) to ${S}
mv `ls | grep -v '^src$'` ${S} || die
}
src_compile() {
local version="v${PV}";
local date="$(date +%s)";
local user="$(whoami)"
local host="$(hostname)"; host="${host%%.*}";
local lf="-w -X main.Version ${version} -X main.BuildStamp ${date} -X main.BuildUser ${user} -X main.BuildHost ${host}"
godep go build -ldflags "${lf}" -tags noupgrade ./cmd/syncthing || die
}
src_install() {
dobin syncthing
systemd_newunit "${FILESDIR}"/syncthing.service syncthing@.service
base_src_install_docs
}
pkg_postinst() {
ewarn "To run syncthing as a service, execute"
ewarn " systemctl start syncthing@<user>"
}

View File

@ -1,76 +0,0 @@
# Copyright 2014 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="
amd64? ( https://github.com/${GITHUB_USER}/${GITHUB_REPO}/archive/v${GITHUB_TAG}.tar.gz -> ${P}.tar.gz )"
RESTRICT="mirror"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64"
DEPEND=">=dev-lang/go-1.3.0"
S="${WORKDIR}"
configDir="/etc/${PN}"
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 file
doinitd "${FILESDIR}/init.d/${NAME}"
# Install the systemd unit file
systemd_dounit "${FILESDIR}/${PN}.service"
}
pkg_postinst() {
if [[ ! -d "${configDir}" ]]; then
mkdir "${configDir}"
fi
if [[ ! -e "${config}" ]]; then
einfo "Generating default configuration file ..."
syncthing -generate "${configDir}"
# Remove 'default' folder (it has an incorrect path anyway)
sed -i '/<folder id="default"/,/<\/folder>/d' "${config}"
fi
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."
elog ""
elog "After checking your config, run 'rc-config start ${PN}' to start the application."
elog "Point your browser to the address above to access the Web UI."
elog ""
}

View File

@ -1,76 +0,0 @@
# Copyright 2014 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="
amd64? ( https://github.com/${GITHUB_USER}/${GITHUB_REPO}/archive/v${GITHUB_TAG}.tar.gz -> ${P}.tar.gz )"
RESTRICT="mirror"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=">=dev-lang/go-1.3.0"
S="${WORKDIR}"
configDir="/etc/${PN}"
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 file
doinitd "${FILESDIR}/init.d/${NAME}"
# Install the systemd unit file
systemd_dounit "${FILESDIR}/${PN}.service"
}
pkg_postinst() {
if [[ ! -d "${configDir}" ]]; then
mkdir "${configDir}"
fi
if [[ ! -e "${config}" ]]; then
einfo "Generating default configuration file ..."
syncthing -generate "${configDir}"
# Remove 'default' folder (it has an incorrect path anyway)
sed -i '/<folder id="default"/,/<\/folder>/d' "${config}"
fi
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."
elog ""
elog "After checking your config, run 'rc-config start ${PN}' to start the application."
elog "Point your browser to the address above to access the Web UI."
elog ""
}

View File

@ -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="GPL-3+"
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}"
}

View File

@ -1,67 +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="GPL-3+"
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 "This is the last release for the 0.10.X branch. A breaking change was introduced with"
elog "0.11.X which will make 0.10 and 0.11 clients non-communicatable. If this is a new deployment,"
elog "consider using 0.11 from the start."
elog ""
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}"
}

View File

@ -1,67 +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="GPL-3+"
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 "This is a breaking change release (0.11.X). If you have other devices that are"
elog "running on 0.10.X, you will need to upgrade them as well since these versions"
elog "cannot communicate with each other."
elog ""
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}"
}

View File

@ -1,62 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: This ebuild is from mva overlay; Bumped by mva; $
EAPI="5"
#if [ "$PV" != "9999" ]; then
# SRC_URI="https://github.com/calmh/${PN}/archive/v${PV}.tar.gz"
# KEYWORDS="~amd64 ~x86 ~arm ~darwin ~winnt ~fbsd"
#else
vcs="git-r3"
SRC_URI=""
EGIT_REPO_URI="https://github.com/syncthing/${PN}"
KEYWORDS=""
#fi
inherit eutils base ${vcs}
DESCRIPTION="Open, trustworthy and decentralized syncing engine (some kind of analog of DropBox and BTSync)"
HOMEPAGE="http://syncthing.net"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="tools"
DEPEND="
dev-lang/go
app-misc/godep
"
RDEPEND="${DEPEND}"
DOCS=( README.md AUTHORS LICENSE CONTRIBUTING.md )
export GOPATH="${S}"
GO_PN="github.com/syncthing/${PN}"
EGIT_CHECKOUT_DIR="${S}/src/${GO_PN}"
S="${EGIT_CHECKOUT_DIR}"
src_compile() {
# XXX: All the stuff below needs for "-version" command to show actual info
local version="$(git describe --always | sed 's/\([v\.0-9]*\)\(-\(beta\|alpha\)[0-9]*\)\?-/\1\2+/')";
local date="$(git show -s --format=%ct)";
local user="$(whoami)"
local host="$(hostname)"; host="${host%%.*}";
local lf="-w -X main.Version ${version} -X main.BuildStamp ${date} -X main.BuildUser ${user} -X main.BuildHost ${host}"
godep go build -ldflags "${lf}" -tags noupgrade ./cmd/syncthing
use tools && (
godep go build ./cmd/stcli
godep go build ./cmd/stpidx
godep go build ./discover/cmd/discosrv
)
}
src_install() {
dobin syncthing
use tools && dobin stcli stpidx discosrv
base_src_install_docs
}