Add Readme, better makefile.
This commit is contained in:
parent
256663c4f0
commit
f3c710e5df
3 changed files with 51 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,6 @@
|
||||||
|
syncthing-linux*/
|
||||||
|
syncthing-linux*.tar.gz
|
||||||
KoboRoot.tgz
|
KoboRoot.tgz
|
||||||
src/usr/local/syncthing/syncthing
|
src/usr/local/syncthing/syncthing
|
||||||
|
src/usr/local/syncthing/*.txt
|
||||||
|
|
||||||
|
|
31
Makefile
31
Makefile
|
@ -1,7 +1,36 @@
|
||||||
|
|
||||||
|
ARCH=arm
|
||||||
|
VERSION=1.23.4
|
||||||
|
|
||||||
SRC := $(shell find src -type f | tail -n+2)
|
SRC := $(shell find src -type f | tail -n+2)
|
||||||
SRC_REL := $(shell cd src && find ./ -type f)
|
SRC_REL := $(shell cd src && find ./ -type f)
|
||||||
|
TARCONTENT :=
|
||||||
|
|
||||||
KoboRoot.tgz: $(SRC)
|
all: KoboRoot.tgz
|
||||||
|
|
||||||
|
syncthing-linux-$(ARCH)-v$(VERSION).tar.gz:
|
||||||
|
curl -o $@ -L https://github.com/syncthing/syncthing/releases/download/v$(VERSION)/syncthing-linux-$(ARCH)-v$(VERSION).tar.gz
|
||||||
|
|
||||||
|
syncthing-linux-$(ARCH)-v$(VERSION): syncthing-linux-$(ARCH)-v$(VERSION).tar.gz
|
||||||
|
tar xf $<
|
||||||
|
|
||||||
|
src/usr/local/syncthing/syncthing: syncthing-linux-$(ARCH)-v$(VERSION)
|
||||||
|
cp syncthing-linux-$(ARCH)-v$(VERSION)/syncthing $@
|
||||||
|
|
||||||
|
src/usr/local/syncthing/AUTHORS.txt: syncthing-linux-$(ARCH)-v$(VERSION)
|
||||||
|
cp syncthing-linux-$(ARCH)-v$(VERSION)/AUTHORS.txt $@
|
||||||
|
|
||||||
|
src/usr/local/syncthing/LICENSE.txt: syncthing-linux-$(ARCH)-v$(VERSION)
|
||||||
|
cp syncthing-linux-$(ARCH)-v$(VERSION)/LICENSE.txt $@
|
||||||
|
|
||||||
|
src/usr/local/syncthing/README.txt: syncthing-linux-$(ARCH)-v$(VERSION)
|
||||||
|
cp syncthing-linux-$(ARCH)-v$(VERSION)/README.txt $@
|
||||||
|
|
||||||
|
KoboRoot.tgz: src/usr/local/syncthing/syncthing src/usr/local/syncthing/AUTHORS.txt src/usr/local/syncthing/LICENSE.txt src/usr/local/syncthing/README.txt $(SRC)
|
||||||
tar cvzf $@ -C src $(SRC_REL) --owner=0 --group=0
|
tar cvzf $@ -C src $(SRC_REL) --owner=0 --group=0
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -r syncthing-linux-*/ syncthing-linux-*.tar.gz KoboRoot.tgz
|
||||||
|
rm -r src/usr/local/syncthing/{syncthing,AUTHORS.txt,LICENSE.txt,README.txt}
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
17
README.md
Normal file
17
README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Syncthing on a Kobo eReader
|
||||||
|
|
||||||
|
This installs [Syncthing](https://syncthing.net) on a Kobo eReader.
|
||||||
|
|
||||||
|
Syncthing will be installed in `/usr/local/syncthing` with a udev rule
|
||||||
|
`99-syncthing.rules` to automatically start it on network device
|
||||||
|
detection.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
Run `make` to build the update tarball `KoboRoot.tgz`.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Place the built `KoboRoot.tgz` file in the `.kobo/` folder of your
|
||||||
|
eReader and eject it.
|
||||||
|
|
Loading…
Reference in a new issue