Date: Friday, October 14, 2022 @ 21:10:49
  Author: artafinde
Revision: 1329075

upgpkg: goaurrpc 1.1.1-2 add systemd service and config samples

Added:
  goaurrpc/trunk/goaurrpc-local.sample
  goaurrpc/trunk/goaurrpc-remote.sample
  goaurrpc/trunk/goaurrpc.service
  goaurrpc/trunk/goaurrpc.sysusers
Modified:
  goaurrpc/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   22 +++++++++++++++++-----
 goaurrpc-local.sample  |   20 ++++++++++++++++++++
 goaurrpc-remote.sample |   20 ++++++++++++++++++++
 goaurrpc.service       |   28 ++++++++++++++++++++++++++++
 goaurrpc.sysusers      |    1 +
 5 files changed, 86 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-14 21:02:09 UTC (rev 1329074)
+++ PKGBUILD    2022-10-14 21:10:49 UTC (rev 1329075)
@@ -2,7 +2,7 @@
 
 pkgname=goaurrpc
 pkgver=1.1.1
-pkgrel=1
+pkgrel=2
 license=('MIT')
 pkgdesc="An implementation of the aurweb /rpc service in go"
 depends=('glibc')
@@ -9,8 +9,16 @@
 makedepends=('go')
 arch=('x86_64')
 url="https://github.com/moson-mo/goaurrpc";
-source=("${pkgname}-${pkgver}::https://github.com/moson-mo/goaurrpc/archive/refs/tags/v${pkgver}.tar.gz";)
-sha256sums=('98a0fbe2f64d552a265adcb80c94809c93e75f65f9b12e03d3e6df5427c237f0')
+source=("${pkgname}-${pkgver}::https://github.com/moson-mo/goaurrpc/archive/refs/tags/v${pkgver}.tar.gz";
+        goaurrpc-local.sample
+        goaurrpc-remote.sample
+        goaurrpc.service
+        goaurrpc.sysusers)
+sha256sums=('98a0fbe2f64d552a265adcb80c94809c93e75f65f9b12e03d3e6df5427c237f0'
+            '17007dec9e239832a1875846df4c6f2b3eb012da1649c363c87c2e21daf4ef11'
+            '033ceab29e772ba7b54eed911f93f04c6dd88252e70ed046c5f1f0e6b7d74ffb'
+            'e6a298e647fcf3b255d9886180b992f0dc447e763509c50513473f6d9b9ac5e3'
+            '45ac878e62e8e43c55645ebbd71fc8e10ce32c81d1a769979f48ac5f25392ff3')
 
 prepare() {
   cd ${pkgname}-${pkgver}
@@ -36,8 +44,12 @@
 
 package() {
   cd ${pkgname}-${pkgver}
-  install -Dm755 dist/${pkgname} "${pkgdir}/usr/bin/$pkgname"
-  install -D -m644 LICENSE  "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -vDm 755 dist/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
+  install -vDm 644 LICENSE  "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -vDm 644 "${srcdir}"/${pkgname}.service 
"${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+  install -vDm 644 "${srcdir}"/${pkgname}.sysusers 
"${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+  install -vDm 644 "${srcdir}"/goaurrpc-local.sample -t 
"${pkgdir}/usr/share/doc/${pkgname}/"
+  install -vDm 644 "${srcdir}"/goaurrpc-remote.sample -t 
"${pkgdir}/usr/share/doc/${pkgname}/"
 }
 
 # vim:set ts=2 sw=2 et:

Added: goaurrpc-local.sample
===================================================================
--- goaurrpc-local.sample                               (rev 0)
+++ goaurrpc-local.sample       2022-10-14 21:10:49 UTC (rev 1329075)
@@ -0,0 +1,20 @@
+{
+       "Port": 10666,
+       "AurFileLocation": "data/packages-meta-ext-v1.json.gz",
+       "MaxResults": 5000,
+       "RefreshInterval": 300,
+       "RateLimit": 4000,
+       "LoadFromFile": true,
+       "RateLimitCleanupInterval": 600,
+       "RateLimitTimeWindow": 86400,
+       "TrustedReverseProxies": [
+               "127.0.0.1",
+               "::1"
+       ],
+       "EnableSSL": false,
+       "CertFile": "",
+       "KeyFile": "",
+       "EnableSearchCache": true,
+       "CacheCleanupInterval": 60,
+       "CacheExpirationTime": 180
+}
\ No newline at end of file


Property changes on: goaurrpc/trunk/goaurrpc-local.sample
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: goaurrpc-remote.sample
===================================================================
--- goaurrpc-remote.sample                              (rev 0)
+++ goaurrpc-remote.sample      2022-10-14 21:10:49 UTC (rev 1329075)
@@ -0,0 +1,20 @@
+{
+       "Port": 10666,
+       "AurFileLocation": 
"https://aur.archlinux.org/packages-meta-ext-v1.json.gz";,
+       "MaxResults": 5000,
+       "RefreshInterval": 300,
+       "RateLimit": 4000,
+       "LoadFromFile": false,
+       "RateLimitCleanupInterval": 600,
+       "RateLimitTimeWindow": 86400,
+       "TrustedReverseProxies": [
+               "127.0.0.1",
+               "::1"
+       ],
+       "EnableSSL": false,
+       "CertFile": "",
+       "KeyFile": "",
+       "EnableSearchCache": true,
+       "CacheCleanupInterval": 60,
+       "CacheExpirationTime": 180
+}
\ No newline at end of file


Property changes on: goaurrpc/trunk/goaurrpc-remote.sample
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: goaurrpc.service
===================================================================
--- goaurrpc.service                            (rev 0)
+++ goaurrpc.service    2022-10-14 21:10:49 UTC (rev 1329075)
@@ -0,0 +1,28 @@
+[Unit]
+Description=goaurrpc daemon
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=goaurrpc
+Group=goaurrpc
+Restart=on-failure
+ExecStart=/usr/bin/goaurrpc -c /etc/goaurrpc.conf -v
+TimeoutStopSec=0
+KillSignal=SIGTERM
+
+# Hardening options
+CapabilityBoundingSet=
+AmbientCapabilities=
+NoNewPrivileges=true
+ProtectHome=true
+ProtectSystem=strict
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+PrivateTmp=true
+PrivateDevices=true
+LockPersonality=true
+
+[Install]
+WantedBy=multi-user.target

Added: goaurrpc.sysusers
===================================================================
--- goaurrpc.sysusers                           (rev 0)
+++ goaurrpc.sysusers   2022-10-14 21:10:49 UTC (rev 1329075)
@@ -0,0 +1 @@
+u goaurrpc - "goaurrpc systemd user"

Reply via email to