mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-24 18:11:44 +01:00
51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=etcd
|
|
pkgver=3.3.10
|
|
pkgrel=0
|
|
pkgdesc="A highly-available key value store for shared configuration and service discovery"
|
|
url="https://github.com/coreos/etcd"
|
|
arch="x86_64 ppc64le"
|
|
license="Apache-2.0"
|
|
makedepends="go bash"
|
|
install="$pkgname.pre-install"
|
|
pkgusers="$pkgname"
|
|
pkggroups="$pkgname"
|
|
subpackages="$pkgname-doc $pkgname-ctl $pkgname-openrc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/coreos/etcd/archive/v$pkgver.tar.gz
|
|
$pkgname.confd
|
|
$pkgname.initd"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
prepare() {
|
|
default_prepare
|
|
export GOPATH="$(pwd)/_gopath"
|
|
_coreos="${GOPATH}/src/github.com/coreos"
|
|
mkdir -vp ${_coreos}
|
|
ln -vsf ${srcdir}/${pkgname}-${pkgver} ${_coreos}/${pkgname}
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
bash -x ./build
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
mkdir -p "$pkgdir"/var/lib/$pkgname
|
|
chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/$pkgname
|
|
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
|
|
}
|
|
|
|
ctl() {
|
|
pkgdesc="A command-line client for etcd"
|
|
install -Dm755 "$builddir"/bin/etcdctl "$subpkgdir"/usr/bin/etcdctl
|
|
}
|
|
|
|
sha512sums="848e241e816312307f74520b99aeabf7def6862093897035ace16cb230817d8e2681d7d2f1c1ac220d7c2b4c7c0a1262bbe3e4db927524f785de888566d2097c etcd-3.3.10.tar.gz
|
|
440c9f23decb318c565a79d376b107dbd2333e72d5d812ec1460732543348737468b3e66e82e06a1afa0f09760c1eb066804a668a24e92a23977758727e049d2 etcd.confd
|
|
cee78d665c6449aceed2e12e13a461e614b7c71a4e4800c967bdfff0175e58aad1f8b0b186b8fa49ceffe315e5e68eccf24b8f3a3e3f805df8850f7e81b4ad12 etcd.initd"
|