Created
August 13, 2018 21:34
-
-
Save XenGi/6138ddde5db3cb97b6407a776a71d1a9 to your computer and use it in GitHub Desktop.
sensu pkgbuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ extra-x86_64-build -c -r /home/xengi/ramdisk | |
[...] | |
==> Retrieving sources... | |
-> Found 2.0.0-beta.3-1.tar.gz | |
==> WARNING: Skipping all source file integrity checks. | |
==> Extracting sources... | |
-> Extracting 2.0.0-beta.3-1.tar.gz with bsdtar | |
==> Starting prepare()... | |
==> Starting build()... | |
Build all commands... | |
Building agent for linux-amd64 | |
2018/08/13 23:31:44 exit status 128 | |
exit status 1 | |
2018/08/13 23:31:44 exit status 128 | |
exit status 1 | |
fatal: not a git repository (or any of the parent directories): .git | |
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... | |
==> ERROR: Build failed, check /home/xengi/ramdisk/extra-x86_64/xengi/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Ricardo (XenGi) Band <[email protected]> | |
# 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' 'git') | |
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 GOPATH="$srcdir/go" | |
#cd ${srcdir}/go/src/${_gourl} | |
#./build.sh deps | |
} | |
build() { | |
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