[arch-commits] Commit in (7 files)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Nov 17 21:36:53 UTC 2021


    Date: Wednesday, November 17, 2021 @ 21:36:52
  Author: grawlinson
Revision: 1051235

addpkg: drone-runner-ssh 1.0.1-3

Added:
  drone-runner-ssh/
  drone-runner-ssh/repos/
  drone-runner-ssh/trunk/
  drone-runner-ssh/trunk/PKGBUILD
  drone-runner-ssh/trunk/systemd.service
  drone-runner-ssh/trunk/sysusers.conf
  drone-runner-ssh/trunk/tmpfiles.conf

-----------------+
 PKGBUILD        |   77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 systemd.service |   14 +++++++++
 sysusers.conf   |    1 
 tmpfiles.conf   |    1 
 4 files changed, 93 insertions(+)

Added: drone-runner-ssh/trunk/PKGBUILD
===================================================================
--- drone-runner-ssh/trunk/PKGBUILD	                        (rev 0)
+++ drone-runner-ssh/trunk/PKGBUILD	2021-11-17 21:36:52 UTC (rev 1051235)
@@ -0,0 +1,77 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=drone-runner-ssh
+pkgver=1.0.1
+pkgrel=3
+pkgdesc="Drone runner that executes a pipeline on a remote machine"
+arch=('x86_64')
+url="https://github.com/drone-runners/drone-runner-ssh"
+license=('custom:Polyform-Small-Business-1.0.0' 'custom:Polyform-Free-Trial-1.0.0' 'custom:Polyform-Noncommercial-1.0.0')
+depends=('glibc')
+makedepends=('go' 'git')
+optdepends=('drone: for a local Drone instance')
+source=(
+  "$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+  'systemd.service'
+  'sysusers.conf'
+  'tmpfiles.conf'
+)
+sha512sums=('5ff1a1199a38908882614464dc4fb3302d325e04402190c25bc69a4048b5a328cedec4d952232f824896ff2ed6cbf8c2f8808a5afe330883dbead6c10f1d2d5d'
+            '6eaa30699fbbaeebaa824add5c1c921e74042d200ae699c393914f3c5f90ae9cdafbd6bbe9d5d555f4914ad9c37ccc897bb0ba65c87dc5fa14b975df0f3da8ab'
+            'a7d51b61f054bb97f873c7f3e5512776095ed23f9eb5ac9c7a1b007d6595ccc9de0ac4224ca38cdba565bb5ec702c09889e7c7395f03dfb277bb0a5c3225942b'
+            '239c3eda7cf7ffcac5df80699ec231f2797f4f35b18b26d570303a7597755d1e4958152139ddb3bb5268fe711a1fb055aa97b8d054af13653b0d5f2e35dfb537')
+b2sums=('9bc1c3382b615769399417b03e5f20893d7720dc138879029ad23597aaa7fc986e33b3f19b64888682142e862d9a8bc8731c564949075a6ef7956d22f3c7f72c'
+        '90d868e9f6932eedc814473e160c661da7cf06a3cf1adf0709b462e388130f3f149120cf36dc6bb9f6bffbca8fce7c8624aa8a0b2511ea64d9b72dc950eea746'
+        '8459bbc51dd5006159041de20fc8288bed444e9ba8b48d8a95d2f6ea5a89e38e4d1f5db816c2b35f29b3219aba396bff509157a8b234105041d61c3f4504fef6'
+        'f2742d5c60a3b68ecf7dab2d602b442bafcc619d838fcc74f5f186113778719797f9fa3975643c0925def2acf282c09120c186abc90b1ee5a34a7796b38f00fd')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # create directory for build output
+  mkdir -p build
+
+  # download dependencies
+  go mod download
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  # set Go flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+
+  go build -v \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly\
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+    -o build \
+    .
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  go test -v ./...
+}
+
+package() {
+  # systemd integration
+  install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
+  install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
+
+  cd "$pkgname-$pkgver"
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" build/*
+
+  # licenses
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" licenses/* LICENSE.md
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md CHANGELOG.md
+}

Added: drone-runner-ssh/trunk/systemd.service
===================================================================
--- drone-runner-ssh/trunk/systemd.service	                        (rev 0)
+++ drone-runner-ssh/trunk/systemd.service	2021-11-17 21:36:52 UTC (rev 1051235)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Drone Runner (SSH)
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=drone-runner-ssh
+Group=drone-runner-ssh
+WorkingDirectory=/var/lib/drone-runner-ssh
+ReadWritePaths=/var/lib/drone-runner-ssh
+ExecStart=/usr/bin/drone-runner-ssh
+
+[Install]
+WantedBy=multi-user.target

Added: drone-runner-ssh/trunk/sysusers.conf
===================================================================
--- drone-runner-ssh/trunk/sysusers.conf	                        (rev 0)
+++ drone-runner-ssh/trunk/sysusers.conf	2021-11-17 21:36:52 UTC (rev 1051235)
@@ -0,0 +1 @@
+u drone-runner-ssh - "Drone Runner SSH user"

Added: drone-runner-ssh/trunk/tmpfiles.conf
===================================================================
--- drone-runner-ssh/trunk/tmpfiles.conf	                        (rev 0)
+++ drone-runner-ssh/trunk/tmpfiles.conf	2021-11-17 21:36:52 UTC (rev 1051235)
@@ -0,0 +1 @@
+d /var/lib/drone-runner-ssh 0750 drone-runner-ssh drone-runner-ssh



More information about the arch-commits mailing list