diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9ce50a3bffae --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = osctl + pkgdesc = A CLI for out-of-band management of Kubernetes nodes created by Talos + pkgver = 0.3.2 + pkgrel = 1 + url = https://www.talos-systems.com + arch = i686 + arch = x86_64 + license = MPL2 + makedepends = git + makedepends = go-pie + depends = glibc + source = git+https://github.com/talos-systems/talos.git#commit=fb48851d691d21ab6fc9356a8106b3e498552763 + sha256sums = SKIP + +pkgname = osctl + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..aa419f5ab2dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.tar.* +pkg/ +src/ +talos/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d7cda0fc2cd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Nicola Squartini <tensor5@gmail.com> + +pkgname=osctl +pkgver=0.3.2 +_commit=fb48851d691d21ab6fc9356a8106b3e498552763 +pkgrel=1 +pkgdesc='A CLI for out-of-band management of Kubernetes nodes created by Talos' +arch=('i686' 'x86_64') +url='https://www.talos-systems.com' +license=('MPL2') +depends=('glibc') +makedepends=('git' 'go-pie') +source=("git+https://github.com/talos-systems/talos.git#commit=${_commit}") +sha256sums=('SKIP') + +build() { + cd talos/cmd/osctl + + SHA="${_commit:0:8}" + TAG="v${pkgver}" + VERSION_PKG='github.com/talos-systems/talos/pkg/version' + go build \ + -ldflags "-extldflags=-Wl,-z,now,-z,relro -s -w -X ${VERSION_PKG}.Name=Client -X ${VERSION_PKG}.SHA=${SHA} -X ${VERSION_PKG}.Tag=${TAG}" +} + +package() { + install -Dm755 -t "${pkgdir}/usr/bin" talos/cmd/osctl/osctl +} |