go-ipfs: add runit service and use vcompletion
This commit is contained in:
parent
9dd8a33a22
commit
65826688d9
3 changed files with 12 additions and 2 deletions
1
srcpkgs/go-ipfs/files/ipfs/log/run
Symbolic link
1
srcpkgs/go-ipfs/files/ipfs/log/run
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/bin/vlogger
|
4
srcpkgs/go-ipfs/files/ipfs/run
Executable file
4
srcpkgs/go-ipfs/files/ipfs/run
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -r conf ] && . ./conf
|
||||||
|
export IPFS_PATH=${IPFS_PATH:=/var/lib/ipfs}
|
||||||
|
exec chpst -u _ipfs ipfs daemon ${OPTS:=--init --enable-gc --migrate} 2>&1
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'go-ipfs'
|
# Template file for 'go-ipfs'
|
||||||
pkgname=go-ipfs
|
pkgname=go-ipfs
|
||||||
version=0.7.0
|
version=0.7.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/ipfs/${pkgname}"
|
go_import_path="github.com/ipfs/${pkgname}"
|
||||||
go_package="${go_import_path}/cmd/ipfs"
|
go_package="${go_import_path}/cmd/ipfs"
|
||||||
|
@ -15,6 +15,10 @@ changelog="https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md"
|
||||||
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
||||||
checksum=152986ebb30657ab706bee708fbe929114f5e8c39fbe602e3bbec93fe74c9123
|
checksum=152986ebb30657ab706bee708fbe929114f5e8c39fbe602e3bbec93fe74c9123
|
||||||
|
|
||||||
|
system_accounts="_ipfs"
|
||||||
|
make_dirs="/var/lib/ipfs 0700 _ipfs _ipfs"
|
||||||
|
_ipfs_homedir="/var/lib/ipfs"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
|
@ -22,8 +26,9 @@ pre_build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
|
vcompletion misc/completion/ipfs-completion.bash bash ipfs
|
||||||
vlicense LICENSE-MIT
|
vlicense LICENSE-MIT
|
||||||
vdoc README.md
|
vdoc README.md
|
||||||
vdoc CHANGELOG.md
|
vdoc CHANGELOG.md
|
||||||
|
vsv ipfs
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue