diff options
author | M0Rf30 | 2017-07-27 16:49:31 +0200 |
---|---|---|
committer | M0Rf30 | 2017-07-27 16:49:31 +0200 |
commit | afe8db922a1a572e88a3824a81e1908b9b2009d0 (patch) | |
tree | c119016b2fd14c21a2ecb06102540697eaf10b26 | |
parent | e2f65009ecff433911f15883fdc6f3bb9a1c90e2 (diff) | |
download | aur-afe8db922a1a572e88a3824a81e1908b9b2009d0.tar.gz |
hyperledger-fabric-chaintool: FABRIC_CFG_PATH defined
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rwxr-xr-x | fabric.sh | 3 |
3 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu Jul 27 12:21:00 UTC 2017 +# Thu Jul 27 14:49:09 UTC 2017 pkgbase = hyperledger-fabric pkgdesc = A platform for distributed ledger solutions, underpinned by a modular architecture delivering high degrees of confidentiality, resiliency, flexibility and scalability pkgver = 1.0.0 @@ -12,7 +12,9 @@ pkgbase = hyperledger-fabric depends = go depends = docker source = https://github.com/hyperledger/fabric/archive/v1.0.0.tar.gz + source = fabric.sh md5sums = a3b3b80224c88fe984207e6321ccdb04 + md5sums = 1da047c0fd9780e71a485013ade06060 pkgname = hyperledger-fabric @@ -11,7 +11,8 @@ license=('APACHE') groups=('hyperledger-fabric') depends=('go' 'docker') makedepends=('git') -source=("https://github.com/hyperledger/fabric/archive/v$pkgver.tar.gz") +source=("https://github.com/hyperledger/fabric/archive/v$pkgver.tar.gz" + fabric.sh) prepare() { export GOPATH="$PWD"/.gopath @@ -29,7 +30,13 @@ package() { cd $srcdir/${_pkgname}-$pkgver install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + install -Dm 644 -t "$pkgdir/etc/profile.d/" ../fabric.sh + cp -r release/linux-amd64/bin "$pkgdir/usr" + mkdir -p $pkgdir/etc/hyperledger/fabric + cp -r sampleconfig/* $pkgdir/etc/hyperledger/fabric + } -md5sums=('a3b3b80224c88fe984207e6321ccdb04') +md5sums=('a3b3b80224c88fe984207e6321ccdb04' + '1da047c0fd9780e71a485013ade06060') diff --git a/fabric.sh b/fabric.sh new file mode 100755 index 000000000000..485591cfb661 --- /dev/null +++ b/fabric.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +export FABRIC_CFG_PATH=/etc/hyperledger/fabric/ |