Skip to content

Instantly share code, notes, and snippets.

@XenGi
Created August 13, 2018 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XenGi/9da5095689937c29dd5ad9f613078b44 to your computer and use it in GitHub Desktop.
Save XenGi/9da5095689937c29dd5ad9f613078b44 to your computer and use it in GitHub Desktop.
sensu
==> Making package: sensu 2.0.0beta3.1-1 (Mon 13 Aug 2018 10:40:21 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found 2.0.0-beta.3-1.tar.gz
==> Validating source files with sha1sums...
2.0.0-beta.3-1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting 2.0.0-beta.3-1.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Build all commands...
Building agent for linux-amd64
2018/08/13 22:40:21 exit status 128
exit status 1
2018/08/13 22:40:22 exit status 128
exit status 1
Building web UI
Running 'yarn install'
yarn install v1.9.4
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
error https://github.com/jamesdphillips/form/releases/download/0.1.7/form.tgz: Fetch succeeded for undefined. However, extracting "https://github.com/jamesdphillips/form/releases/download/0.1.7/form.tgz" resulted in hash "2d061718de4ded68e79b99afb687159d13f7acfa", which did not match the requested hash "bdbc1f39b912f8851880b0c6507c77afb144684d".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
🛑 Error failed to run 'yarn install'
exit status 1
dashboard/assets.go:2: running "go": exit status 1
==> ERROR: A failure occurred in build().
Aborting...
# Maintainer: Ricardo (XenGi) Band <email@ricardo.band>
# Contributor:
pkgname=sensu
_pkgname=sensu-go
pkgver=2.0.0beta3.1
_pkgver=2.0.0-beta.3-1
pkgrel=1
pkgdesc="A monitoring framework that aims to be simple, malleable, and scalable."
arch=('any')
url='https://sensu.io'
license=('MIT')
makedepends=('go' 'nodejs' 'yarn')
options=('!strip' '!emptydirs')
source=("https://github.com/${pkgname}/${_pkgname}/archive/${_pkgver}.tar.gz")
sha1sums=('e038744da7b3b6ef8052c3de1cd65afd618233a6')
_gourl=github.com/sensu/sensu-go
prepare() {
mkdir -p ${srcdir}/go/src/${_gourl}
rm -rf ${srcdir}/go/src/${_gourl}
mv -T "${srcdir}/$_pkgname-$_pkgver" ${srcdir}/go/src/${_gourl}
#export GOROOT=/usr/lib/go
#export GOPATH="$srcdir/go"
#cd ${srcdir}/go/src/${_gourl}
#./build.sh deps
}
build() {
export GOROOT=/usr/lib/go
export GOPATH="$srcdir/go"
cd ${GOPATH}/src/${_gourl}
./build.sh build
}
package() {
install -Dm755 "${srcdir}/go/src/${_gourl}/bin/${pkgname}ctl" "$pkgdir/usr/bin/${pkgname}ctl"
install -Dm755 "${srcdir}/go/src/${_gourl}/bin/${pkgname}-agent" "$pkgdir/usr/bin/${pkgname}-agent"
install -Dm755 "${srcdir}/go/src/${_gourl}/bin/${pkgname}-backend" "$pkgdir/usr/bin/${pkgname}-backend"
install -Dm644 "${srcdir}/go/src/${_gourl}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment