David Runge pushed to branch main at Arch Linux / Packaging / Packages / nebula


Commits:
daef7d07 by David Runge at 2023-10-25T11:28:34+02:00
Remove unnecessary quotes and curly braces

Signed-off-by: David Runge <[email protected]>

- - - - -
5c4c56b9 by David Runge at 2023-10-25T11:29:31+02:00
Add all direct dependencies

Signed-off-by: David Runge <[email protected]>

- - - - -
5f142614 by David Runge at 2023-10-25T11:30:28+02:00
Simplify install calls using -t option

Signed-off-by: David Runge <[email protected]>

- - - - -
5407ccdc by David Runge at 2023-10-25T12:10:00+02:00
Apply go package guidelines and create debug package

Signed-off-by: David Runge <[email protected]>

- - - - -
871360e8 by David Runge at 2023-10-25T12:16:30+02:00
upgpkg: 1.7.2-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,15 @@
+pkgbase = nebula
+       pkgdesc = A scalable overlay networking tool with a focus on 
performance, simplicity and security
+       pkgver = 1.7.2
+       pkgrel = 1
+       url = https://github.com/slackhq/nebula
+       arch = x86_64
+       license = MIT
+       makedepends = go
+       depends = glibc
+       options = !lto
+       source = 
nebula-1.7.2.tar.gz::https://github.com/slackhq/nebula/archive/v1.7.2.tar.gz
+       sha512sums = 
b9b871eabdf0ffb05cb350fd665e4cc7c39c9c519837eb4aa88aba4d8d43d62e098da6eb4d2e679100eaa1755f1bb0a3d416a2ea5271ad1e841be1d3434fb341
+       b2sums = 
18f996e56aa4de44c8f45d5ad051a07f2927f8115c76ecce9be9dfe0a59f3b5175a93de8442f384162cf406298833d9a364f2ca5f9a51797961505368fe5d3d5
+
+pkgname = nebula


=====================================
PKGBUILD
=====================================
@@ -1,46 +1,45 @@
 # Maintainer: Robin Broda <coderobe @ archlinux.org>
 pkgname=nebula
-pkgver=1.6.1
+pkgver=1.7.2
 pkgrel=1
 pkgdesc='A scalable overlay networking tool with a focus on performance, 
simplicity and security'
-arch=('x86_64')
+arch=(x86_64)
 url='https://github.com/slackhq/nebula'
-license=('MIT')
-depends=()
-makedepends=('go')
-options=('!lto')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('9c343d998d2eab9473c3bf73d434b8a382d90b1f73095dd1114ecaf2e1c0970f')
+license=(MIT)
+depends=(glibc)
+makedepends=(go)
+options=(!lto)
+source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
+sha512sums=('b9b871eabdf0ffb05cb350fd665e4cc7c39c9c519837eb4aa88aba4d8d43d62e098da6eb4d2e679100eaa1755f1bb0a3d416a2ea5271ad1e841be1d3434fb341')
+b2sums=('18f996e56aa4de44c8f45d5ad051a07f2927f8115c76ecce9be9dfe0a59f3b5175a93de8442f384162cf406298833d9a364f2ca5f9a51797961505368fe5d3d5')
+
+prepare() {
+  mkdir -vp $pkgname-$pkgver/build
+}
 
 build() {
-  cd "${pkgname}-${pkgver}"
-
-  export CGO_CPPFLAGS="${CPPFLAGS}"
-  export CGO_CFLAGS="${CFLAGS}"
-  export CGO_CXXFLAGS="${CXXFLAGS}"
-  export CGO_LDFLAGS="${LDFLAGS}"
-  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-
-  for bin in nebula{,-cert,-service}
-  do go build \
-    -ldflags "-X main.Build=${pkgver}" \
-    -o "${bin}" "./cmd/${bin}"
-  done
+  cd $pkgname-$pkgver
+
+  export CGO_CPPFLAGS="$CPPFLAGS"
+  export CGO_CFLAGS="$CFLAGS"
+  export CGO_CXXFLAGS="$CXXFLAGS"
+  export CGO_LDFLAGS="$LDFLAGS"
+  export GOPATH="$srcdir"
+  export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
+
+  go build -ldflags "-X main.Build=$pkgver -compressdwarf=false -linkmode 
external" -o build ./cmd/...
 }
 
 check() {
-  cd "${pkgname}-${pkgver}"
+  cd $pkgname-$pkgver
 
   go test -v ./...
 }
 
 package() {
-  cd "${pkgname}-${pkgver}"
-
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm644 dist/arch/nebula.service 
"${pkgdir}/usr/lib/systemd/system/nebula.service"
+  cd $pkgname-$pkgver
 
-  for bin in nebula{,-cert,-service}
-  do install -Dm755 "${bin}" "${pkgdir}/usr/bin/${bin}"
-  done
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -Dm644 dist/arch/nebula.service -t "$pkgdir/usr/lib/systemd/system/"
+  install -vDm 755 build/* -t "$pkgdir/usr/bin/"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nebula/-/compare/33727c90a690d36c79286ff2eb9da5148e0a9fa3...871360e8e614c25f397966ad41466c3a45b2112a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nebula/-/compare/33727c90a690d36c79286ff2eb9da5148e0a9fa3...871360e8e614c25f397966ad41466c3a45b2112a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to