blob: cd9abb8884bfc8c4994cf293c2480bf4daa2373d (
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
44
45
46
47
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=etcd
pkgver=3.0.15
pkgrel=0
pkgdesc="A highly-available key value store for shared configuration and service discovery"
url="https://github.com/coreos/etcd"
arch="x86_64"
license="ASL 2.0"
depends=""
depends_dev=""
makedepends="$depends_dev go"
options="!strip"
install="$pkgname.pre-install"
subpackages=""
pkgusers="$pkgname"
pkggroups="$pkgname"
source="$pkgname-$pkgver.tar.gz::https://github.com/coreos/etcd/archive/v$pkgver.tar.gz
$pkgname.confd
$pkgname.initd"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
./build || return 1
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/var/lib/$pkgname
chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/$pkgname
install -Dm755 bin/etcdctl "$pkgdir"/usr/bin/etcdctl
install -Dm755 bin/etcd "$pkgdir"/usr/bin/etcd
install -Dm755 $srcdir/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -Dm755 $srcdir/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="57f21c3d8a89f486b78077f609f11453 etcd-3.0.15.tar.gz
ac04c0d36942fff31da8a9abe0ac4b68 etcd.confd
3ac0aecccd36288a5b72136da7c6d133 etcd.initd"
sha256sums="c21871f7e1454b1698ff29601a296f4b09365fac25bea45c0af21542d486c307 etcd-3.0.15.tar.gz
2f3d37317ccaaddf4ec53e77be9419d63590d0114edcae383f47c0607dd643a9 etcd.confd
6334c8578a3eb7054ece4427446cc8bbc1b8ddb1794ff397ff9ae405c0d391f6 etcd.initd"
sha512sums="a60f0d36332903133ac4bac0161f5caed8f13afd992e26a8ff98728f6659cf8dcddc4bd77f9df95b695b57f484e993c0da9efe7e4ec420d6c6059334e8829bb6 etcd-3.0.15.tar.gz
440c9f23decb318c565a79d376b107dbd2333e72d5d812ec1460732543348737468b3e66e82e06a1afa0f09760c1eb066804a668a24e92a23977758727e049d2 etcd.confd
99271b1ae4a5636ae2332a98d35a5d9e27cac9154d5ede7952b0627caca53ef0b0d8164aa18f53c25e42e969b80e534930c2a3ed0bd0a1fdaec093075016355c etcd.initd"
|