Skip to content

syncthing: update from 1.22.2 to 1.23.2 #2870

Merged
merged 2 commits into from Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 12 additions & 20 deletions syncthing.be0
@@ -1,10 +1,12 @@
#!/bin/env beesh

# BEE_VERSION syncthing-1.23.1-0
# BEE_VERSION syncthing-1.23.2-1

## The source URL(s) array
SRCURL[0]="https://github.com/syncthing/syncthing/releases/download/v${PKGVERSION}/syncthing-source-v${PKGVERSION}.tar.gz syncthing-v${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/28f33461580ea4d6391e792d66ef826e/syncthing-v1.23.1.tar.gz"

#SRCURL[0]="https://github.com/syncthing/syncthing/releases/download/v${PKGVERSION}/syncthing-source-v${PKGVERSION}.tar.gz syncthing-v${PKGVERSION}.tar.gz"

SRCURL[0]="https://beehive.molgen.mpg.de/f07a093bce5eb809de65e51ace6115fc/syncthing-v1.23.2.tar.gz"

## Add URLs/paths to patch files
# PATCHURL+=()
Expand All @@ -28,33 +30,23 @@ SRCURL[0]="https://beehive.molgen.mpg.de/28f33461580ea4d6391e792d66ef826e/syncth
#}

mee_build() {

export GOCACHE="${B}/.cache/go-build"
# export GOPATH=${F}
export GOCACHE="${B}/cache/go-build"
export GOENV="${B}/.config/go/env"
export GOMODCACHE="${B}/pkg/mod"

# we build in source dir but we don't 8-)
cd ${S}
# go clean -r -x build.go # NEVER EVER run this as root
go run -v build.go
go run -v build.go -no-upgrade build syncthing
cd ${S}
go run -x -a -v build.go
go run -x -a -v build.go -no-upgrade build syncthing
}

## mee_install() should install into "${D}"
## default: 'make install DESTDIR="${D}"'

mee_install() {
mkdir -p ${D}/usr/bin

# not packaged:
# stcrahcreceiver
# strelaypoolsrv
# strelaysrv
# uraggregate
# ursrv
# stupgrades

for b in stcompdirs stdisco stdiscosrv stevents stfileinfo stfinddevice stfindignored stgenfiles stsigtool stvanity stwatchfile syncthing; do
cp ${S}/syncthing ${D}/usr/bin
for b in stevents stcompdirs stvanity stfindignored stfileinfo stwatchfile stsigtool stdisco stdiscosrv stfinddevice stgenfiles stwatchfile; do
cp ${S}/bin/$b ${D}/usr/bin
done

Expand Down