2022-08-18 15:42:59 +00:00
|
|
|
# Contributor: Christian Kampka <christian@kampka.net>
|
2023-07-04 15:10:30 +00:00
|
|
|
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
|
2022-08-18 15:42:59 +00:00
|
|
|
pkgname=docker-registry
|
2023-07-04 15:10:30 +00:00
|
|
|
pkgver=2.8.2_git20230519
|
|
|
|
pkgrel=0
|
2022-08-18 15:42:59 +00:00
|
|
|
pkgdesc="An implementation of the Docker Registry HTTP API V2 for use with docker 1.6+"
|
|
|
|
url="https://github.com/distribution/distribution"
|
|
|
|
# riscv64 blocked by dependency panicwrap
|
|
|
|
arch="all !s390x !riscv64"
|
|
|
|
license="Apache-2.0"
|
|
|
|
makedepends="git go"
|
|
|
|
install="$pkgname.pre-install"
|
|
|
|
pkgusers="docker-registry"
|
|
|
|
pkggroups="docker-registry"
|
|
|
|
subpackages="$pkgname-openrc"
|
|
|
|
#source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
|
2023-07-04 15:10:30 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::$url/archive/983358f8e2509bf8ae196a8e135180a2c5b11264.tar.gz
|
2022-08-18 15:42:59 +00:00
|
|
|
docker-registry.initd
|
|
|
|
config-example.patch"
|
|
|
|
builddir="$srcdir/src/github.com/docker/distribution"
|
|
|
|
options="chmod-clean"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p "${builddir%/*}"
|
|
|
|
#mv "$srcdir"/distribution-$pkgver "$builddir"
|
2023-07-04 15:10:30 +00:00
|
|
|
mv "$srcdir"/distribution-* "$builddir"
|
2022-08-18 15:42:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make binaries \
|
2023-04-26 17:22:52 +00:00
|
|
|
DISTRIBUTION_DIR="$builddir" \
|
|
|
|
VERSION="$pkgver" \
|
|
|
|
REVISION="$pkgrel" \
|
|
|
|
GOFLAGS="-buildmode=pie" \
|
|
|
|
GOLDFLAGS="-extldflags=-static -w -s"
|
2022-08-18 15:42:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
./bin/registry --version
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -D -m 755 bin/registry \
|
|
|
|
"$pkgdir"/usr/bin/$pkgname
|
|
|
|
|
|
|
|
install -D -m 644 cmd/registry/config-example.yml \
|
|
|
|
"$pkgdir"/etc/$pkgname/config.yml
|
|
|
|
|
|
|
|
install -D -m 644 LICENSE \
|
|
|
|
"$pkgdir"/usr/share/licenses/$pkgname
|
|
|
|
|
|
|
|
install -D -m 755 "$srcdir"/$pkgname.initd \
|
|
|
|
"$pkgdir"/etc/init.d/$pkgname
|
|
|
|
|
|
|
|
install -d -m 750 -o $pkgusers -g $pkggroups \
|
|
|
|
"$pkgdir"/var/lib/$pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-07-04 15:10:30 +00:00
|
|
|
8ceb8b994085bc6522e8a203785bd670977117988d391023148a4153e3c150ad7c17fb98de863c4c2300714022444dc5141a75a2899b8b0f04cbbdc17794b5c7 docker-registry-2.8.2_git20230519.tar.gz
|
2022-08-18 15:42:59 +00:00
|
|
|
96100a4de311afa19d293a3b8a63105e1fcdf49258aa8b1752befd389e6b4a2b1f70711341ea011b450d4468bd37dbd07a393ffab3b9aa1b2213cf0fdd915904 docker-registry.initd
|
|
|
|
5a38f4d3f0ee5cd00c0a5ced744eb5b29b839da5921adea26c5de3eb88b6b2626a7ba29b1ab931e5f8fbfafbed8c94cb972a58737ec0c0a69cf515c32139e387 config-example.patch
|
|
|
|
"
|