blob: 4e703ea0abb89daf144622f27112dd5523011d14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Vyacheslav Konovalov <🦀vk@protonmail.com>
pkgname=concordium-mainnet-node-bin
pkgver=4.1.1
pkgrel=1
pkgdesc='Concordium Mainnet Node'
arch=('x86_64')
url='http://developer.concordium.software/en/mainnet/net/index.html'
license=('AGPL3')
depends=('postgresql-libs' 'openssl' 'unbound')
source=(
"https://distribution.mainnet.concordium.software/deb/concordium-mainnet-node_${pkgver}_amd64.deb"
'concordium-mainnet-node.default'
'concordium-mainnet-node-collector.default'
)
sha512sums=(
'2932594fc2e8ea7361e00bba541485240e42d1656b1b8ac7593ca02b1b191268b58180a86f9a9af2ce93616320685afa916419a8c616cae99eb33ad098cd14fb'
'b1d37f98eb7647de17b068ae58b217850d9382680534adad9921de111f6d8078b9121924fc539791d50eb4198280e3b3b71318ba7aa4fee7b79d556326ac7661'
'1d89a0c782f0f5e2ce8543e20bc32cd0382cdc7e5fb2be7bddf47393810073c7fc00553c1abcc9103f0851065c355920bba8c59ea7a5080dde68ca4c79fce0b3'
)
options=(!strip)
install='concordium-mainnet-node.install'
backup=(
'etc/default/concordium-mainnet-node'
'etc/default/concordium-mainnet-node-collector'
)
prepare() {
tar -xf data.tar.xz
rm -rf usr/share
mv lib usr
sed -i '/^ExecStart/i EnvironmentFile=\/etc\/default\/concordium-mainnet-node' \
usr/lib/systemd/system/concordium-mainnet-node.service
sed -i '/^ExecStart/i EnvironmentFile=\/etc\/default\/concordium-mainnet-node-collector' \
usr/lib/systemd/system/concordium-mainnet-node-collector.service
}
package() {
cp -r usr var "$pkgdir/"
install -Dm644 concordium-mainnet-node.default "$pkgdir/etc/default/concordium-mainnet-node"
install -Dm644 concordium-mainnet-node-collector.default "$pkgdir/etc/default/concordium-mainnet-node-collector"
}
|